Skip to content

Commit c480ee3

Browse files
authored
Updated PHPDoc and PHPStan annotations (#91)
1 parent 6e16572 commit c480ee3

File tree

6 files changed

+6
-15
lines changed

6 files changed

+6
-15
lines changed

src/usecase/Controller.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ class Controller extends \yii\web\Controller
1111
{
1212
public $layout = '@resource/layout/main';
1313

14-
/**
15-
* @phpstan-return array<array-key, array<array-key, mixed>>
16-
*/
1714
public function actions(): array
1815
{
1916
return [

src/usecase/contact/ContactController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
final class ContactController extends Controller
1212
{
13-
/**
14-
* @phpstan-return array<array-key, array<array-key, mixed>>
15-
*/
1613
public function actions(): array
1714
{
1815
return ArrayHelper::merge(

src/usecase/contact/ContactForm.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ final class ContactForm extends Model
1818
public string $verifyCode = '';
1919
public string $date = '';
2020

21-
/**
22-
* @return array<string, string>
23-
*/
2421
public function attributeLabels(): array
2522
{
2623
return [

src/usecase/contact/IndexAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
use yii\symfonymailer\Mailer;
99
use yii\web\{Controller, Request, Session};
1010

11+
/**
12+
* @extends Action<ContactController>
13+
*/
1114
final class IndexAction extends Action
1215
{
13-
/**
14-
* @phpstan-param array<array-key, mixed> $config
15-
*/
1616
public function __construct(
1717
string $id,
1818
Controller $controller,

src/usecase/site/AboutAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
use yii\base\Action;
88

9+
/**
10+
* @extends Action<SiteController>
11+
*/
912
final class AboutAction extends Action
1013
{
1114
public function run(): string

src/usecase/site/SiteController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
final class SiteController extends Controller
1111
{
12-
/**
13-
* @phpstan-return array<array-key, array<array-key, mixed>>
14-
*/
1512
public function actions(): array
1613
{
1714
return [

0 commit comments

Comments
 (0)