Skip to content

Next-gen phpDoc parser with support for intersection types and generics

License

Notifications You must be signed in to change notification settings

phpstan/phpdoc-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPDoc Parser

PHPDoc parser with support for nullable, intersection and generic types.

Grammar

The railway diagram do not include whitespaces. For full grammar see the doc/grammars directory.

Type Grammar

Type

Type diagram

Union

Union diagram

Intersection

Intersection diagram

Nullable

Nullable diagram

Atomic

Atomic diagram

Generic

Generic diagram

Array

Array diagram

TIdentifier

TIdentifier diagram