Ondrej Mirtes
36177d518a
Update workflows
2022-09-04 21:08:41 +02:00
Kuba Werłos
8dd908dd61
Add test with parenthesis
2022-09-04 20:59:06 +02:00
Kuba Werłos
f069ed8028
Allow backslash in PHPDoc tag
2022-09-04 20:59:06 +02:00
Ondrej Mirtes
367a8d9d5f
Open 1.7.x
2022-08-09 14:23:23 +02:00
Ondřej Mirtes
8e9075776a
Update backward-compatibility.yml
2022-08-09 14:20:19 +02:00
Ondřej Mirtes
06f491a4a8
Update build.yml
2022-08-09 14:20:06 +02:00
Richard van Velzen
af74624406
Support properties/methods in assert annotations
2022-08-09 14:18:55 +02:00
Markus Staab
7daca1d1d8
Update backward-compatibility.yml
2022-08-09 13:57:22 +02:00
Markus Staab
025ab580fb
Fix backward-compatibility github action
2022-08-09 13:57:22 +02:00
Ondřej Mirtes
c857e8a2b1
Update build.yml
2022-07-19 13:14:43 +02:00
Ondrej Mirtes
dd322ae2e8
Create tag workflow
2022-07-13 12:52:46 +02:00
Alex Wells
135607f9cc
Support @template-contravariant tags
2022-06-26 15:09:08 +02:00
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