-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Fix PHPStan errors #20603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix PHPStan errors #20603
Conversation
mspirkov
commented
Oct 13, 2025
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ❌ |
Breaks BC? | ❌ |
Fixed issues |
private $_registered = false; | ||
/** | ||
* @var string the current working directory | ||
* @var string|null the current working directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private $_errors; | ||
/** | ||
* @var ArrayObject list of validators | ||
* @var ArrayObject|null list of validators |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private $_value; | ||
/** | ||
* @var string|int the key for the current iteration | ||
* @var string|int|null the key for the current iteration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param string $sql | ||
* @param array $params | ||
* @return string[]|false | ||
* @return array[]|false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$items[$row['name']] = $this->populateItem($row); | ||
/** @var Role|Permission */ | ||
$item = $this->populateItem($row); | ||
$items[$row['name']] = $item; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
foreach ($this->items as $name => $item) { | ||
/** @var Item $item */ | ||
/** @var Role|Permission $item */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** @var static */ | ||
$result = $view->registerAssetBundle(get_called_class()); | ||
|
||
return $result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.