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
Tomas Votruba
7d4d93b6c6
update phpunit.xml schema
2022-01-30 21:23:36 +01:00
Jean-Luc Herren
4bf544b199
PhpDocNode: Swap array_column() and array_filter()
...
See phpstan/phpstan-src#948
2022-01-29 18:41:21 +01:00
Ondřej Mirtes
b63ce3910f
Update release.yml
2022-01-16 11:53:29 +01:00
Ondřej Mirtes
8bae8e172b
Tweet release action
2022-01-16 09:39:57 +01:00
Martin Herndl
bf8b5dbc7e
Allow Composer plugins
2022-01-06 13:49:33 +01:00
Ruud Kamphuis
00abc18d36
Test on PHP 8.1
2021-12-16 20:47:28 +01:00
Ruud Kamphuis
253dabdafd
Composer > Remove --no-suggest
...
You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
2021-12-16 20:45:00 +01:00
Ondrej Mirtes
d639142cf8
Backward compatibility check
2021-09-16 22:50:50 +02:00
Ondrej Mirtes
dbc093d7af
Fix BC break vs. 1.0.0
2021-09-16 22:46:02 +02:00
Ondrej Mirtes
d26926e2ac
Fix build
2021-09-16 22:35:29 +02:00
Jordi Boggiano
605e3697d7
Fix wildcard parsing to end if a space follows, fixes phpstan/phpstan#5628
2021-09-16 22:28:27 +02:00
Vincent Langlet
d622b7c550
Add support for reference in phpdoc
2021-09-16 22:27:44 +02:00
Ondrej Mirtes
da187fdff0
Require PHPStan 1.0
2021-09-12 22:31:50 +02:00
Ondrej Mirtes
9e8e6e79f8
Open 1.0-dev
2021-09-12 22:00:31 +02:00
Jordi Boggiano
816e826ce0
Allow parsing class constants with more than one wildcard in the constant name
2021-09-12 13:52:00 +02:00
alexndlm
fac86158ff
Do not add space if empty string
2021-08-31 10:08:22 +02:00
Ondrej Mirtes
ea0b17460e
Allow empty array shape
2021-06-11 15:24:46 +02:00
Ondrej Mirtes
edb31b30ec
Modernization
2021-06-11 15:21:05 +02:00
Hugo Alliaume
dff3ee149b
chore: Use the latest PHPUnit wherever possible
...
See https://github.com/phpstan/phpstan-symfony/pull/162
2021-05-16 15:07:13 +02:00