- Fixed getName method in LoadableRoute class can contain nullable value.

This commit is contained in:
Simon Sessingø
2018-03-30 06:47:27 +02:00
parent 5df0c12864
commit 53f0b7d8e2
3 changed files with 120 additions and 76 deletions
@@ -154,7 +154,7 @@ abstract class LoadableRoute extends Route implements ILoadableRoute
*
* @return string
*/
public function getName(): string
public function getName(): ?string
{
return $this->name;
}
+1 -1
View File
@@ -192,7 +192,7 @@ abstract class Route implements IRoute
return $this->callback;
}
return 'function_' . md5($this->callback);
return 'function:' . md5($this->callback);
}
/**