Commit Graph

14433 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
6c8b3dc9f8
[DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector (#2453)
* [DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector

* Fixed 🎉
2022-06-08 07:48:55 +02:00
Abdul Malik Ikhsan
1a84313089
[Renaming] Skip rename docblock on conflict with alias on RenameClassRector (#2450)
* Another failing test for #7209

* fixture

* Closes #2448

* [ci-review] Rector Rectify

* clean up

* final touch: clean up

* final touch: clean up

Co-authored-by: Einar Gangsø <mail@einargangso.no>
Co-authored-by: GitHub Action <action@github.com>
2022-06-07 14:47:02 +02:00
Tomas Votruba
5e3c2e71e0 exclude polyfills in generics way from php-scoper docs 2022-06-07 12:33:14 +02:00
Abdul Malik Ikhsan
68b2dbfaf6
[Scoped] Update build script with no need define php 8.0 setup (#2449) 2022-06-07 09:57:47 +00:00
Tomas Votruba
cbbe410aff string prefixing is still needed 2022-06-07 11:40:07 +02:00
Tomas Votruba
a9779404d3 try without prefixing string classes 2022-06-07 11:32:53 +02:00
Tomas Votruba
8b66dc8439 remove slashed covered 2022-06-07 11:26:58 +02:00
Tomas Votruba
d4b7b48e6d
[scoped] Build with Scoper 0.17.2 (#2445)
* remove ScoperOption, not helpful

* try Scoper 0.17.2

* use dedicated repository

* expose helper functions

* add exclude ns

* expose normalizer

* try to fix import

* container ocnfigurator

* unpreifx file info for real

* expose container configuraotr

* deploy to original repository

* complete polyfill list

* expose rector running constant

* slash

* skip RuleDefinition explicitly
2022-06-07 11:23:53 +02:00
Tomas Votruba
39c7ae65e9 return 2022-06-07 09:34:38 +02:00
Tomas Votruba
145096b208 [scoper] try removing self/parent/static patch 2022-06-07 09:26:40 +02:00
Abdul Malik Ikhsan
4f07a4f30f
[Php74] Remove ReservedFnFunctionRector (#2447)
* [Php74] Remove ReservedFnFunctionRector

* unregister rule

* phpstan
2022-06-07 08:34:00 +02:00
Tomas Votruba
0c16eb2ad9 remove old CI check 2022-06-06 22:44:25 +02:00
Tomas Votruba
f261e0fea9 fix cs 2022-06-06 19:42:11 +02:00
Tomas Votruba
ae4e6ac61b remove unused ScoperOption 2022-06-06 19:42:03 +02:00
Tomas Votruba
1d577017ee [CI] use no diffs to clean the output 2022-06-06 19:38:10 +02:00
Tomas Votruba
c71f34afbe remove old test 2022-06-06 19:29:53 +02:00
Tomas Votruba
bd0104d6c6
[DX] Detach typo3 from core to allow stable growth of both packages (#2446)
* remove old init command docs

* detach typo3 from core, for very specific domain and many direct BC breaks from rector

* cleanup scoper

* remove downgrade of enum package, as not used anymore

* remove non-existing directory
2022-06-06 19:28:24 +02:00
Tomas Votruba
0eba231b07
[PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444) 2022-06-06 15:48:45 +00:00
Tomas Votruba
ddd88a8800
[DX] Remove symlinks option to require safe way of providing explicit paths (#2443) 2022-06-06 13:27:00 +02:00
Tomas Votruba
38a9718b52
[CS] Fix dynamic and broken indent detection, allow to configure spacing via RectorConfig::indent() method (#2442) 2022-06-06 11:51:58 +02:00
Tomas Votruba
1c64bb1fb0 [CI] shorten waiting times for packagist and deploy to speed-up process 2022-06-06 11:35:54 +02:00
Abdul Malik Ikhsan
3ae5f0c834
[Renaming] Handle crash on FuncCall with Arg class name conflict with use statement or namespace on RenameClassRector with auto import enabled (#2431)
* [Renaming] Handle conflict with use statement last name and namespace last name on RenameClassRector

* more fixture

* eol

* [ci-review] Rector Rectify

* Fixed 🎉

* final touch: more fixtures

* final touch: use negation of PHPStan\BetterReflection\Reflection\ReflectionClass

* final touch: clean up

* add fixture for in method call arg

* fix by verify start line < 0

* verify start coumn as well

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* twig CI error

* back

* try with located source check

* use equal to PHPStan\BetterReflection\Reflection\ReflectionFunction

* [ci-review] Rector Rectify

* completely remove RenamedClassesSourceLocator

* Revert completely remove RenamedClassesSourceLocator

This reverts commit 097753b1e742345bb3d3f460aa5719b2f4aa0a19.

* resolved with identifier->isClass()

* final touch: add more test for static call and const fetch

Co-authored-by: GitHub Action <action@github.com>
2022-06-06 10:34:51 +02:00
Dominik Ritter
df5bd5fb79
[DX] Make ClassAnnotationMatcher differentiate between known and unknown classes (#2319)
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2022-06-06 10:32:34 +02:00
Abdul Malik Ikhsan
40d9102eab
[Renaming] Do not Rename Docblock inner Namespace on RenameClassRector (#2441)
* Add failing test for rector/rector#7209

* update fixture

* Closes #2440

* fixture

Co-authored-by: Einar Gangsø <mail@einargangso.no>
2022-06-06 07:53:42 +02:00
Tomas Votruba
b1583c7d86 skip files missing in build rector-src package 2022-06-05 09:16:27 +02:00
Tomas Votruba
bab5ad9f04 improve preload autload paths 2022-06-05 09:04:08 +02:00
Abdul Malik Ikhsan
8b4df18bde
[Renaming] Keep comment on RenameClassRector (#2439)
* [Renaming] Keep comment on RenameClassRector

* Fixed 🎉

* Fixed 🎉
2022-06-05 08:49:06 +02:00
Tomas Votruba
dbb54b83cc
[automated] Re-Generate Nodes/Rectors Documentation (#2438)
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
2022-06-05 00:32:04 +00:00
Tomas Votruba
63cd74893d
[DeadCode] Improve RemoveJustPropertyFetchRector and apply (#2435) 2022-06-04 18:02:21 +00:00
Tomas Votruba
b0a6173550
[DeadCode] Add RemoveJustPropertyFetchRector (#2433) 2022-06-04 17:31:24 +00:00
Tomas Votruba
70261b71b7
[DeadCode] Fix known array type in empty if foreach (#2432) 2022-06-04 13:12:01 +00:00
Tomas Votruba
83f7e9f3ab
[DX] Remove too detailed --type in init command, use fw documentation instead (#2430) 2022-06-04 13:46:21 +02:00
Abdul Malik Ikhsan
506c282f54
[Scoped] Exclude symfony/contracts/HttpClient/Test/HttpClientTestCase.php from parallel-lint check (#2429)
* [Scoped] Exclude symfony/contracts/HttpClient/Test/HttpClientTestCase.php from parallel-lint check

* update script as well

* exclude check the Test directory itself
2022-06-04 12:38:45 +02:00
Abdul Malik Ikhsan
0d1932fec7
[Scoped] Update to symfony 6.1.* and symfony/contracts 3.1.* (#2418)
* update to symfony 6.1

* add parallel lint check

* fix

* fix

* ensure clear cache
2022-06-04 12:09:27 +02:00
Tomas Votruba
183493eab8
[DeadCode] Fix RemoveUnusedPrivatePropertyRector with left part of array dim fetch (#2428)
* add fixture with private array dim fetch property

* fix RemoveUnusedPrivatePropertyRector with left part of array dim fetch

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2022-06-04 11:33:15 +02:00
Tomas Votruba
36fe5d5d05
[DeadCode] fix RemoveJustPropertyFetchForAssignRector for nested array dim fetch (#2427)
* add test fixture to double nested array dim fetch

* fixup! add test fixture to double nested array dim fetch

* [DeadCode] fix RemoveJustPropertyFetchForAssignRector for nested array dim fetch
2022-06-04 09:15:02 +00:00
Tomas Votruba
f5e34f0393 skip team members from changelog, to give more credit to external contibutors 2022-06-04 10:19:54 +02:00
Tomas Votruba
eedfd1155d remove phpstan enum package, as no longer used 2022-06-04 10:13:07 +02:00
Tomas Votruba
c8814f5422 bump phpunit phpstan package 2022-06-04 10:12:27 +02:00
Tomas Votruba
6b9984175f
[Naming] Fix PseudoNamespaceToNamespaceRector reporting on change (#2426)
* fix PseudoNamespaceToNamespaceRector reporting on change

* remove overly abstraction with visitor factories

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2022-06-04 08:09:40 +00:00
Tomas Votruba
c3581f9d33
Skip used in new ctor (#2425) 2022-06-04 07:37:23 +00:00
Abdul Malik Ikhsan
283a9af3f0
[Renaming] Skip docblock rename different namespace on RenameClassRector (#2419)
* [Renaming] Skip docblock rename different namespace on RenameClassRector

* debug

* [ci-review] Rector Rectify

* debug

* [ci-review] Rector Rectify

* \ between namespace and name

* up

* debug

* debug

* check no namespace

* up

* Fixed 🎉

* final touch: add GroupUse_ support

* final touch: add GroupUse_ support

* final touch: clean up

* really final touch: clean up

* final touch: ensure no subnamespace check as check against getLast()

* final touch: remove unnneeded string cast

Co-authored-by: GitHub Action <action@github.com>
2022-06-04 09:31:58 +02:00
Abdul Malik Ikhsan
e8f058a6e4
[e2e] Add e2e for parallel process with current directory contains space (#2421)
* [e2e] Add e2e for parallel process with current directory contains space

* [e2e] Add e2e for parallel process with current directory contains space

* dir name

* Fixed 🎉

* phpstan

* final touch: eol

* clean up

* clean up

* final touch: use escapeshellarg()

* Add note for why escapeshellarg() is needed in parallel
2022-06-03 22:41:31 +02:00
Abdul Malik Ikhsan
d2bf080d6b
Update PHPStan to ^1.7.10 (#2424) 2022-06-03 22:40:10 +02:00
Tomas Votruba
c5f35e4a1d
[DeadCode] Add RemoveJustPropertyFetchForAssignRector (#2423) 2022-06-03 10:05:24 +00:00
Tomas Votruba
0df2351b89
[PHP 8.0] Add property support to ConstantListClassToEnumRector (#2422)
* add property enum support

* fixup! add property enum support
2022-06-03 09:56:38 +02:00
Tomas Votruba
7722a57d80
[PHP 8.0] Add return type support to ConstantListClassToEnumRector (#2420)
* add return type support

* lock to last stable phpstan

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2022-06-03 09:15:40 +02:00
Tomas Votruba
e368dabaed
[Downgrade] Add class method param to DowngradeEnumToConstantListClassRector (#2417)
* add param enum downgrade

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2022-06-02 15:08:06 +02:00
Tomas Votruba
340f5b999c
[DowngradePhp80] Add DowngradeEnumToConstantListClassRector (#2416) 2022-06-02 13:56:11 +02:00
Tomas Votruba
a73dafd30a
[PHP 8.0] Add method param to ConstantListClassToEnumRector (#2415)
* add skipped fixtures

* skip non-scalar types

* prepare parameter update

* add ConstExprClassNameDecorator, add PhpDocNodeDecoratorInterface
2022-06-02 10:58:19 +02:00