Skip to content

Commit

Permalink
Allow all PHPStan type definitions
Browse files Browse the repository at this point in the history
Rather than adding them individually like `class-string`, simply state that all PHPStan types can be used especially if we are going to be utilizing this tool in the future.
See: glpi-project/glpi#9827
  • Loading branch information
cconard96 authored and trasher committed May 30, 2022
1 parent 11a2af1 commit 12f0592
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/codingstandards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ string String type (any value in ``""`` or ``' '``)
array Array type
object Object type
resource Resource type (as returned from ``mysql_connect`` function)
class-string<T> A string that represents a class name where T is the class (or a common parent class)
=============== ===========

In addition to the above, you may use any valid types from `PHPStan <https://phpstan.org/writing-php-code/phpdoc-types>`_.

Inserting comment in source code for doxygen.
Result : full doc for variables, functions, classes...

Expand Down

0 comments on commit 12f0592

Please sign in to comment.