We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24c7a52 commit 08d0822Copy full SHA for 08d0822
1 file changed
src/Magic.php
@@ -255,7 +255,7 @@ public static function start(bool $light): void
255
256
$last_entry = end($backtrace);
257
$_cwd = '/tmp';
258
- if (\array_key_exists('file', $last_entry)) {
+ if (\array_key_exists('file', $last_entry) && $last_entry['file'] !== null) {
259
$_cwd = \dirname($last_entry['file']);
260
} else {
261
if (preg_match('/^\{closure\:(.+?)\:/ui', $last_entry['function'], $m)) {
0 commit comments