Skip to content

Commit

Permalink
Fixed scoper-autoload.php being incompatible with PHP 5
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Sep 29, 2023
1 parent b912101 commit 9d73449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Autoload/ScoperAutoloadGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ final class ScoperAutoloadGenerator

private const EXPOSE_CLASS_DECLARATION = <<<'PHP'
if (!function_exists('humbug_phpscoper_expose_class')) {
function humbug_phpscoper_expose_class(string $exposed, string $prefixed): void {
function humbug_phpscoper_expose_class($exposed, $prefixed) {
if (!class_exists($exposed, false) && !interface_exists($exposed, false) && !trait_exists($exposed, false)) {
spl_autoload_call($prefixed);
}
Expand Down

0 comments on commit 9d73449

Please sign in to comment.