Skip to content

Commit

Permalink
Add type for BaseObject::__construct($config) param
Browse files Browse the repository at this point in the history
  • Loading branch information
erickskrauch committed Nov 27, 2023
1 parent 383a1f7 commit 3a544ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
config_path: null
stubFiles:
- src/Stubs/base/Action.stub
- src/Stubs/base/BaseObject.stub
- src/Stubs/base/Behavior.stub
- src/Stubs/base/Component.stub
- src/Stubs/base/Controller.stub
Expand Down
13 changes: 13 additions & 0 deletions src/Stubs/base/BaseObject.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);

namespace yii\base;

class BaseObject {

/**
* @param array<string, mixed> $config
*/
public function __construct($config = []) {}

}

0 comments on commit 3a544ce

Please sign in to comment.