Inspectopedia
 
2024.3

ObjectShape can be added

Info
New
Last modified: 03 December 2024

Reports public properties of an object with specified types. Suggests specifying the shape of the returned object via the #[ObjectShape] attribute or an object shape in the PHPDoc comment.

Example:

After the quick-fix is applied: