Skip to content

Commit 08d0822

Browse files
committed
Fix
1 parent 24c7a52 commit 08d0822

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Magic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static function start(bool $light): void
255255

256256
$last_entry = end($backtrace);
257257
$_cwd = '/tmp';
258-
if (\array_key_exists('file', $last_entry)) {
258+
if (\array_key_exists('file', $last_entry) && $last_entry['file'] !== null) {
259259
$_cwd = \dirname($last_entry['file']);
260260
} else {
261261
if (preg_match('/^\{closure\:(.+?)\:/ui', $last_entry['function'], $m)) {

0 commit comments

Comments
 (0)