Skip to content

Commit e765900

Browse files
committed
Fix "basename(): Passing null to parameter #1 ($path) of type string is deprecated"
1 parent 82aacce commit e765900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/xp/lambda/AwsRunner.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static function error($e) {
6767
strtr($e->class, '\\', '.') ?: '<main>',
6868
$e->method,
6969
$e->line,
70-
basename($e->file),
70+
$e->file ? basename($e->file) : '',
7171
$e->message ? ' - '.$e->message : ''
7272
);
7373
}

0 commit comments

Comments
 (0)