Przeglądaj źródła

merged branch jpauli/patch-2 (PR #2854)

Commits
-------

7fadd08 static::$privateField is an OOP non-sense (extending the class is not possible)

Discussion
----------

static::$privateField is an OOP non-sense (extending the class is not possible)

static::$privateField is an OOP non-sense (extending the class is not possible)
Fabien Potencier 13 lat temu
rodzic
commit
eedd856f6d
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/Symfony/Component/Routing/Route.php

+ 3 - 3
src/Symfony/Component/Routing/Route.php

@@ -285,11 +285,11 @@ class Route
 
         $class = $this->getOption('compiler_class');
 
-        if (!isset(static::$compilers[$class])) {
-            static::$compilers[$class] = new $class;
+        if (!isset(self::$compilers[$class])) {
+            self::$compilers[$class] = new $class;
         }
 
-        return $this->compiled = static::$compilers[$class]->compile($this);
+        return $this->compiled = self::$compilers[$class]->compile($this);
     }
 
     private function sanitizeRequirement($key, $regex)