microsoftgraph/MSGraph-SDK-Code-Generator

Set correct return type in PHP Docs for types that clash with PHP keywords

Ndiritu opened this issue · 1 comments

GraphList is a model whose name is derived by pre-pending "Graph" to the actual EntityType List in the metadata in order to prevent clashing with keywords in PHP.

The phpDocs generated however still show return type as List instead of GraphList e.g.

  /**
  * Sets the list
  * Provides additional details about the list.
  *
  * @param ListInfo $val The list
  *
  * @return List
  */
  public function setList($val)
  {
      $this->_propDict["list"] = $val;
      return $this;
  }

AB#9134

Maybe simpler @return $this? more accurate and understood by most IDEs/tools