Commit e00a82e
authored
Document array shape for
| Q | A
|------------- | -----------
| Type | improvement
#### Summary
Related #7248
This small PR fixes only this 2 warnings in this file:
```
vendor/bin/phpstan analyse --level=9 src/Cache/ArrayResult.php
Note: Using configuration file /home/shakaran/Documentos/ProjectsSSD/dbal/phpstan.neon.dist.
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------------------------------
Line ArrayResult.php
------ ----------------------------------------------------------------------------------------------
124 Property Doctrine\DBAL\Cache\ArrayResult::$columnNames (list<string>) does not accept mixed.
🪪 assign.propertyType
💡 mixed is not a list.
124 Property Doctrine\DBAL\Cache\ArrayResult::$rows (list<list<mixed>>) does not accept mixed.
🪪 assign.propertyType
💡 mixed is not a list.
------ ----------------------------------------------------------------------------------------------
```
This pull request makes a minor improvement to the type annotation in
the docblock for the `$data` parameter of the `__unserialize` method in
`src/Cache/ArrayResult.php`, providing a more precise description of the
expected array structure.ArrayResult::__unserialize() (#7251)1 parent cfe0d15 commit e00a82e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments