diff --git a/util/AutoloadBuilder.php b/util/AutoloadBuilder.php index 894c6ee..651bb16 100644 --- a/util/AutoloadBuilder.php +++ b/util/AutoloadBuilder.php @@ -41,9 +41,9 @@ class AutoloadBuilder foreach ($iterator as $file) { // skip non php files $e = explode('.', $file->getFileName()); - if ((end($e) !== 'php') || strstr((string)$file, 'test')) { - continue; - } + if ((end($e) !== 'php') || strstr($file->getFileName(), 'test')) { + continue; + } $content = file_get_contents($file->getRealPath()); $matches = array();