Explorar o código

Removed $loader

Miha Vrhovnik %!s(int64=13) %!d(string=hai) anos
pai
achega
2e96039a9e
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Tests/bootstrap.php

+ 3 - 3
Tests/bootstrap.php

@@ -15,11 +15,11 @@
  * limitations under the License.
  */
 
-$loader = include_once dirname(__DIR__).'/vendor/autoload.php';
+include_once dirname(__DIR__).'/vendor/autoload.php';
 
-Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(function($class) use ($loader) {
+Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(function($class) {
     if (0 === strpos(ltrim($class, '/'), 'JMS\SerializerBundle\Annotation')) {
-        if (file_exists($file = dirname(__DIR__).'/'.substr(str_replace('\\', '/', $class), strlen('JMS\SerializerBundle')).'.php')) {
+        if (file_exists($file = dirname(__DIR__).'/'.substr(str_replace('\\', '/', $class), strlen('JMS\SerializerBundle\\')).'.php')) {
             require_once $file;
         }
     }