From ec4bbc66b0026516470890c608c4b5bd7d51031b Mon Sep 17 00:00:00 2001 From: PowerGamer1 Date: Sun, 15 Oct 2023 11:45:46 +0300 Subject: [PATCH] Added PHPDoc type hinting for request and response properties of yii\base\Controller derived classes. [skip ci] --- framework/console/Controller.php | 1 + framework/web/Controller.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/framework/console/Controller.php b/framework/console/Controller.php index 579b5977830..ef15d442f5e 100644 --- a/framework/console/Controller.php +++ b/framework/console/Controller.php @@ -28,6 +28,7 @@ * where `` is a route to a controller action and the params will be populated as properties of a command. * See [[options()]] for details. * + * @property Response|array|string response The response. * @property-read string $help * @property-read string $helpSummary * @property-read array $passedOptionValues The properties corresponding to the passed options. diff --git a/framework/web/Controller.php b/framework/web/Controller.php index 86be85819f0..df63dbe220c 100644 --- a/framework/web/Controller.php +++ b/framework/web/Controller.php @@ -17,6 +17,8 @@ * * For more details and usage information on Controller, see the [guide article on controllers](guide:structure-controllers). * + * @property Response|array|string response The response. + * * @author Qiang Xue * @since 2.0 */