At first glance, foreach does not accept the self referencer.
So you can put it in a variable first, then write it in foreach :
Code
$self_autoLoadPaths = self::$autoLoadPaths;
foreach ($self_autoLoadPaths as $dir) {
if (file_exists($dir . $path)) {
You have deleted the header of the file, so I do not know if it can be decompiled under PHP 7.
Can you send it to me without retouching ?