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:


  $a = new stdClass();
  $a->name = "name";
  $a->age = 2;

After the quick-fix is applied:


  /** @var $a object{name: string, age: int} */
  $a = new stdClass();
  $a->name = "name";
  $a->age = 2;