3723 Commits

Author SHA1 Message Date
Tomas Votruba
6852cac5e2 Updated Rector to commit 8e7ba00e50bf732dd47ce68d932b0262037e4cfc
8e7ba00e50 remove last empty token on new printed content; go for newline by default as best practise conventions (#13)
2021-05-11 11:30:54 +00:00
Tomas Votruba
9fd49a8b07 Updated Rector to commit ecc876ca19cb3ded0fa30ca856940b928b34b4b1
ecc876ca19 [build] add e2e tests (#12)
2021-05-11 11:17:57 +00:00
Tomas Votruba
1d2f9989ce Updated Rector to commit a09d515233b0f5356a006586e3f26adf5868cbf0
a09d515233 [TASK] Move RemovedAndAddedFilesCollector (#9)
2021-05-11 10:44:08 +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
534f30d928 mirror stmts 2021-05-07 22:22:25 +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
Tomas Votruba
ac82ae6a63
Move from SETS parameter to explicit import() (#6375) 2021-05-06 20:06:31 +00:00
TomasVotruba
0800c7cdc3 fix cs 2021-05-06 20:51:25 +02:00
TomasVotruba
812ff5b654 [show] skip system post rectors in show command 2021-05-06 16:17:16 +02:00
Sebastian Schreiber
dde5458d5d
[BUGFIX] Remove obsolete FormatterInterface (#6370) 2021-05-06 15:18:00 +02:00
Sebastian Schreiber
16d5930435
[TASK] Take .editorconfig into account (#6272) 2021-05-06 13:26:28 +02:00
Tomas Votruba
38248d08f4
Return array of nodes directly from refactor() if possible (#6366)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-06 10:23:37 +02:00
Tomas Votruba
327f5fc126
[DowngradePhp70] Add SplitGroupedUseImportsRector + allow to return list of stmt[] in refactor() (#6364)
* rename SeparateMultiUseImportsRector to SeparateMultiUseImportsRector

* [PHP 7.0] Add SplitGroupedUseImportsRector

* allow to return multiple nodes to avoid addStmts() and removeNode() combo

* dot not FQN namespace and use improts
2021-05-06 01:44:08 +02:00
Tomas Votruba
29e3bc9372
[NetteToSymfony] Decouple to own package (#6360) 2021-05-05 21:15:26 +00:00
TomasVotruba
6e212162c8 [CodeQuality] Add CallUserFuncWithArrowFunctionToInlineRector 2021-05-04 20:39:28 +02:00
Tomas Votruba
f5bb6cd17e
composer: use phpstan with php-parser 4.10.5 (#6327)
* composer: use phpstan with php-parser 4.10.5

* bump to php-cs-fixer 3.0

* bump to xdebug handler 2.0
2021-05-04 16:30:35 +02:00
Tomas Votruba
ac7a03f800
[php-parser] upgrade to 4.10.5 - add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode (#6325)
* add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode

* include preload in dev repository too

* include preload function
2021-05-04 14:21:34 +02:00
Tomas Votruba
21bf53f2ec
[CodeQuality] Add FuncGetArgsToVariadicParamRector (#6318) 2021-05-03 21:27:20 +00:00
Tomas Votruba
498f538b05
Refactor ActiveRectorsProvider to autowired array (#6286)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-02 14:33:41 +02: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
TomasVotruba
898fc72cb7 remove commented dependency 2021-04-30 10:40:44 +02:00
Tomas Votruba
ca4d1fb1aa
[TypeDeclaration] Traverse the param node that is changed in ParamTypeFromStrictTypedPropertyRector (#6260) 2021-04-28 20:33:20 +00: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
Tomas Votruba
5cda5de4ac
Decouple Rector PHPStan rules to own package (#6242) 2021-04-25 23:12:14 +00:00
Sebastian Schreiber
255b1fcbf7
[TASK] Add template type option for init command (#6233) 2021-04-25 21:43:59 +02:00
Tomas Votruba
414a656ab9
Fix AUTOLOAD_PATHS and BOOTSTRAP_FILES in tests (#6239) 2021-04-25 09:23:15 +00:00
Tomas Votruba
3f3811ab21
add dump_node() helper functoin (#6229) 2021-04-24 14:22:36 +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
f9dc93cb1a
Fix WrapEncapsedVariableInCurlyBracesRector reporting (#6220)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 19:32:59 +00:00
Tomas Votruba
a3ec81fe1f
Add setter/getter factory (#6219) 2021-04-23 18:14:51 +00: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
Abdul Malik Ikhsan
cb6e874df3
[DeadCode] Skip expr check from statement on RemoveUnusedVariableAssignRector for Nop stmt (#6204)
* [DeadCode] Skip expr check from statement on RemoveUnusedVariableAssignRector for Nop stmt

* enforce with Expression check

* [ci-review] Rector Rectify

* fix

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 15:44:33 +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
507bd85c3e
[Downgrade] Report only changed return types (#6191) 2021-04-22 10:04:58 +00:00
Sebastian Schreiber
5cab6367fb
[TASK] Use rector-installer to load config of extensions (#6174) 2021-04-22 10:30:18 +02:00
TomasVotruba
df7e3f2f82 fix assumption var 2021-04-21 01:05:56 +02:00
TomasVotruba
9a19a25218 fix not expression 2021-04-21 01:04:14 +02:00
Sebastian Schreiber
deafaf9ecd
[BUGFIX] Reusage of RenamedClassesDataCollector (#6172)
- If reusing the RenamedClassesDataCollector in another rector the additional classes get overriden
2021-04-20 13:49:16 +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