Commit Graph

245 Commits

Author SHA1 Message Date
Jiří Pudil
25ddf938d8 Simplify parsing of type alias import 2022-06-20 10:47:42 +02:00
Richard van Velzen
4a07085f74 Micro-optimize lexer 2022-06-14 13:40:08 +02:00
Richard van Velzen
76150ae751 Optimize generated regex 2022-06-10 11:29:33 +02:00
Richard van Velzen
5aaeb83195 Optimize Lexer::tokenize() 2022-06-10 10:12:59 +02:00
Ondrej Mirtes
07c49b0107
Regression test 2022-06-09 14:43:27 +02:00
Ondrej Mirtes
4c25f7fc4d
Install phpstan/phpstan-phpunit 2022-06-09 14:42:44 +02:00
Richard van Velzen
3cb62d1084 Make requiring whitespace before description optional 2022-06-09 11:45:59 +02:00
Richard van Velzen
1e355a35e2
Support all atomic types as nullable types 2022-06-08 21:40:28 +02:00
Richard van Velzen
7c621a2217 Fix parsing phpdoc with no trailing whitespace 2022-06-08 20:03:36 +02:00
Richard van Velzen
9d452051cb
Allow omitting @param type 2022-06-08 20:02:43 +02:00
Richard van Velzen
d579798d2f Require whitespace before description with limited start tokens 2022-06-08 16:53:02 +02:00
Renovate Bot
b75949e747 Update dependency slevomat/coding-standard to v7.2.1 2022-05-30 11:04:34 +02:00
Fabien Villepinte
5968e5f71a Fix typo in doc/grammars 2022-05-15 14:10:30 +02:00
Renovate Bot
5e424af90d Update dependency slevomat/coding-standard to v7.2.0 2022-05-09 10:50:14 +02:00
Ondrej Mirtes
981cc368a2
Fix workflows 2022-05-05 13:32:40 +02:00
Richard van Velzen
28cb38bd06 Implement offset access type syntax 2022-05-05 13:31:11 +02:00
Richard van Velzen
6cafed9212 Add negated assertions 2022-05-04 09:46:54 +02:00
Richard van Velzen
47051f5ca6 Parse assert-if-true and assert-if-false as well 2022-05-04 09:46:54 +02:00
Richard van Velzen
0af5cba9f1 Also expose the tags 2022-05-04 09:46:54 +02:00
Richard van Velzen
8f703ba724 Add assert syntax 2022-05-04 09:46:54 +02:00
Richard van Velzen
129a63b3bc
Extend allowed types for conditional for parameter 2022-04-22 13:11:01 +02:00
Ondrej Mirtes
d8e9fd97ca
ConstExprParser - throw known exception type 2022-04-14 14:24:06 +02:00
Ondrej Mirtes
34545bb30a
Fix memory leak
Exceptions in their stack traces carry references to all unexpected objects
2022-04-08 13:30:34 +02:00
Renovate Bot
a5e191ffef Update dependency slevomat/coding-standard to v7.1 2022-04-04 08:09:37 +02:00
Richard van Velzen
9940b06ce8 Fix build instructions in README 2022-03-30 15:35:23 +02:00
Richard van Velzen
4cb3021a4e Support multiline parenthesized types
This includes union, intersection, and conditional types
2022-03-30 15:33:37 +02:00
Jaroslav Hanslík
05333065c8 Fixed missing parentheses in ConditionalTypeForParameterNode::__toString() 2022-03-29 11:28:16 +02:00
Jaroslav Hanslík
c1f8095e52 Fixed missing parentheses in ConditionalTypeNode::__toString() 2022-03-29 11:28:05 +02:00
Jaroslav Hanslík
f109d1d984 Typo in ConditionalTypeForParameterNode 2022-03-29 11:27:52 +02:00
Jaroslav Hanslík
45df6a5c86 Typo in ConditionalTypeNode 2022-03-29 10:50:06 +02:00
Ondrej Mirtes
aa111aa1fe
Update workflows 2022-03-28 12:52:48 +02:00
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
Ondrej Mirtes
691b0199aa
Update CS 2022-03-28 10:02:03 +02:00
Richard van Velzen
c08946968b Support multiline callable syntax
Closes #46. Tests are basically copied and modified from #44
2022-03-28 09:53:31 +02:00
Ondrej Mirtes
ad95bffa0d
Fix workflows 2022-03-28 09:52:51 +02:00
Ondrej Mirtes
f794407d02
Drop alias 2022-03-28 09:50:44 +02:00
Ondrej Mirtes
da41cc92f0
Drop support for PHP 7.1, require PHPStan 1.5.0 2022-03-28 09:15:57 +02:00
Renovate Bot
337ff95c8e Update dependency slevomat/coding-standard to v7.0.20 2022-03-28 09:14:33 +02:00
Renovate Bot
4bda9e3c88 Update actions/checkout action to v3 2022-03-07 13:15:39 +01:00
Renovate Bot
3810829a69 Update dependency slevomat/coding-standard to v7.0.19 2022-03-07 13:15:28 +01:00
Renovate Bot
d5a6692b8a Update dependency slevomat/coding-standard to v7 2022-02-08 12:41:11 +01:00
Renovate Bot
1ab10d8c71 Update build-cs 2022-02-07 09:02:48 +01:00
Ondřej Mirtes
9654349276
Update renovate.json 2022-02-02 16:37:50 +01:00
Ondřej Mirtes
f3a334c6ab Update lock-closed-issues.yml 2022-02-02 15:40:16 +01:00
Renovate Bot
bad64f8024 Update github-actions 2022-02-02 15:40:16 +01:00
Renovate Bot
2c43989ab6 Update metcalfc/changelog-generator action to v1.0.1 2022-02-01 23:13:46 +01:00
Renovate Bot
b862cf79f4 Update dependency consistence-community/coding-standard to v3.11.1 2022-02-01 23:13:33 +01:00
Ondřej Mirtes
cb952de850
Delete dependabot.yml 2022-02-01 23:12:43 +01:00
Ondřej Mirtes
ac70f70c0e Update and rename renovate.json to .github/renovate.json 2022-02-01 23:12:26 +01:00
Renovate Bot
30cfc4b84f Add renovate.json 2022-02-01 23:12:26 +01:00