Skip to content

Commit d2a100e

Browse files
committed
$this is not available in loaded file
1 parent 2790284 commit d2a100e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RobotLoader/RobotLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function tryLoad(string $type): void
111111
}
112112

113113
if ($info) {
114-
(function ($file) { require $file; })($info['file']);
114+
(static function ($file) { require $file; })($info['file']);
115115
}
116116
}
117117

0 commit comments

Comments
 (0)