4078 Commits

Author SHA1 Message Date
Tomas Votruba
758a350d87 Updated Rector to commit 6af13d7b76234edf43dbb0b4c533912cec19f971 2021-05-12 13:15:45 +00:00
Tomas Votruba
7b29fb0f22 Updated Rector to commit f8b0ac301fe9a2c8db3aa5718770ce228550dd2a
f8b0ac301f update to new phpstan rules, add static fixes (#18)
2021-05-11 15:54:06 +00:00
Tomas Votruba
5f413efa75 Updated Rector to commit 54d89a4a41fe8789736b9ad0a07e7a55c59b244d
54d89a4a41 [BUGFIX] Remove redundant new line (#11)
2021-05-11 10:46:34 +00:00
Tomas Votruba
436fcb7505 Updated Rector to commit 0684911cdf88b424d6e2a9ba0689f0e35e94ebd6
0684911cdf [PHP 8.0] Promoted property fixes (#8)
2021-05-11 10:40:34 +00:00
Tomas Votruba
cdc3b7adef Updated Rector to commit f451b0b8e1e6761ec7f50809745d44d01caba66d
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00
Tomas Votruba
7d36c3b0b9 Updated Rector to commit a80cf5292d6df5e83b7d17c78630506e361bede9
a80cf5292d revert to working scoper 0.14
2021-05-10 22:23:08 +00:00
Tomas Votruba
363a910cf7 Updated Rector to commit a7db1ad94df4879885b9106773d2f8335cb40e49
a7db1ad94d use scoper 0.15
2021-05-10 22:10:16 +00:00
Tomas Votruba
345a89a7e2 Updated Rector to commit a657258f317da1f6fd42069bf3b09198d3cfd635
a657258f31 cleanup CHANGELOG, is part of GitHub releases now (#2)
2021-05-10 00:23:30 +00:00
Tomas Votruba
d56e7982d0 Updated Rector to commit dedd4b55fe3e03cae9bd5ac822cfdccd8deb3fb6
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
Tomas Votruba
fd9f8d18f9
add RectorOutputStyle to out-scope output formatter from symfony (#6395) 2021-05-08 23:04:43 +02:00
TomasVotruba
5cd294218f remove indirect dependency on intl 2021-05-08 15:27:41 +02:00
TomasVotruba
94bd7c822b rename DowngradeTypeDeclarationRector to DowngradeScalarTypeDeclarationRector 2021-05-08 01:34:29 +02:00
Tomas Votruba
b1b5f95ad8
Fix missing stmt on adding a new node (#6383)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-07 19:33:13 +00:00
TomasVotruba
8f9e234b4a [SetList] Remove deprecated set 2021-05-06 22:32:33 +02:00
TomasVotruba
0800c7cdc3 fix cs 2021-05-06 20:51:25 +02:00
TomasVotruba
ab0b1915d1 fix cs 2021-05-06 13:52:08 +02:00
Sebastian Schreiber
16d5930435
[TASK] Take .editorconfig into account (#6272) 2021-05-06 13:26:28 +02:00
Abdul Malik Ikhsan
ba20c5ed74
[EarlyReturn] Skip ChangeAndIfToEarlyReturnRector on has assign in loop with indirect return after loop (#6365)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-06 02:26:20 +02:00
Tomas Votruba
5fe3eb555f
[PHP 5.3] Add DirConstToFileConstRector (#6363) 2021-05-05 21:56:59 +00:00
Tomas Votruba
29e3bc9372
[NetteToSymfony] Decouple to own package (#6360) 2021-05-05 21:15:26 +00:00
Tomas Votruba
c83ac3683e
Decouple specific rules from NonPhpFileProcessor to NonPhpRectorInterface contract (#6285) 2021-05-02 11:50:34 +00:00
Tomas Votruba
2037d55d6b
[PHP 8.1] Add ReturnNeverTypeRector (#6283) 2021-05-02 10:46:55 +00:00
Tomas Votruba
f925b62d9b
Report add array doc nodes (#6274) 2021-05-01 10:59:25 +00:00
Abdul Malik Ikhsan
5b386ab5fe
[CodeQuality] Register NarrowUnionTypeDocRector to code-quality config set (#6269) 2021-04-30 12:35:34 +02:00
Abdul Malik Ikhsan
e6157560c1
[CodeQuality] Add NarrowUnionTypeDocRector (#6262)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-30 10:28:36 +02:00
Tomas Votruba
52c4888374
[Downgrade 7.2] Fix DowngradeStreamIsattyRector with return (#6266) 2021-04-29 13:58:00 +00:00
Maxim Tugaev
cfa8295e95
AnnotationToAttributeRector: array handling (#6259) 2021-04-28 15:04:23 +02:00
Abdul Malik Ikhsan
3153a088a3
[Privatization] Handle Reference Method/Static Call from outside file on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#6256)
* Add failing test fixture for ChangeReadOnlyPropertyWithDefaultValueToConstantRector

* Closes #6214

* phpstan

* CS fix

* phpstan

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fix ReturnThisRemoveRector on check "vendor" dir

* phpstan

* phpstan

* [ci-review] Rector Rectify

* phpstan

* [ci-review] Rector Rectify

* php 7.3

* phpstan

* use isBuiltIn() check

* [ci-review] Rector Rectify

* move Functionality to FunctionLikeReflectionParser

* return false on ClassMethod not found

* phpstan

* [ci-review] Rector Rectify

Co-authored-by: zingimmick <zingimmick@outlook.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-28 13:03:41 +00:00
Tomas Votruba
e83b7f2538
[PHPStan] Resolve dependency juggling (#6258) 2021-04-28 09:33:25 +00:00
Tomas Votruba
cf9d8c202d
Failing test: Node type is not updated after executing rector (#6255)
Co-authored-by: Michal Lulco <lulco@efabrica.sk>
2021-04-28 00:11:40 +00:00
Maxim Tugaev
a5a99317b7
AnnotationToAttributeRector: ensure bool param in attribute (#6254) 2021-04-27 11:41:29 +00:00
Tomas Votruba
5cda5de4ac
Decouple Rector PHPStan rules to own package (#6242) 2021-04-25 23:12:14 +00:00
Tomas Votruba
414a656ab9
Fix AUTOLOAD_PATHS and BOOTSTRAP_FILES in tests (#6239) 2021-04-25 09:23:15 +00:00
Tomas Votruba
f9dc93cb1a
Fix WrapEncapsedVariableInCurlyBracesRector reporting (#6220)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 19:32:59 +00:00
TomasVotruba
d5efa10ed0 remove extras space between diff and list rules 2021-04-23 00:25:03 +02:00
Tomas Votruba
159acc8512
remove notifyFileChange() (#6206) 2021-04-22 23:51:32 +02:00
Tomas Votruba
1d0ba2a439
Add AbstractTestCase (#6205) 2021-04-22 21:36:50 +00:00
Tomas Votruba
45db3289b9
Fix type (#6200) 2021-04-22 11:58:54 +00:00
Tomas Votruba
94df140c4d
[Downgrade] Report changed widening in another class (#6193)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 11:29:04 +00:00
Tomas Votruba
ff57c49662
[PHP 7.2] Add covariant param support for trait methods (#6190)
* [Downgrade PHP 7.2] Handle trait methods too

* move DowngradeParameterTypeWideningRector to Class_ namespace

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 00:02:38 +02:00
Tomas Votruba
eda5bf1ea3
[DeadCode] Add RemoveUnusedPrivateMethodParameterRector (#6168)
* [DeadCode] Add RemoveUnusedPrivateMethodParameterRector

This reverts commit c815334bed781c555f08dff82ce7861d758e9e7a.

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-19 15:19:14 +02:00
Abdul Malik Ikhsan
fa6fc49c59
[NodeAnalyzer] Use ClassAnalyzer for anonymous class check (#6162)
* use ClassAnalyzer in ParsedNodeCollector

* use ClassAnalyzer in BetterNodeFinder

* use Pin ParentClassToTraitsRector

* use in ChangeSingletonToServiceRector

* use in ValueObjectClassAnalyzer

* use in PropertyAddingPostRector

* use in fixture

* use isAnonymous() in ClassAnalyzer
2021-04-18 15:01:22 +02:00
TomasVotruba
d3295a7d1e fix incorrect varialbe name 2021-04-15 23:07:07 +02:00
TomasVotruba
8976681b20 remove StaticNodeInstanceOf 2021-04-15 22:45:10 +02:00
Tomas Votruba
b8071fb7bc
Make use of inline parser over extreme node construction (#6145)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 17:34:49 +00:00
Tomas Votruba
0aa4e9dcad
Extract ErrorFactory (#6132)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 12:01:03 +00:00
Tomas Votruba
9c147eb846
make use of file rector errors (#6131) 2021-04-14 04:35:28 +02:00
Tomas Votruba
1e24618a9e
File reports (#6130) 2021-04-14 02:15:10 +00:00
Tomas Votruba
b03fa60c52
Fix empty docblocks (#6128)
* working prototype for nested arrays

* add data provider
2021-04-13 20:58:34 +02:00
Tomas Votruba
5bde10c181
Various doc parser fixes (#6125) 2021-04-13 18:51:41 +00:00