Commit Graph

631 Commits

Author SHA1 Message Date
Tomas Votruba eecb24a948 Updated Rector to commit bb4a9068c2
bb4a9068c2 Do not prepend a \ to the type, if it is already Fully Qualified (#1863)
2022-02-24 13:30:15 +00:00
Tomas Votruba 2e01de459a Updated Rector to commit 3e33dd1aa7
3e33dd1aa7 [DeadCode] Handle empty try and catch on RemoveDeadTryCatchRector (#1860)
2022-02-23 08:20:48 +00:00
Tomas Votruba a398597def Updated Rector to commit 35b07ce068
35b07ce068 [Scoped] Using php-parallel-lint latest with --no-dev (#1855)
2022-02-22 00:28:05 +00:00
Tomas Votruba 7241528ca6 Updated Rector to commit 886aad92f9
886aad92f9 [Php81] Skip ReadOnlyPropertyRector on Stmt is not inline with __construct (#1846)
2022-02-21 03:49:57 +00:00
Tomas Votruba b77988232c Updated Rector to commit c44bfcc00e
c44bfcc00e [automated] Re-Generate Nodes/Rectors Documentation (#1838)
2022-02-20 00:35:49 +00:00
Tomas Votruba 6a33cabe38 Updated Rector to commit ad976b6ea0
ad976b6ea0 remove fixed error
2022-02-19 00:59:36 +00:00
Tomas Votruba ede8f558b7 Updated Rector to commit f022c20446
f022c20446 [DX] Remove GenericClassMethodParamRector, rather PHPStorm one-time refactoring job (#1830)
2022-02-18 00:42:23 +00:00
Tomas Votruba 5ddf2c900f Updated Rector to commit 0f3363c37b
0f3363c37b [Php74] Remove TemplateType check on TypedPropertyRector (#1826)
2022-02-17 10:39:26 +00:00
Tomas Votruba b206f0de34 Updated Rector to commit 4cf6522e77
4cf6522e77 [Php81] Skip used as ArrayDimFetch on Arg on side effect FuncCall on ReadOnlyPropertyRector (#1821)
2022-02-16 21:07:17 +00:00
Tomas Votruba fc910d5859 Updated Rector to commit b708e071f3
b708e071f3 [Php74] Skip variable FuncCall () on ReservedFnFunctionRector (#1815)
2022-02-15 12:37:44 +00:00
Tomas Votruba 20133c8832 Updated Rector to commit 41a25ebaeb
41a25ebaeb [Scoped] Fixing build scoped for Symfony Cache Contract and ExpressionLanguageProvider (#1813)
2022-02-14 01:03:53 +00:00
Tomas Votruba 617d8d5718 Updated Rector to commit 0db5ce6f6d
0db5ce6f6d [automated] Re-Generate Nodes/Rectors Documentation (#1809)
2022-02-13 00:29:38 +00:00
Tomas Votruba bdc3ab220b Updated Rector to commit 3720a55f51
3720a55f51 [TypeDeclaration] Use @return type on Generator on ReturnTypeDeclarationRector (#1794)
2022-02-12 12:13:46 +00:00
Tomas Votruba a5a202b286 Updated Rector to commit 03ce06db76
03ce06db76 [Php74] Handle Multiple types with NullType on TypedPropertyRector when PHP 8.0 Feature enabled (#1803)
2022-02-11 08:39:14 +00:00
Tomas Votruba b3811e658f Updated Rector to commit d29b89113a
d29b89113a [Php74] Skip mixed type on TypedPropertyRector on auto import enabled (#1798)
2022-02-10 13:29:48 +00:00
Tomas Votruba 36b7270b94 Updated Rector to commit 9953b6cab1
9953b6cab1 [console] add rector console output style with CI friendly progress bar redraw (#1793)
2022-02-09 18:58:51 +00:00
Tomas Votruba 3b8eaada80 Updated Rector to commit 7c14a98e54
7c14a98e54 [DowngradePhp72/73/74] Refactor JsonConstCleaner: move defined check after in names check (#1788)
2022-02-09 00:07:41 +00:00
Tomas Votruba bda78cedf4 Updated Rector to commit 50d19784ab
50d19784ab [Php80] Doc mirror var to param improvement on ClassPropertyAssignToConstructorPromotionRector (#1775)
2022-02-08 00:23:09 +00:00
Tomas Votruba dea8c30c8e Updated Rector to commit 63425bae22
63425bae22 [Transform] Make ParentClassToTraitsRector match only exact parent, no its child (#1774)
2022-02-07 19:38:34 +00:00
Tomas Votruba 6b7bb4ae18 Updated Rector to commit aa4f45484a
aa4f45484a [automated] Re-Generate Nodes/Rectors Documentation (#1772)
2022-02-06 08:25:55 +00:00
Tomas Votruba 361d8f4a2f Updated Rector to commit f374b9faa8
f374b9faa8 [PHP 8.0] Include keys in annotation to attribute transformation (#1766)
2022-02-05 10:39:52 +00:00
Tomas Votruba 5cd63fd2ce Updated Rector to commit 0a63fe4d52
0a63fe4d52 [DowngradePhp72] Add DowngradePhp72JsonConstRector (#1765)
2022-02-04 14:07:32 +00:00
Tomas Votruba 967c07844d Updated Rector to commit 335206f065
335206f065 [DX] Remove @deprecated docblock for only bool passing config in rector rules (#1762)
2022-02-03 09:49:01 +00:00
Tomas Votruba 1c5290301d Updated Rector to commit 2468277687
2468277687 [TypeDeclaration] Handle infered ThisType on auto import on ReturnTypeDeclarationRector (#1760)
2022-02-02 09:10:44 +00:00
Tomas Votruba de716594a8 Updated Rector to commit a51b81cf2f
a51b81cf2f [PHPStan] Clean up PHPStan ignore errors (#1755)
2022-02-01 05:54:42 +00:00
Tomas Votruba 7aad2b845d Updated Rector to commit 5b23064299
5b23064299 [Scoper] Exclude Attribute polyfill class from class_alias (take 1) (#1747)
2022-01-31 14:04:38 +00:00
Tomas Votruba c88e1fc601 Updated Rector to commit e44222bd5c
e44222bd5c [automated] Re-Generate Nodes/Rectors Documentation (#1743)
2022-01-30 00:27:52 +00:00
Tomas Votruba 67fb92b15d Updated Rector to commit d31e2233e8
d31e2233e8 [Php81] Skip override abstract method on NewInInitializerRector (#1740)
2022-01-29 16:32:26 +00:00
Tomas Votruba 2ebc6821cc Updated Rector to commit 79dd9bb5f4
79dd9bb5f4 [Php81] Do not add final modifier on class constant that the class has children on FinalizePublicClassConstantRector (#1739)
2022-01-28 11:05:27 +00:00
Tomas Votruba 9875b5de97 Updated Rector to commit c6142e139f
c6142e139f [Php56][Php70] Handle ExceptionHandlerTypehintRector+CatchExceptionNameMatchingTypeRector+AddDefaultValueForUndefinedVariableRector (#1735)
2022-01-27 09:07:13 +00:00
Tomas Votruba 20964885f0 Updated Rector to commit 64d76cd11e
64d76cd11e [FinalizePublicClassConstantRector] Ignore final classes (#1730)
2022-01-26 10:10:51 +00:00
Tomas Votruba d3e1bb7e5d Updated Rector to commit 084ac39f29
084ac39f29 Add option to configure followLinks of finder (#1703)
2022-01-25 00:12:31 +00:00
Tomas Votruba 7626873cdf Updated Rector to commit 386c97b914
386c97b914 [Naming][Php56] Do not add default value init for renamed variable from param on RenameParamToMatchTypeRector+AddDefaultValueForUndefinedVariableRector (#1716)
2022-01-24 04:18:32 +00:00
Tomas Votruba 12ec968038 Updated Rector to commit 88a32076c6
88a32076c6 [Php74] Skip readonly on RestoreDefaultNullToNullableTypePropertyRector (#1713)
2022-01-22 09:45:55 +00:00
Tomas Votruba c4b2af01d7 Updated Rector to commit 2934929fac
2934929fac [CodingStyle] Handle more than one method contains try catch on CatchExceptionNameMatchingTypeRector (#1706)
2022-01-21 06:12:56 +00:00
Tomas Votruba 9abce1612b Updated Rector to commit 672b339ebd
672b339ebd [e2e][scoped] Add e2e global install on scoped (#1704)
2022-01-20 21:15:14 +00:00
Tomas Votruba f2b4b95aa2 Updated Rector to commit dbf132092a
dbf132092a [Php71] Skip property fetch array assigned in method call on __construct on CountOnNullRector (#1698)
2022-01-19 08:54:57 +00:00
Tomas Votruba 42a0272cc5 Updated Rector to commit e5ed2372b9
e5ed2372b9 possible solution for global execution (#1692)
2022-01-18 16:24:12 +00:00
Tomas Votruba c00c31fd50 Updated Rector to commit 1c7460bcfc
1c7460bcfc [Privatization] Skip ChangeReadOnlyVariableWithDefaultValueToConstantRector when local variable never used (#1693)
2022-01-18 07:55:51 +00:00
Tomas Votruba 165b238ab7 Updated Rector to commit 94e7ac8ef8
94e7ac8ef8 [Naming] Fix property interface and underscore naming (#1689)
2022-01-17 00:12:52 +00:00
Tomas Votruba 77fe375a0b Updated Rector to commit 6b965fe744
6b965fe744 Revert load vendor/autoload from getcwd and add documentation for using globally (not recommended) (#1685)
2022-01-16 02:24:23 +00:00
Tomas Votruba caf39c6999 Updated Rector to commit 72de31e70f
72de31e70f Ensure autoloader is loaded in globally installed Rector (#1683)
2022-01-16 01:39:16 +00:00
Tomas Votruba 7bec35aee9 Updated Rector to commit 80882ad175
80882ad175 [TypeDeclaration] Skip Throw_ in construct and as Expr on ReturnNeverTypeRector (#1679)
2022-01-15 08:52:41 +00:00
Tomas Votruba 903c96a6c2 Updated Rector to commit 6ea0032a70
6ea0032a70 [CodeQuality] Do not add \ on static on CallableThisArrayToAnonymousFunctionRector (#1671)
2022-01-14 09:27:49 +00:00
Tomas Votruba 89982c6c94 Updated Rector to commit 2607c2a79b
2607c2a79b [Php81] Add NullToStrictStringFuncCallArgRector (#1655)
2022-01-13 13:02:46 +00:00
Tomas Votruba c6d9c4e26b Updated Rector to commit fd34e6c925
fd34e6c925 Do not remove final modifier from private constructors (#1663)
2022-01-12 10:12:35 +00:00
Tomas Votruba ddc2f64433 Updated Rector to commit 2676f89d13
2676f89d13 [PhpAttribute] Fix array key of class constant reference (#1659)
2022-01-11 15:18:02 +00:00
Tomas Votruba a5aef684ff Updated Rector to commit e27e483094
e27e483094 [Core] BetterStandardPrinter performance improvement with unnecessary regex check on no Closure Uses and no ClassMethod ReturnType (#1653)
2022-01-10 00:03:45 +00:00
Tomas Votruba 3df670f627 Updated Rector to commit 4ab2ab5850
ea2ea17385 [automated] Re-Generate Nodes/Rectors Documentation 4ab2ab5850 Merge pull request #1650 from rectorphp/automated-regenerated-nodes-rectors-documentation
2022-01-09 10:54:09 +00:00
Tomas Votruba d60e53c3ca Updated Rector to commit 1f7170df9e
81b7411267 Fix access to optional array key when using  function 1f7170df9e Merge pull request #1648 from ste93cry/fix-phpstan-access-to-undefined-array-key
2022-01-08 00:28:55 +00:00
Tomas Votruba 300503afe6 Updated Rector to commit f42b3f91e2
8d64aee223 Fix memory leak b5dce9edd7 Further improvement f42b3f91e2 Merge pull request #1643 from ondrejmirtes/fix-memory-leak
2022-01-07 00:57:38 +00:00
Tomas Votruba 88a06d884f Updated Rector to commit 840bd5e3e6
d8609d9225 [Parallel] Unsupported files are not skipped 840bd5e3e6 Merge pull request #1638 from gander/main
2022-01-05 11:30:27 +00:00
Tomas Votruba eaa95768d6 Updated Rector to commit f900476469
f900476469 [Downgrade 7.0] Fix value calls that do not lex in PHP 5.6 (#1615)
2022-01-04 01:08:47 +00:00
Tomas Votruba dd6ffa61b2 Updated Rector to commit 9baf531477
9baf531477 Avoid clearing the cache while saving it on parallel (#1616)
2022-01-03 05:20:02 +00:00
Tomas Votruba ffcf6171ac Updated Rector to commit 9c6a6b0422
9c6a6b0422 [automated] Re-Generate Nodes/Rectors Documentation (#1612)
2022-01-02 00:31:07 +00:00
Tomas Votruba 1a5260ef5d Updated Rector to commit b8a527c07e
b8a527c07e DowngradeSelfTypeDeclarationRector: Fix example output (#1606)
2022-01-01 11:02:34 +00:00
Tomas Votruba b1cba49930 Updated Rector to commit 311ffc6ec3
311ffc6ec3 [Php81] Skip ReadOnlyPropertyRector on Clone  (#1599)
2021-12-31 09:04:07 +00:00
Tomas Votruba 486b7bee9f Updated Rector to commit 068369e632
068369e632 fix: add failing test and fix for repeated numeric strings (#1591)
2021-12-30 08:15:26 +00:00
Tomas Votruba 5f4bbd4591 Updated Rector to commit 5181bf9016
5181bf9016 Update to PHPStan ^1.3 (#1589)
2021-12-29 23:18:00 +00:00
Tomas Votruba aced4967b7 Updated Rector to commit fa7249028c
fa7249028c [Scoped] Fix PHP71_BIN_PATH: unbound variable on local full_build.sh (#1586)
2021-12-28 12:08:43 +00:00
Tomas Votruba 901fe8ed44 Updated Rector to commit 68dde1af51
68dde1af51 [TypeDeclaration] Skip controller render method on @var to type declaratoin (#1576)
2021-12-27 11:31:14 +00:00
Tomas Votruba 12ae680f84 Updated Rector to commit 1ac835fca7
1ac835fca7 [automated] Re-Generate Nodes/Rectors Documentation (#1570)
2021-12-26 00:38:36 +00:00
Tomas Votruba 4c463f51f8 Updated Rector to commit 09fa15238a
09fa15238a [Core] Use StaticNonPhpFileSuffixes value object in PhpFilesFinder (#1562)
2021-12-25 12:44:33 +00:00
Tomas Votruba d09e8c256a Updated Rector to commit 89c3483001
89c3483001 [TypeDeclaratoin] Add AccessoryLiteralStringType to static type mapper (#1558)
2021-12-24 01:23:52 +00:00
Tomas Votruba 80c023c646 Updated Rector to commit 8f8685af81
8f8685af81 [Scoped] Update full_build.sh Local script to test locally to avoid error on php 7.1 and 7.2 (#1552)
2021-12-23 10:41:56 +00:00
Tomas Votruba e378a052e4 Updated Rector to commit 3f80cd0543
3f80cd0543 [Core] Refactor RectifiedAnalyzer: no longer need check PhpDocInfo->hasChanged() (#1545)
2021-12-22 11:07:14 +00:00
Tomas Votruba 16f4095ade Updated Rector to commit 6861ae9a4f
6861ae9a4f Merge VarDocPropertyTypeInferer (#1543)
2021-12-21 23:27:28 +00:00
Tomas Votruba 84f68c601f Updated Rector to commit daa44253f9
daa44253f9 [DowngradePhp74][DowngradePhp80] Apply ternary with method_exists on DowngradeReflectionGetTypeRector + DowngradeReflectionGetAttributesRector (#1530)
2021-12-20 12:13:23 +00:00
Tomas Votruba 9ca383a82e Updated Rector to commit 0cc56b0a0b
0cc56b0a0b [automated] Re-Generate Nodes/Rectors Documentation (#1522)
2021-12-19 00:36:48 +00:00
Tomas Votruba d358c43350 Updated Rector to commit 4e0a1ce694
4e0a1ce694 [Php80] Handle double quoted sql statement annotation on AnnotationToAttributeRector (#1516)
2021-12-18 10:25:56 +00:00
Tomas Votruba 0bc44a07f1 Updated Rector to commit 4bac761fc8
4bac761fc8 [DeadCode] Skip parent not found on RemoveParentCallWithoutParentRector (#1510)
2021-12-17 00:05:48 +00:00
Tomas Votruba e24fd607c2 Updated Rector to commit 6bd25c8094
6bd25c8094 [CodingStyle] Skip new line on ConsistentPregDelimiterRector (#1506)
2021-12-16 10:12:20 +00:00
Tomas Votruba 0b00c0b487 Updated Rector to commit 3417ff434b
3417ff434b [TypeDeclaration] Remove CompleteVarDocTypePropertyRector, is handled by split rules (#1500)
2021-12-15 00:48:30 +00:00
Tomas Votruba a883a63e56 Updated Rector to commit 32b06bcf14
32b06bcf14 [Scoped] Ensure remove bin/generate-changelog.php before commit (#1492)
2021-12-14 13:01:38 +00:00
Tomas Votruba b2218b1dc3 Updated Rector to commit a7fe982fcb
a7fe982fcb [Renaming] Handle Rename before AttributeGroup on RenameClassRector (#1481)
2021-12-14 08:14:22 +00:00
Tomas Votruba c2d4952c88 Updated Rector to commit 2bde6b3262
2bde6b3262 [Core] Fix undefined constant ReflectionClassConstant::IS_PUBLIC in php 7.x (#1474)
2021-12-13 12:09:12 +00:00
Tomas Votruba b3d73e0955 Updated Rector to commit a9290c8911
a9290c8911 [automated] Re-Generate preload.php (#1468)
2021-12-12 00:33:56 +00:00
Tomas Votruba a893773fb3 Updated Rector to commit f2e58a222f
f2e58a222f [Scoped] Fix downgrade rector-generator (#1461)
2021-12-11 09:27:25 +00:00
Tomas Votruba 3266f22182 Updated Rector to commit 1d409bc35b
1d409bc35b safe by default
2021-12-10 10:22:23 +00:00
Tomas Votruba 8c4aedacef Updated Rector to commit fa31841d4d
fa31841d4d [DX] Warn about deprecated constant configuration (#1444)
2021-12-10 00:25:09 +00:00
Tomas Votruba 6472f7f4fb Updated Rector to commit fc383cc011
fc383cc011 [Scoped] Fix exclude symfony/console/Tester (#1438)
2021-12-09 13:05:29 +00:00
Tomas Votruba 6ee24b2d05 Updated Rector to commit b2947fd96f
b2947fd96f [Alternative][Validation] Add AllowEmptyConfigurableRectorInterface interface for alternative to not show warning on allowed rector rule to have default fallback config (#1422)
2021-12-08 05:39:17 +00:00
Tomas Votruba 616997a2f0 Updated Rector to commit fb58a4d54a
fb58a4d54a [vendor-patches] Add back patches/danielstjules-stringy-src-stringy-php.patch to patches directory (#1411)
2021-12-07 03:18:07 +00:00
Tomas Votruba d66e622e1b Updated Rector to commit dda87fc6d2
dda87fc6d2 [VendorLocker] Allow both in vendor for child and parent on ParentClassMethodTypeOverrideGuard (#1399)
2021-12-06 06:57:16 +00:00
Tomas Votruba e6aa910018 Updated Rector to commit 2fbc1d4742
2fbc1d4742 [automated] Re-Generate preload.php (#1393)
2021-12-05 00:35:00 +00:00
Tomas Votruba 4a5f1c82b3 Updated Rector to commit 8547bdba9d
8547bdba9d [Php81] Skip ReadOnlyPropertyRector on Entity id (#1379)
2021-12-04 07:57:42 +00:00
Tomas Votruba 8a92b6daba Updated Rector to commit 49d6cc0dfa
49d6cc0dfa [Php 8.1 Dep] Update stringy vendor patches to update with #[\ReturnTypeWillChange] (#1370)
2021-12-03 04:56:40 +00:00
Tomas Votruba 768d809544 Updated Rector to commit 3f07f38426
3f07f38426 VisibilityManipulator adjustment (#1362)
2021-12-02 07:34:16 +00:00
Tomas Votruba 0988a578ae Updated Rector to commit 9e81001c68
9e81001c68 [Config] Re-enable Config SetList on rector.php (#1360)
2021-12-01 09:10:03 +00:00
Tomas Votruba 45e393bb77 Updated Rector to commit bc96ddefd4
bc96ddefd4 [Scoped] Fix downgrade AsciiSlugger (#1349)
2021-11-30 07:57:42 +00:00
Tomas Votruba ccc5a527cd Updated Rector to commit 4ad4d16ac6
4ad4d16ac6 Fix child method check - both on native (#1336)
2021-11-29 00:11:21 +00:00
Tomas Votruba 40882e2c8b Updated Rector to commit a8a2577c40
a8a2577c40 [automated] Re-Generate Nodes/Rectors Documentation (#1325)
2021-11-28 00:36:13 +00:00
Tomas Votruba 48f2d98170 Updated Rector to commit 40ec551978
40ec551978 [DeadCode] Add support remove unused in between private method parameter for RemoveUnusedPrivateMethodParameterRector (#1321)
2021-11-27 09:53:00 +00:00
Tomas Votruba 738852dc1a Updated Rector to commit 1255b91c20
1255b91c20 [PHP 8.2] Add rule for AllowDynamicProperties attribute (#1225)
2021-11-26 11:19:23 +00:00
Tomas Votruba 27f9fb751d Updated Rector to commit 9ba0f6305f
9ba0f6305f [DeadCode] Add RemoveUnusedParamInRequiredAutowireRector (#1301)
2021-11-25 05:43:26 +00:00
Tomas Votruba 786528284b Updated Rector to commit f8e8efa728
f8e8efa728 Update how_it_works.md (#1293)
2021-11-24 00:11:27 +00:00
Tomas Votruba b21c7e2dc8 Updated Rector to commit 21c9c1c16d
21c9c1c16d fix symfony/console compatibility break with psr/log
2021-11-23 13:20:36 +00:00
Tomas Votruba 3c750baf30 Updated Rector to commit f5d4f9dd76
f5d4f9dd76 [Php81] Apply constructor promotion on NewInInitializerRector (#1288)
2021-11-22 09:01:31 +00:00
Tomas Votruba cae65c2537 Updated Rector to commit 63ed131c3f
63ed131c3f [automated] Re-Generate Nodes/Rectors Documentation (#1284)
2021-11-21 00:34:01 +00:00
Tomas Votruba cd31960a43 Updated Rector to commit 60c06a7fbf
60c06a7fbf fix downgrade
2021-11-20 10:43:40 +00:00
Tomas Votruba 7e333cd42a Updated Rector to commit 7143376acb
7143376acb [EarlyReturn][Php73] Handle JsonThrowOnErrorRector + ChangeAndIfToEarlyReturnRector (#1272)
2021-11-19 09:08:20 +00:00
Tomas Votruba 0d4e55e30d Updated Rector to commit d23308fd3f
d23308fd3f [Scoped] Remove phpstan-extracted code check reference (#1265)
2021-11-18 09:09:10 +00:00
Tomas Votruba 5e0eef55a5 Updated Rector to commit c6473c6a0b
c6473c6a0b [Php81] Fix NewInInitializerRector code sample (#1264)
2021-11-18 07:58:51 +00:00
Tomas Votruba ee29ff17d4 Updated Rector to commit f0b639bbaa
f0b639bbaa Update to nikic/php-parser 4.13.1 (#1253)
2021-11-17 07:16:43 +00:00
Tomas Votruba 01b8ec09d1 Updated Rector to commit 50096d7955
50096d7955 [Renaming] Handle var static docblock in union on RenameClassRector (#1248)
2021-11-16 11:06:23 +00:00
Tomas Votruba 5becefa64b Updated Rector to commit 3f3c8933fc
47704638c5 add geneate changelog to rector.php 3f3c8933fc fix issue message duplicationg in generate-chnagelog
2021-11-15 14:23:15 +00:00
Tomas Votruba d7d4659aca Rector 0.12.4 2021-11-15 14:06:50 +00:00
Tomas Votruba 510ba33047 Updated Rector to commit 0b1345f2a7
0b1345f2a7 improve generate changelog miniscript
2021-11-15 14:06:34 +00:00
Tomas Votruba d8ebd1efd5 Updated Rector to commit 5154b53518
5154b53518 [TypeDeclaration] Avoid error Rector\Core\Rector\AbstractRector::isObjectType() must implement interface PhpParser\Node, null given on AddParamTypeDeclarationRector (#1239)
2021-11-15 01:54:27 +00:00
Tomas Votruba a16c61358a Updated Rector to commit 9c52c95848
9c52c95848 [automated] Re-Generate Nodes/Rectors Documentation (#1228)
2021-11-14 00:36:15 +00:00
Tomas Votruba 750add220d Updated Rector to commit 305c524662
305c524662 [TypeDeclaration] Improve typed property (#1221)
2021-11-13 00:51:27 +00:00
Tomas Votruba 3a883b2fc9 Updated Rector to commit af81708d80
af81708d80 [TypeDeclaration] Skip conditional Throw_ on ReturnNeverTypeRector (#1217)
2021-11-12 09:48:23 +00:00
Tomas Votruba 9131fc62e0 Updated Rector to commit 2ed0430f4e
2ed0430f4e [NodeTypeResolver] Avoid error Uncaught TypeError: PHPStan\Type\Constant\ConstantIntegerType::__construct(): Argument #1 () must be of type int, string given (#1210)
2021-11-11 00:28:34 +00:00
Tomas Votruba b5d03cf1f4 Updated Rector to commit f32035d12f
f32035d12f [TypeDeclaration] Skip Conditional on ReturnNeverTypeRector (#1200)
2021-11-10 10:27:52 +00:00
Tomas Votruba 3601e07ec8 Updated Rector to commit 65b3892563
65b3892563 bump deps
2021-11-09 12:04:54 +00:00
Tomas Votruba cf975f7d4d Updated Rector to commit b2d1749999
b2d1749999 Fix issue of parsing PHP 8 sources on PHP 7.x (#1184)
2021-11-08 09:21:05 +00:00
Tomas Votruba 7f56f8ae35 Updated Rector to commit 66800f00f1
66800f00f1 [Scoped] Fixing Scoped build bin rector.php (#1174)
2021-11-07 04:15:35 +00:00
Tomas Votruba bf8d644cbf Updated Rector to commit c31cabf0b3
c31cabf0b3 [MYSQL_TO_MYSQLI] Restore Mysql to Mysqli Behaviour when used with Dead Code SetList (#1161)
2021-11-06 00:53:30 +00:00
Tomas Votruba bcf5df49d8 Updated Rector to commit f9f4b93ab9
f9f4b93ab9 Add UseManipulatorTest (#1149)
2021-11-05 00:25:28 +00:00
Tomas Votruba 504a41770d Updated Rector to commit f8e04774ad
f8e04774ad Fixing scoped build (#1143)
2021-11-04 15:30:20 +00:00
Tomas Votruba 4ca6af551e Updated Rector to commit aab9bcfa92
aab9bcfa92 Trigger CI to test removed classes in separate packages (#1135)
2021-11-03 00:08:12 +00:00
Tomas Votruba e19ec3e214 Updated Rector to commit 8e9ef8786e
8e9ef8786e [DeadCode] Skip Union with Interface on RemoveUselessParamTagRector (#1127)
2021-11-02 08:10:20 +00:00
Tomas Votruba 607db8843e Updated Rector to commit f3556e6d6d
f3556e6d6d require symfony/contracts, to make downgrade of console work
2021-11-01 14:32:25 +00:00
Tomas Votruba 54f8d6dc33 Updated Rector to commit da4d598bf0
da4d598bf0 [PHPStan 1.0] resolve FunctionReflection getFileName() from main interface (#1117)
2021-10-31 15:30:19 +00:00
Tomas Votruba 9eb3a9755c Updated Rector to commit e5186a79b4
e5186a79b4 Improve InflectorSingularResolver (#1108)
2021-10-30 00:06:50 +00:00
Tomas Votruba 03298f1783 Updated Rector to commit 0db02e27aa
0db02e27aa [Core] Remove template-extends check as well on FileProcessor (#1098)
2021-10-29 03:37:36 +00:00
Tomas Votruba 756ef832ec Updated Rector to commit e2bbc2fd9d
e2bbc2fd9d [DowngradePhp74] fix uses for nested arrow functions with same param names (#1090)
2021-10-28 12:01:11 +00:00
Tomas Votruba 2b6e4f5909 Updated Rector to commit d1e09e3d5e
d1e09e3d5e [ECS] remove ignored rules that are now fixed, use SimplePhpParser for ad-hoc node resolving (#1076)
2021-10-27 08:50:45 +00:00
Tomas Votruba 50818a1498 Updated Rector to commit 87a6907172
87a6907172 [PSR4] Fix test on NormalizeNamespaceByPSR4ComposerAutoloadRector (#1063)
2021-10-26 00:21:45 +00:00
Tomas Votruba 20d4f35d27 Updated Rector to commit b305c4edf2
b305c4edf2 [DX] Decouple PropertyTypeDecorator (#1055)
2021-10-25 11:14:32 +00:00
Tomas Votruba f4b82f4b45 Updated Rector to commit 7f73cf0172
7f73cf0172 [automated] Re-Generate Nodes/Rectors Documentation (#1050)
2021-10-24 00:34:27 +00:00
Tomas Votruba f24d3a51b1 Updated Rector to commit f9fdebfe58
f9fdebfe58 [DowngradePhp74] Handle nested uses on ArrowFunctionToAnonymousFunctionRector (#1040)
2021-10-23 01:58:01 +00:00
Tomas Votruba 20dc105d45 Updated Rector to commit 06994b8ff3
06994b8ff3 [Core] Avoid hang on file has template-extends (#1034)
2021-10-22 03:28:32 +00:00
Tomas Votruba f3f7bbc63b Updated Rector to commit 1f2a4e9eac
1f2a4e9eac Check for  instance in  (#1033)
2021-10-21 07:30:29 +00:00
Tomas Votruba 1099eab862 Updated Rector to commit 36fc840488
36fc840488 Trigger notification (#1027)
2021-10-20 01:31:18 +00:00
Tomas Votruba 4a269dfc0b Updated Rector to commit d51b8494eb
d51b8494eb [DX] Add DowngradeLevelSetList (#1023)
2021-10-19 09:00:23 +00:00
Tomas Votruba cdbc308200 Updated Rector to commit 33e5cab8d5
33e5cab8d5 [DowngradePhp80] Handle Throw Exception on DowngradeMatchToSwitchRector (#1019)
2021-10-18 08:52:15 +00:00
Tomas Votruba 427b9ce357 Updated Rector to commit 8bb31f2556
8bb31f2556 [automated] Re-Generate Nodes/Rectors Documentation (#1012)
2021-10-17 00:30:43 +00:00
Tomas Votruba 6409895073 Updated Rector to commit caba58dfd0
caba58dfd0 [PHPStan] Clean up PHPStan ignore error (#1008)
2021-10-16 09:57:47 +00:00
Tomas Votruba 67d83c7b32 Updated Rector to commit 4e377b26af
4e377b26af Add option of case-insensitive ReplaceStringWithClassConstantRector (#1004)
2021-10-15 16:34:45 +00:00
Tomas Votruba fadc7bb98d Updated Rector to commit bc39e1c3e8
bc39e1c3e8 [CodeQuality] Skip getter in assign var and on this var type on ExplicitMethodCallOverMagicGetSetRector (#999)
2021-10-14 14:35:01 +00:00
Tomas Votruba 785101045c Updated Rector to commit 78c6226bce
78c6226bce Allow resolving names on dynamic property fetch (#996)
2021-10-13 11:50:37 +00:00
Tomas Votruba 3163961fe7 Updated Rector to commit 90c1d09a33
90c1d09a33 [PHPStanStaticTypeMapper] Add UnionTypeAnalyzer::isNullable() (#987)
2021-10-12 01:37:01 +00:00
Tomas Votruba c6a9b6bdf0 Updated Rector to commit 65c3a44c63
65c3a44c63 [TypedPropertyRector] Handle nullable collection on TypedPropertyRector (#986)
2021-10-11 06:45:23 +00:00
Tomas Votruba 9056c6c3a5 Updated Rector to commit 3c0cb22a58
3c0cb22a58 [automated] Re-Generate Nodes/Rectors Documentation (#984)
2021-10-10 00:30:12 +00:00
Tomas Votruba 45d3e63a94 Updated Rector to commit ff32aed8c3
ff32aed8c3 fix: Attempt to assign property type on null error (#979)
2021-10-09 05:23:01 +00:00
Tomas Votruba dd90137169 Updated Rector to commit f175e5afdf
f175e5afdf [Php74] Skip type hint DummyTraitClass on TypedPropertyRector (#965)
2021-10-07 07:59:43 +00:00
Tomas Votruba 34fc36ed68 Updated Rector to commit 683077ed2a
683077ed2a [Downgrade PHP 7.2] Downgrade object type also in Closure (#961)
2021-10-06 09:54:20 +00:00
Tomas Votruba f6dfd556b7 Updated Rector to commit 687f9e9de9
687f9e9de9 Clean up PHPStan ignore error messages (#954)
2021-10-05 05:07:42 +00:00
Tomas Votruba f9c50ad2b9 Updated Rector to commit 1f63ed3e55
1f63ed3e55 Reworking trait scope run (#952)
2021-10-04 21:24:17 +00:00
Tomas Votruba 9d6051f97f Updated Rector to commit 6bfe013300
6bfe013300 [NodeCollector] Add ArrayCallableDynamicMethod value object (#951)
2021-10-03 08:23:40 +00:00
Tomas Votruba da81700dfe Updated Rector to commit 0b84824190
0b84824190 [Renaming] Skip rename Name when parent is Namespace_ equal to target name on RenameClassRector (#942)
2021-10-02 09:50:46 +00:00
Tomas Votruba 9c7734ab41 Updated Rector to commit 363e7910e7
363e7910e7 Bump EndBug/add-and-commit from 7.2.1 to 7.4.0 (#943)
2021-10-01 11:43:12 +00:00
Tomas Votruba 401d60b6ec Updated Rector to commit 72e0436f93
72e0436f93 Fix ensure vendor exists on preload.php (#934)
2021-09-30 12:59:54 +00:00
Tomas Votruba 75becd3a6c Updated Rector to commit 01b39f585b
01b39f585b Remove moved phsptan rules (#933)
2021-09-30 12:35:12 +00:00
Tomas Votruba 82e31fbd26 Updated Rector to commit d21dcc3ce3
d21dcc3ce3 [Renaming] Fully Qualified import doc same name renaming class error (#926)
2021-09-28 05:01:55 +00:00
Tomas Votruba 73d7212e05 Updated Rector to commit 17cfa9f376
17cfa9f376 Update to nikic/php-parser 4.13.0 (#904)
2021-09-27 15:43:15 +00:00
Tomas Votruba 9543fa704d Updated Rector to commit 59aded96ec
59aded96ec bump symplify version
2021-09-27 12:26:58 +00:00
Tomas Votruba 4e6d051524 Updated Rector to commit f2132237d6
f2132237d6 [automated] Apply Coding Standard (#922)
2021-09-26 00:28:25 +00:00
Tomas Votruba 038e6331b2 Updated Rector to commit ddd8e85902
ddd8e85902 [DeadCode] Only remove private property from current class on RemoveUnusedPrivatePropertyRector (#917)
2021-09-24 10:23:02 +00:00
Tomas Votruba 70b25e6efb Updated Rector to commit 57a6d7af31
57a6d7af31 [NodeTypeResolver] Skip Auto Import from doc on sub namespace class exists when already in use statement by other namespace (#913)
2021-09-23 08:01:36 +00:00
Tomas Votruba 8ae17f0c0a Updated Rector to commit 5ff4058f93
5ff4058f93 [NodeTypeResolver] Skip Auto import from doc in used namespace on NameImportingPhpDocNodeVisitor (#912)
2021-09-22 17:53:44 +00:00
Tomas Votruba 45b3a18479 Updated Rector to commit e09cf113d7
e09cf113d7 [DX] Add PhpUpgradeDowngradeRegisteredInSetRule PHPStan rule (#905)
2021-09-21 11:16:07 +00:00
Tomas Votruba 5933e0d5f0 Updated Rector to commit e78fadd24d
e78fadd24d [Php74] Handle conflict with alias on TypedPropertyRector (#899)
2021-09-20 11:23:02 +00:00
Tomas Votruba 495580024a Updated Rector to commit a19687ce9d
a19687ce9d [automated] Re-Generate preload.php (#901)
2021-09-19 00:28:26 +00:00
Tomas Votruba 883dd9f677 Updated Rector to commit 1e3e5dff59
1e3e5dff59 [CodingStyle] Handle too detailed pair class string array on VarConstantCommentRector (#897)
2021-09-17 19:38:24 +00:00
Tomas Votruba 1257466608 Updated Rector to commit 00e0f49b9d
00e0f49b9d [Php80] Skip Ternary indirect usage with null else on NullsafeOperatorRector (#891)
2021-09-16 10:24:17 +00:00
Tomas Votruba e6b6f5b661 Updated Rector to commit a2a378e016
a2a378e016 [EarlyReturn] Refactor ChangeAndIfToEarlyReturnRector: return array of Nodes (#885)
2021-09-15 12:50:35 +00:00
Tomas Votruba cdd58e83f2 Updated Rector to commit 6f0288df97
6f0288df97 [EarlyReturn] Refactor ChangeAndIfToEarlyReturnRector (#878)
2021-09-14 05:51:11 +00:00
Tomas Votruba 4d03ef9715 Updated Rector to commit 41dfd36407
41dfd36407 [PHPStan] Update to PHPStan 0.12.99 (#874)
2021-09-13 13:38:55 +00:00
Tomas Votruba 46d03714d0 Updated Rector to commit 95bf5aa61f
95bf5aa61f [automated] Re-Generate Nodes/Rectors Documentation (#870)
2021-09-12 00:30:25 +00:00
Tomas Votruba c9bd554857 Updated Rector to commit 29fb47974d
29fb47974d [Php80] feat: str starts with hardcoded (#866)
2021-09-11 09:23:29 +00:00
Tomas Votruba a41d82e567 Updated Rector to commit 40bd8926d3
40bd8926d3 [Php80][Naming] Handle ClassPropertyAssignToConstructorPromotionRector + RenamePropertyToMatchTypeRector (#861)
2021-09-10 08:55:02 +00:00
Tomas Votruba 13a376a756 Updated Rector to commit c9f333d9dd
c9f333d9dd [EarlyReturn] Returns array of If_ on ChangeOrIfContinueToMultiContinueRector (#854)
2021-09-09 01:20:04 +00:00
Tomas Votruba 2af3b965d3 Updated Rector to commit 1e6dfd240e
1e6dfd240e [PHPStan] Clean up ignore error messages (#846)
2021-09-08 06:39:19 +00:00
Tomas Votruba c94867257b Updated Rector to commit b8a6c976b4
b8a6c976b4 [TypeDeclaration] Handle UnitEnum not exists check on ParamTypeByParentCallTypeRector (#841)
2021-09-07 06:01:30 +00:00
Tomas Votruba 3ce615d525 Updated Rector to commit df9246c609
df9246c609 [CodeQuality][EarlyReturn] Handle ExplicitBoolCompareRector + ChangeOrIfReturnToEarlyRector (#836)
2021-09-06 05:59:31 +00:00
Tomas Votruba 8303b46898 Updated Rector to commit 0779c402c3
0779c402c3 [automated] Re-Generate Nodes/Rectors Documentation (#832)
2021-09-05 00:27:40 +00:00
Tomas Votruba d62e039ac8 Updated Rector to commit 61709a198d
61709a198d [PHPStan] Update to PHPStan 0.12.98 (#826)
2021-09-04 07:42:32 +00:00
Tomas Votruba 73cb9e40d3 Updated Rector to commit 89ca42d7c1
89ca42d7c1 [TypeDeclaration] Skip callable on AddArrayParamDocTypeRector (#815)
2021-09-03 09:26:46 +00:00
Tomas Votruba 35aeca4151 Updated Rector to commit 54c2151111
54c2151111 [CodingStyle] Handle next with comment on NewlineAfterStatementRector (#813)
2021-09-02 06:22:11 +00:00
Tomas Votruba 8fbb6d4a84 Updated Rector to commit 511a076211
511a076211 bump nette
2021-09-01 00:12:38 +00:00
Tomas Votruba be5c11b4f1 Updated Rector to commit 9fee4dd297
9fee4dd297 [CodingStyle] Handle complex If_ ElseIf_ Else_ Try Catch Finally on on NewlineAfterStatementRector (#793)
2021-08-31 02:36:59 +00:00
Tomas Votruba 5fcab9b1bb Updated Rector to commit a81fd4e050
a81fd4e050 [CodingStyle] Add NewlineAfterStatementRector (#787)
2021-08-30 08:27:47 +00:00
Tomas Votruba c863551bf5 Updated Rector to commit 13bf954089
13bf954089 [CodingStyle] Handle ClassConstFetch on RemoveUnusedAliasRector (#785)
2021-08-29 11:59:15 +00:00
Tomas Votruba 3136ede1f3 Updated Rector to commit dd49d3874b
dd49d3874b [CodingStyle] Handle Nullable Type and under intanceof for RemoveUnusedAliasRector (#784)
2021-08-28 13:03:07 +00:00
Tomas Votruba 54f4789e3e Updated Rector to commit b2c44bfdb0
b2c44bfdb0 [DowngradePhp72] Handle anonymous class override class method on DowngradeParameterTypeWideningRector (#777)
2021-08-27 09:14:46 +00:00
Tomas Votruba 15c1876627 Updated Rector to commit 4731c3f5e1
4731c3f5e1 [CS] Cs Fix config Skip AssignmentInConditionSniff FoundInWhielCondition (#767)
2021-08-26 04:42:58 +00:00
Tomas Votruba f6bf813917 Updated Rector to commit aa22210581
aa22210581 [Php80] Handle Iterable typed on ClassPropertyAssignToConstructorPromotionRector (#753)
2021-08-25 07:00:32 +00:00
Tomas Votruba ed5842f8aa Updated Rector to commit 6ff80ba037
6ff80ba037 [DeadCode] Skip RemoveUnusedNonEmptyArrayBeforeForeachRector on native Variable (#748)
2021-08-24 05:31:50 +00:00
Tomas Votruba ba205b46bb Updated Rector to commit 68d410ef00
68d410ef00 Trigger notification (#741)
2021-08-23 00:20:32 +00:00
Tomas Votruba f791d9d767 Updated Rector to commit 138aa5ea68
138aa5ea68 Param doctype not copied to property in DowngradePropertyPromotionRector (#734)
2021-08-22 21:02:57 +00:00
Tomas Votruba 0f57e3a147 Updated Rector to commit d72a5999ef
d72a5999ef [Php80] Do not remove Assert with no arg in AnnotationToAttributeRector (#733)
2021-08-22 15:42:22 +00:00
Tomas Votruba 40ecfbd21b Updated Rector to commit 2a6cfb363d
2a6cfb363d Fix 6644 (#728)
2021-08-21 00:59:31 +00:00
Tomas Votruba 65ad60c6e9 Updated Rector to commit 2623e6773c
2623e6773c Bump branch-alias from 0.10 to 0.11 (#723)
2021-08-20 10:06:28 +00:00
Tomas Votruba c81e0916bc Updated Rector to commit 9f311dca00
9f311dca00 Add failing test fixture for RemoveParentCallWithoutParentRector (#711)
2021-08-19 04:03:26 +00:00
Tomas Votruba dd5ada968f Updated Rector to commit 582d1d3851
582d1d3851 [Exclusion] Check Parent attribute is Node on ExclusionManager::isNodeSkippedByRector() (#712)
2021-08-18 09:22:43 +00:00
Tomas Votruba 898f0a5dac Updated Rector to commit c1b7a97ee1
c1b7a97ee1 [CodeQuality] Skip Child class of \DateTime on DateTimeToDateTimeInterfaceRector (#703)
2021-08-17 07:07:19 +00:00
Tomas Votruba 4d052b08f9 Updated Rector to commit 6cdfebe40c
6cdfebe40c [Windows] Add platform agnostic asserts (#461)
2021-08-16 07:19:49 +00:00
Tomas Votruba dc5c5507e9 Updated Rector to commit e9d1172717
e9d1172717 [automated] Re-Generate Nodes/Rectors Documentation (#683)
2021-08-15 00:30:09 +00:00