Inspectopedia
 
2024.3

'#[ArrayShape]' attribute can be added

Info
New
Last modified: 03 December 2024

Reports the methods and functions that are returning arrays with known non-trivial keys. Suggests specifying the shape of the returned array via the #[ArrayShape] attribute or an array shape in the PHPDoc comment.