Skip to content

Commit

Permalink
Updated scoper-autoload tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Sep 29, 2023
1 parent 9d73449 commit e6245f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Autoload/ScoperAutoloadGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public static function provideRegistry(): iterable
// Class aliases. For more information see:
// https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#class-aliases
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 Expand Up @@ -326,7 +326,7 @@ function humbug_phpscoper_expose_class(string $exposed, string $prefixed): void
// Class aliases. For more information see:
// https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#class-aliases
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 Expand Up @@ -381,7 +381,7 @@ function humbug_phpscoper_expose_class(string $exposed, string $prefixed): void
// https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#class-aliases
namespace {
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 e6245f8

Please sign in to comment.