phpdoc-parser/doc/grammars
Richard van Velzen 445ccb723c
Support conditional types
* Support conditional types

Part of implementation for phpstan/phpstan#3853

* Add fuzzy tests

* Only support "is" / "is not"

* Rename trueType/falseType to if/else

* Add tests to TypeParserTest

* cs

* Only allow parenthesized conditional types

* Remove multiline support

It'll be easier to implement this for more types properly separately

* Support conditional for parameters
2022-03-28 12:50:35 +02:00
..
phpdoc-method.peg add PhpDocParser (major update) 2017-11-13 13:12:08 +01:00
phpdoc-param.peg Add support for reference in phpdoc 2021-09-16 22:27:44 +02:00
type.abnf Support conditional types 2022-03-28 12:50:35 +02:00