mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 11:14:38 +01:00
* [Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector * [Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector * patch final presenter to allow tests
12 lines
292 B
Diff
12 lines
292 B
Diff
--- /dev/null
|
|
+++ ../src/Application/UI/Presenter.php
|
|
@@ -1328,7 +1328,7 @@
|
|
}
|
|
|
|
|
|
- final public function getUser(): Nette\Security\User
|
|
+ public function getUser(): Nette\Security\User
|
|
{
|
|
if (!$this->user) {
|
|
throw new Nette\InvalidStateException('Service User has not been set.');
|