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
2022-03-28 09:52:51 +02:00
2022-03-28 12:50:35 +02:00
2022-03-28 12:50:35 +02:00
2022-03-28 12:50:35 +02:00
2021-05-16 12:54:49 +02:00
2021-03-18 22:02:48 +01:00
2021-05-16 12:54:49 +02:00
2022-03-28 09:50:44 +02:00
2021-06-11 15:21:05 +02:00
2022-03-28 10:02:03 +02:00
2021-06-11 15:21:05 +02:00
2022-01-30 21:23:36 +01:00

PHPDoc-Parser for PHPStan

Build Status Latest Stable Version License PHPStan Enabled


Next generation phpDoc parser with support for intersection types and generics.

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.

Building

Initially you need to run composer install, or composer update in case you aren't working in a folder which was built before.

Afterwards you can either run the whole build including linting and coding standards using

vendor/bin/phing

or run only tests using

vendor/bin/phing tests
Description
No description provided
Readme MIT 647 KiB
Languages
PHP 99.6%
Makefile 0.2%
Shell 0.2%