Commit Graph

662 Commits

Author SHA1 Message Date
Tomas Votruba
aae549741f Updated Rector to commit 0cb3fd0feb464b4568e07607a05c794637aa2862
0cb3fd0feb [Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
2023-08-01 10:55:14 +00:00
Tomas Votruba
64fc640e30 Updated Rector to commit 00edfa77a0dcfabb55daca82e7e0b51063ad68e6
00edfa77a0 [TypeDeclaration] Add StrictStringParamConcatRector (#4624)
2023-07-31 11:10:36 +00:00
Tomas Votruba
d9fb45c92e Updated Rector to commit e8bba86e071c527045951c0ed5edd852d80776af
e8bba86e07 Fix string type on StrictArrayParamDimFetchRector (#4623)
2023-07-30 17:06:57 +00:00
Tomas Votruba
ddde48c977 Updated Rector to commit 3ff83e52db13fd98dcde85b1d2d53f7db80b875b
3ff83e52db Make use of toPhpDocNode() - take #9 (#4572)
2023-07-21 14:25:32 +00:00
Tomas Votruba
03ebf9676c Updated Rector to commit ef6aa9efa5392f2b799d0c5cb38205ee9c119a75
ef6aa9efa5 Make use of toPhpDocNode() - take #4 (#4559)
2023-07-20 22:19:40 +00:00
Tomas Votruba
6981c70c9a Updated Rector to commit 9ed8c21b127cdd45a28307d5fc41668f867f4ef4
9ed8c21b12 [DeadCode] Remove findFirstPrevious() usage on UselessIfCondBeforeForeachDetector (#4388)
2023-07-01 09:41:56 +00:00
Tomas Votruba
5db0586b82 Updated Rector to commit 205df9013af5e05034441aa6088599532f5fef05
205df9013a [TypeDeclaration] Add Encapsed string support to AlwaysStrictScalarExprAnalyzer (#4382)
2023-06-30 11:59:36 +00:00
Tomas Votruba
13cd8748d7 Updated Rector to commit df459e711ae5bd8f359df40fbef863cc386bf107
df459e711a Handle AlwaysRememberedExpr in deep Expr (#4310)
2023-06-21 12:59:23 +00:00
Tomas Votruba
3236151dbe Updated Rector to commit df459e711ae5bd8f359df40fbef863cc386bf107
df459e711a Handle AlwaysRememberedExpr in deep Expr (#4310)
2023-06-21 12:07:07 +00:00
Tomas Votruba
4f6d168ff6 Updated Rector to commit 556e2f2b2e7b7e8339e6bf8e40a81f2fee179c82
556e2f2b2e make scoper work with prefixed and instanceof classes in symfony di compiler
2023-06-12 00:02:46 +00:00
Tomas Votruba
57b6546504 Updated Rector to commit 4e02f78d6b8352fd24afc670f285453468742c3f
4e02f78d6b temporarily exclude autowire, to skip throws
2023-06-11 23:42:32 +00:00
Tomas Votruba
4ec7e4865b Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:26:00 +00:00
Tomas Votruba
503a6059f8 Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:01:39 +00:00
Tomas Votruba
3313a231b7 Updated Rector to commit bb609b28e327ca1fb7827b6bc548013d19a2cf4e
bb609b28e3 [Core] Always reset stopTraversal to false on next Rector visit (#4182)
2023-06-11 14:17:34 +00:00
Tomas Votruba
f82e30a026 Updated Rector to commit ae874efa148e6d5a031503892a6307824b4d7003
ae874efa14 Remove SourceLocatorProviderInterface as unused (#4126)
2023-06-08 22:00:17 +00:00
Tomas Votruba
da05109534 Updated Rector to commit b7760eb6fcfd4d809723e4dfd54ece8d437baff0
b7760eb6fc [Scoper] Try enable DowngradeArrayIsListRector (#4096)
2023-06-06 23:13:47 +00:00
Tomas Votruba
515eba1ef3 Updated Rector to commit b8b1155ffe068cfb0a1a702dfd00e21bf711c46d
b8b1155ffe try polyfill is_list
2023-06-06 17:02:20 +00:00
Tomas Votruba
075297ce56 Updated Rector to commit 0af705fb570340cb0e4fbc0b9e897b09bd172f5c
0af705fb57 debug
2023-06-06 16:41:24 +00:00
Tomas Votruba
84532f58cf Updated Rector to commit b852d706e3c13bc862a91acac245b313db357450
b852d706e3 Remove AffectedFilesCount as unused (#4094)
2023-06-06 15:06:12 +00:00
Tomas Votruba
9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +00:00
Tomas Votruba
f7d04bd361 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-31 02:38:09 +00:00
Tomas Votruba
089eca6986 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-31 00:18:13 +00:00
Tomas Votruba
3342a558a3 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-30 20:19:22 +00:00
Tomas Votruba
1a69dcf241 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:18:02 +00:00
Tomas Votruba
28d2a3ced0 Updated Rector to commit d413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b
d413dc15e6 Remove unused method addNodesBeforeNode() (#4024)
2023-05-30 09:05:54 +00:00
Tomas Votruba
6f79fcfb1e Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 08:41:10 +00:00
Tomas Votruba
9b4ae51505 Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
4d4c73d595 [automated] Apply Coding Standard (#3998)
2023-05-28 00:32:17 +00:00
Tomas Votruba
3305b77873 Updated Rector to commit 61d780b7491001fa13597795320c9e92f893c50d
61d780b749 add symfony contracts for trigger_deprecation function (#3987)
2023-05-27 10:19:41 +00:00
Tomas Votruba
4af8e96d37 Updated Rector to commit 330e1c5845ca7a569840384fa6eb3e730e13df71
330e1c5845 Update dependencies (#3984)
2023-05-27 09:31:07 +00:00
Tomas Votruba
65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba
4ba18f5a6a Updated Rector to commit 28712b9f9c756a69fec7ca52f53a5549a55a5113
28712b9f9c [Naming] Improve performance by using findFirst() for casted to (bool) on BreakingVariableRenameGuard (#3703)
2023-04-29 04:13:11 +00:00
Tomas Votruba
9038a0d99c Updated Rector to commit 1a91d04c5256e451c744eeb848aaa0182dd227c5
1a91d04c52 [CodeQuality] Add cast scalar support on ReturnTypeFromStrictScalarRector (#3544)
2023-04-01 10:14:17 +00:00
Tomas Votruba
0e412b55cb Updated Rector to commit f7e1b1f57e8746e07627799b5d9813e12c1c7b56
f7e1b1f57e [NodeAnalyzer] Use PHPStan ClassReflection to detect anonymous class on ClassAnalyzer (#3543)
2023-03-31 21:41:53 +00:00
Tomas Votruba
52181ff8c7 Updated Rector to commit 10f38ea6718148f80bc24cd810a016e1a037691d
10f38ea671 add symfony/process
2023-03-02 01:50:45 +00:00
Tomas Votruba
7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba
cf1958e570 Updated Rector to commit 2eac878f538ddd1e20346c14d402f7e93ee6033b
2eac878f53 [TypeDeclaration] Only apply false type on php 8.2+ configured on TypedPropertyFromAssignsRector (#3422)
2023-02-28 18:23:25 +00:00
Tomas Votruba
88cbdce92d Updated Rector to commit fe3c6ff324a814101fdc2f489980ceb9fa219322
fe3c6ff324 [Privatization] Fix crash on assign inside Arg on ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3423)
2023-02-28 15:26:15 +00:00
Tomas Votruba
547b750176 Updated Rector to commit 61348a86a5a9f113e0bd7d40324b3a0eec6fcd7d
61348a86a5 [e2e][core] Do not print on execute without --dry-run when no change (#3407)
2023-02-23 13:52:00 +00:00
Tomas Votruba
db9dc03ef1 Updated Rector to commit 61348a86a5a9f113e0bd7d40324b3a0eec6fcd7d
61348a86a5 [e2e][core] Do not print on execute without --dry-run when no change (#3407)
2023-02-23 13:14:36 +00:00
Tomas Votruba
99c36383bb Updated Rector to commit 638a0ad9723a505b4908ed6b6534027bfd4dc5f2
638a0ad972 Remove unused RectorServiceConfigurator, use RectorConfig instead (#3363)
2023-02-08 14:55:14 +00:00
Tomas Votruba
66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba
bbb27b399f Updated Rector to commit 828ec4e66ed7118e0cc6315df0190941d7db1c72
828ec4e66e [Printer] Handle return array of nodes with InlineHTML (#3304)
2023-01-25 19:21:39 +00:00
Tomas Votruba
000bfb6f79 Rector 0.15.10 2023-01-21 14:30:16 +00:00
Tomas Votruba
39a38b4fc5 Rector 0.15.9 2023-01-21 14:17:30 +00:00
Tomas Votruba
764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba
e8d8146deb Updated Rector to commit 0146fc085ba712bc4d3713ef89bdb06e8e1d959f
0146fc085b bump deps
2022-12-29 12:31:28 +00:00
Tomas Votruba
baf8af4c9b Updated Rector to commit 7d5d1ce55264aec6d17b3c7013802103c813c0a3
7d5d1ce552 [Core] Performance improvement: Remove unnecessary re-call FileFactory::createFileInfosFromPaths() (#3210)
2022-12-17 08:32:10 +00:00
Tomas Votruba
b2e081777a Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-07 13:37:40 +00:00
Tomas Votruba
3748da8b80 Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 18:18:33 +00:00
Tomas Votruba
91e646a878 Updated Rector to commit 7648780936ffae358b4f79230923ee61dde30e14
7648780936 Use Symfony 6.1 to avoid BC break now (#3142)
2022-12-02 14:00:07 +00:00
Tomas Votruba
9181dd5876 Updated Rector to commit 076642f73eee5814a096552c33b28740fbbd48ce
076642f73e [Scoper] Remove manual register DowngradeEnumToConstantListClassRector on config-downgrade.php (#3138)
2022-12-02 12:41:23 +00:00
Tomas Votruba
91f18482f3 Updated Rector to commit 076642f73eee5814a096552c33b28740fbbd48ce
076642f73e [Scoper] Remove manual register DowngradeEnumToConstantListClassRector on config-downgrade.php (#3138)
2022-12-02 12:28:08 +00:00
Tomas Votruba
5e2e700040 Updated Rector to commit d2064068055fb25da2c245515a6c6260fbe6a597
d206406805 [PHP 8.1] Add other methods to ClassFromEnumFactory
2022-12-01 18:05:56 +00:00
Tomas Votruba
09f8be2dde Updated Rector to commit f387890dbeba0617f9a4f98f44ac1c8f08e6c1b0
f387890dbe [build] add enum to const list downgrade
2022-12-01 16:57:08 +00:00
Tomas Votruba
ff75474d25 Updated Rector to commit 39f43c01cbc34a8bb064f056d39f1b8d2bd7a152
39f43c01cb Use Symfony ~6.1.x to avoid crash on update vendor-patch (#3134)
2022-12-01 14:10:32 +00:00
Tomas Votruba
cbd1da8466 Updated Rector to commit 2b35d2e75ea03ffe643c012485952ec6df3ea2ba
2b35d2e75e [TypeDeclaration] Move Rector Enterprise TypeDeclaration rules here (#3125)
2022-11-28 20:42:41 +00:00
Tomas Votruba
728e63c6c2 Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 13:29:01 +00:00
Tomas Votruba
ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba
b7fb4398da Updated Rector to commit 997e5f4ae8c388b8a12d16539e8109fe821e8fd6
997e5f4ae8 [TypeDeclaration] Skip intersection with iterable on ReturnTypeDeclarationRector on php 8.1 feature enabled (#3022)
2022-10-29 10:54:11 +00:00
Tomas Votruba
19fe61ce3e Updated Rector to commit bb6603dec92c331eac49c2e4ab4bff01cff1fd74
bb6603dec9 slash
2022-10-13 02:15:20 +00:00
Tomas Votruba
cf91d46f0b Updated Rector to commit 2ba0aa6297b0ccc405564cb76c9f9fb939ac8348
2ba0aa6297 syntax
2022-10-13 02:02:59 +00:00
Tomas Votruba
e87c848801 Updated Rector to commit ff4d797c73a51a3fb12cb644c6911ecd7313ec1b
ff4d797c73 [DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
2022-10-02 20:24:31 +00:00
Tomas Votruba
6c20d257e3 Updated Rector to commit d3d18d442c8f2ca64f5ebef5c7a7541938fa1e2a
d3d18d442c keep relative paths
2022-09-01 09:30:44 +00:00
Tomas Votruba
28e29c8294 Updated Rector to commit 58a577c5b3d34cc70ba6ea713e7a6c7bbe66354e
58a577c5b3 [automated] Re-Generate Nodes/Rectors Documentation (#2845)
2022-08-28 00:39:05 +00:00
Tomas Votruba
26bacab80c Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:46:08 +00:00
Tomas Votruba
967bbc6b59 Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:29:35 +00:00
Tomas Votruba
1d28ca109c Updated Rector to commit 5ec4cff203f68d9578719b54ce3a145efb32bc79
5ec4cff203 [Php56] Handle jump not Expression stmt next initialized on AddDefaultValueForUndefinedVariableRector (#2725)
2022-08-02 06:46:18 +00:00
Tomas Votruba
3bfd3cdb42 Updated Rector to commit 7ca5096c12deb3d0619bfcf3ed61b0b6e6737b35
7ca5096c12 [Php56] Skip already initialized on next Stmt on AddDefaultValueForUndefinedVariableRector (#2721)
2022-07-29 16:30:03 +00:00
Tomas Votruba
fbc13bfea3 Updated Rector to commit e6e5895517eb301f3fa3b00759b06876cacde836
e6e5895517 [Naming] Skip used in arrow function args on RenameVariableToMatchMethodCallReturnTypeRector (#2599)
2022-07-01 07:39:49 +00:00
Tomas Votruba
846aa2b4c2 Updated Rector to commit e97dd8f360
e97dd8f360 Use rector downgrade php (#2582)
2022-06-28 12:42:29 +00:00
Tomas Votruba
ec6f7db42d Updated Rector to commit 89a684f2b7
89a684f2b7 [Core] Apply Scope refresh for Namespace_ and FileWithoutNamespace (#2569)
2022-06-27 08:32:39 +00:00
Tomas Votruba
4522848db4 Updated Rector to commit 005ca33bcb
005ca33bcb [DowngradePhp80] Do not change correct Union array docblock to mixed[] on DowngradeUnionTypeDeclarationRector (#2555)
2022-06-22 22:21:39 +00:00
Tomas Votruba
fa8e606d26 Updated Rector to commit 49fc61c1ff
49fc61c1ff Bump to Symplify 11 (#2489)
2022-06-13 23:08:50 +00:00
Tomas Votruba
dd31e833a9 Updated Rector to commit ce1c29184d
ce1c29184d [scoped] change only year and month, to make diff esaier to see; autoload is handled already
2022-06-11 12:27:46 +00:00
Tomas Votruba
b4891e547c Updated Rector to commit a5340c6f06
a5340c6f06 [Renaming] Do not rename docblock same name not found in use inside namespace (#2471)
2022-06-11 11:59:10 +00:00
Tomas Votruba
a9ffd906d7 Updated Rector to commit 368dbb048c
368dbb048c docs: fix instruction in CONTRIBUTING.md (#2470)
2022-06-10 05:55:49 +00:00
Tomas Votruba
5953030010 Updated Rector to commit 56651d0190
56651d0190 use PHPStan 1.7.12, with new phpdoc-parser to fix endline issue
2022-06-09 12:53:21 +00:00
Tomas Votruba
7e1e20e9f2 Updated Rector to commit 17b86d4b77
17b86d4b77 [CodeQuality] Remove unnecessary check next return removed no SimplifyIfElseToTernaryRector (#2457)
2022-06-09 06:07:50 +00:00
Tomas Votruba
e8d4384fe8 Updated Rector to commit 6c8b3dc9f8
6c8b3dc9f8 [DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector (#2453)
2022-06-08 05:54:40 +00:00
Tomas Votruba
1fa4d2afe7 Updated Rector to commit 5e3c2e71e0
5e3c2e71e0 exclude polyfills in generics way from php-scoper docs
2022-06-07 10:39:08 +00:00
Tomas Votruba
a3c86b2b50 Updated Rector to commit df529df379052abcc8350f14635ccb4f89c6eadb
df529df379 complete polyfill list
2022-06-07 08:30:51 +00:00
Tomas Votruba
bdfd24339f Updated Rector to commit 2e977bd3aad21113e0bb7e2aa9b102f6f1e9246d
2e977bd3aa deploy to original repository
2022-06-07 08:22:29 +00:00
Tomas Votruba
91f5aab952 Updated Rector to commit 4f07a4f30f
4f07a4f30f [Php74] Remove ReservedFnFunctionRector (#2447)
2022-06-07 06:40:10 +00:00
Tomas Votruba
da1eb8d817 Updated Rector to commit bd0104d6c6
bd0104d6c6 [DX] Detach typo3 from core to allow stable growth of both packages (#2446)
2022-06-06 17:33:21 +00:00
Tomas Votruba
aa2cb1b997 Updated Rector to commit 0eba231b07
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 17:12:56 +00:00
Tomas Votruba
a28f4b14a4 Updated Rector to commit 2022-06-06 16:43:29 +00:00
Tomas Votruba
07acf2086f Updated Rector to commit 40d9102eab
40d9102eab [Renaming] Do not Rename Docblock inner Namespace on RenameClassRector (#2441)
2022-06-06 06:00:07 +00:00
Tomas Votruba
3113a2404c Updated Rector to commit dbb54b83cc
dbb54b83cc [automated] Re-Generate Nodes/Rectors Documentation (#2438)
2022-06-05 00:39:10 +00:00
Tomas Votruba
6677a82eb8 Updated Rector to commit 506c282f54
506c282f54 [Scoped] Exclude symfony/contracts/HttpClient/Test/HttpClientTestCase.php from parallel-lint check (#2429)
2022-06-04 10:45:13 +00:00
Tomas Votruba
98eb7617da Updated Rector to commit 283a9af3f0
283a9af3f0 [Renaming] Skip docblock rename different namespace on RenameClassRector (#2419)
2022-06-04 07:39:10 +00:00
Tomas Votruba
14da17860d Updated Rector to commit 7722a57d80
7722a57d80 [PHP 8.0] Add return type support to ConstantListClassToEnumRector (#2420)
2022-06-03 07:23:26 +00:00
Tomas Votruba
56db9b2ff8 Updated Rector to commit a73dafd30a
a73dafd30a [PHP 8.0] Add method param to ConstantListClassToEnumRector (#2415)
2022-06-02 09:05:21 +00:00
Tomas Votruba
02c0f07aa0 Updated Rector to commit 9187ff0430
9187ff0430 [Scoped] Update full_build.sh to reflect the current Github workflow for build scoped (#2413)
2022-06-02 07:23:49 +00:00
Tomas Votruba
9116f9a534 Updated Rector to commit 8eac546e11
8eac546e11 use generic patch for RectorConfig
2022-06-01 13:18:17 +00:00
Tomas Votruba
f63cc42a7a Updated Rector to commit 0693c4f46f
0693c4f46f return intl and mbstring polyfills
2022-06-01 13:00:07 +00:00
Tomas Votruba
780f0d3ad8 Updated Rector to commit 06b0b325da
06b0b325da remove victor, it handles only metafiles, not unused classes
2022-06-01 07:38:23 +00:00
Tomas Votruba
0501290a9d Updated Rector to commit dc6bd9680c
dc6bd9680c [e2e] Handle Parent Property empty missing Scope on StaticCallToMethodCallRector+RenameClassRector (#2396)
2022-05-31 07:17:00 +00:00
Tomas Votruba
138d6986c9 Updated Rector to commit 5caf384297
5caf384297 [scoped] remove ExpressionLanguage as never used
2022-05-30 06:43:22 +00:00
Tomas Votruba
aba5c90761 Updated Rector to commit bb98f83b40
274bb9cfec remove unused e2e test bb98f83b40 [scoped] swap main and alternate deploy
2022-05-30 00:06:39 +00:00
Tomas Votruba
d035c86f90 Updated Rector to commit a7e66d67bd
a7e66d67bd remove excluded files
2022-05-30 00:02:22 +00:00