Skip to content

Commit d8b5bab

Browse files
committed
deprecated magic properties except for $template & $payload (BC break)
1 parent d93f52f commit d8b5bab

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/Application/Request.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
/**
1717
* Presenter request.
1818
*
19-
* @property string $presenterName
20-
* @property array $parameters
21-
* @property array $post
22-
* @property array $files
23-
* @property string|null $method
19+
* @property-deprecated string $presenterName
20+
* @property-deprecated array $parameters
21+
* @property-deprecated array $post
22+
* @property-deprecated array $files
23+
* @property-deprecated string|null $method
2424
*/
2525
final class Request
2626
{

src/Application/UI/Component.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
* other child components, and interact with user. Components have properties
2121
* for storing their status, and responds to user command.
2222
*
23-
* @property-read Presenter $presenter
24-
* @property-read bool $linkCurrent
23+
* @property-deprecated Presenter $presenter
24+
* @property-deprecated bool $linkCurrent
2525
*/
2626
abstract class Component extends Nette\ComponentModel\Container implements SignalReceiver, StatePersistent, \ArrayAccess
2727
{

src/Application/UI/ComponentReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
/**
1919
* Helpers for Presenter & Component.
20-
* @property-read string $name
21-
* @property-read string $fileName
20+
* @property-deprecated string $name
21+
* @property-deprecated string $fileName
2222
* @internal
2323
*/
2424
final class ComponentReflection extends \ReflectionClass

src/Application/UI/Presenter.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
/**
2424
* Presenter component represents a webpage instance. It converts Request to Response.
2525
*
26-
* @property-read Nette\Application\Request $request
27-
* @property-read string $action
28-
* @property string $view
29-
* @property string|bool $layout
26+
* @property-deprecated Nette\Application\Request $request
27+
* @property-deprecated string $action
28+
* @property-deprecated string $view
29+
* @property-deprecated string|bool $layout
3030
* @property-read \stdClass $payload
31-
* @property-read Nette\Http\Session $session
32-
* @property-read Nette\Security\User $user
31+
* @property-deprecated Nette\Http\Session $session
32+
* @property-deprecated Nette\Security\User $user
3333
*/
3434
abstract class Presenter extends Control implements Application\IPresenter
3535
{

0 commit comments

Comments
 (0)