Abdul Malik Ikhsan
70de3a01cc
[Php80] Handle UnionTypesRector on object and specific class/type in union type ( #6237 )
...
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-26 11:08:56 +02:00
Tomas Votruba
414a656ab9
Fix AUTOLOAD_PATHS and BOOTSTRAP_FILES in tests ( #6239 )
2021-04-25 09:23:15 +00:00
Abdul Malik Ikhsan
0ac5412aa0
[Php80] Add default case when variable initialized on ChangeSwitchToMatchRector ( #6230 )
...
* Add failing test fixture for ChangeSwitchToMatchRector
# Failing Test for ChangeSwitchToMatchRector
Based on https://getrector.org/demo/f7f2ba48-3c19-4fdb-bc0a-e956e037eefd
It's important to add the default case to prevent this error when passing another code:
```
Fatal error: Uncaught UnhandledMatchError: Unhandled match value of type int
```
https://3v4l.org/E64Um
* Closes #6216
* phpstan
* phpstan
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-25 09:07:36 +02:00
Abdul Malik Ikhsan
774ac29000
[Php80] Skip RemoveUnusedVariableInCatchRector when variable used next catch ( #6231 )
...
* Add failing test fixture for RemoveUnusedVariableInCatchRector
# Failing Test for RemoveUnusedVariableInCatchRector
Based on https://getrector.org/demo/194e0c75-cb30-4f02-a0de-70d32fbe152c
* Closes #6213
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-25 09:06:07 +02:00
Tomas Votruba
9e869098ff
[Downgrade PHP 7.2] Fix 2+ param position ( #6227 )
2021-04-24 07:13:59 +00:00
Tomas Votruba
fa45c4f9d1
[Downgrade PHP 7.2] Make DowngradeParameterTypeWideningRector work for interface ( #6224 )
2021-04-24 01:14:40 +02:00
Tomas Votruba
1e24618a9e
File reports ( #6130 )
2021-04-14 02:15:10 +00:00
Tomas Votruba
809d617708
Refactor OptionalParametersAfterRequiredRector to remove dependency from NodeRepository ( #6098 )
2021-04-11 10:27:20 +00:00
Tomas Votruba
79621dbb99
Flip @see to @changelog links ( #6092 )
2021-04-10 18:47:17 +00:00
Tomas Votruba
b2412ad62a
Refactor doctrine/annotation from dynamic to own static-reflection parser ( #5974 )
...
* remove doctrine/annotations
* Refactor doctrine/annotation parser to static reflection with phpdoc-parser
* remove doctirne-annotation-parser-syncer
* remove annotation stubs
* use nodes
* almost there
* [ci-review] Rector Rectify
* skip temporary
* phpstan: remove fixed messages
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 11:01:11 +02:00
Tomas Votruba
ae1c6b90f7
Remove dynamic type checks #2 ( #5941 )
2021-03-21 21:31:18 +00:00
Tomas Votruba
a781b3bd12
Remove dynamic type checks ( #5939 )
2021-03-21 19:41:17 +01:00
Tomas Votruba
89a7afb5a4
Merge DeadDocBlock to DeadCode ( #5936 )
2021-03-21 12:57:56 +00:00
TomasVotruba
94fd5af4f8
make use of external symfony doc nodes
2021-03-21 01:38:09 +01:00
Tomas Votruba
68026636bf
[PHP 8.0] Refactor attributes from magic interface to explicit list ( #5926 )
2021-03-20 23:16:21 +00:00
Tomas Votruba
b28b8742fc
use rector-nette with tags ( #5924 )
...
* use rector-nette with tags
* redirect Kdyby sets
* use local ParamAnalyzer
2021-03-20 22:16:54 +01:00
Tomas Votruba
c01d9699b5
Remove type-hiding name methods ( #5912 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 23:11:36 +00:00
Tomas Votruba
025e6ed571
[PhpDocParser] Make use of native attributes ( #5841 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 14:33:58 +00:00
TomasVotruba
8685a44ed0
BetterNodeFinder improvements
2021-03-18 12:27:34 +01:00
TomasVotruba
3746f24cf4
remove FUNCTION_NODE attribute
2021-03-18 00:00:16 +01:00
Abdul Malik Ikhsan
fb8b9c1e75
[Php80] Handle Identical false in StrContainsRector ( #5848 )
...
* [Php80] Fixes #5847 Handle Identical false in StrContainsRector
* clean up
* more fixtures
* phpstan
* final touch
2021-03-14 17:14:49 +01:00
Tomas Votruba
157c39aefc
[DX] move src/tests rules from micro-packages to single PSR-4 structure ( #5826 )
2021-03-12 23:20:25 +01:00