Skip to content

Commit 7036cf2

Browse files
authored
Merge pull request #4 from screamer-gi/bugfix/MC-1087-upgrade-php74
MC-1087 PHP reserves all function names starting with __ as magical
2 parents 1015ed8 + e2d8a01 commit 7036cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/paysafe.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
throw new Exception('CURL is required for the Paysafe SDK.');
3232
}
3333

34-
function __PaysafeAutoloader($className)
34+
function paysafeAutoloader($className)
3535
{
3636
$classPath = str_replace("\\", DIRECTORY_SEPARATOR, $className);
3737
if (($classFile = realpath(__DIR__ . DIRECTORY_SEPARATOR . $classPath . '.php'))) {
3838
require_once( $classFile );
3939
}
4040
}
4141

42-
spl_autoload_register('__PaysafeAutoloader');
42+
spl_autoload_register('paysafeAutoloader');

0 commit comments

Comments
 (0)