Skip to content

Commit 6009da1

Browse files
committed
improvements
1 parent 119d287 commit 6009da1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Application/Routers/RouteList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RouteList extends Nette\Utils\ArrayList implements Nette\Application\IRout
2626

2727
public function __construct(string $module = null)
2828
{
29-
$this->module = $module ? $module . ':' : '';
29+
$this->module = $module ? $module . ':' : null;
3030
}
3131

3232

src/Application/UI/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function checkRequirements($element): void
112112
*/
113113
public static function getReflection(): ComponentReflection
114114
{
115-
return new ComponentReflection(get_called_class());
115+
return new ComponentReflection(static::class);
116116
}
117117

118118

src/Application/UI/Presenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ public function restoreRequest(string $key): void
10561056
*/
10571057
public static function getPersistentComponents(): array
10581058
{
1059-
return (array) ComponentReflection::parseAnnotation(new \ReflectionClass(get_called_class()), 'persistent');
1059+
return (array) ComponentReflection::parseAnnotation(new \ReflectionClass(static::class), 'persistent');
10601060
}
10611061

10621062

0 commit comments

Comments
 (0)