Fix #20604: Fix @var annotation for yii\db\Command::$pdoStatement

This commit is contained in:
Maksim Spirkov
2025-10-14 12:38:56 +03:00
committed by GitHub
parent 287d0fa074
commit af9c4b9294
2 changed files with 4 additions and 3 deletions

View File

@ -53,6 +53,7 @@ Yii Framework 2 Change Log
- Enh #20591: Add PHPStan/Psalm annotations for `yii\rbac\BaseManager::getItems()` (mspirkov)
- Bug #20594: Fix `@return` annotation for `Instance::get()` (mspirkov)
- Bug #20595: Fix `@return` annotation for `BaseHtml::getAttributeValue()` (mspirkov)
- Bug #20604: Fix `@var` annotation for `yii\db\Command::$pdoStatement` (mspirkov)
- Bug #20600: Fix `@var` annotation for `yii\test\FileFixtureTrait::$dataFile` (mspirkov)

View File

@ -61,7 +61,7 @@ class Command extends Component
*/
public $db;
/**
* @var \PDOStatement the PDOStatement object that this command is associated with
* @var \PDOStatement|null the PDOStatement object that this command is associated with
*/
public $pdoStatement;
/**
@ -95,11 +95,11 @@ class Command extends Component
protected $pendingParams = [];
/**
* @var string the SQL statement that this command represents
* @var string|null the SQL statement that this command represents
*/
private $_sql;
/**
* @var string name of the table, which schema, should be refreshed after command execution.
* @var string|null name of the table, which schema, should be refreshed after command execution.
*/
private $_refreshTableName;
/**