static::$privateField is an OOP non-sense (extending the class is not possible)
This commit is contained in:
parent
3dbe59edcb
commit
7fadd089a1
@ -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)
|
||||
|
Reference in New Issue
Block a user