-
-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent exception from Whoops when caught exception frame is not related to real file #599
Conversation
I guess this is a fix for #598 would be great to have a unit-test covering the change. @lcharette can you verify the fix? |
Yes, seems to be a fix for #598 :)
Done |
*/ | ||
public function testGetFileContentsWhenFrameIsNotRelatedToSpecificFile($fakeFilename) | ||
{ | ||
$data = array_merge($this->getFrameData(), ['file' => $fakeFilename]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need php 5.x compat here
$data = array_merge($this->getFrameData(), ['file' => $fakeFilename]); | |
$data = array_merge($this->getFrameData(), array('file' => $fakeFilename)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, since you require php 5.5.9 or above, you should be fine.
Following [] is supported in PHP >= 5.4:
Looks like it would indeed fix #598. I'll be able to test later today. |
I can confirm this PR fix my issue in #598 |
2.3.0 has sailed, this will be in another release.
Thank you for your contribution! |
No description provided.