Commit Graph

179 Commits

Author SHA1 Message Date
Tomas Votruba
9200bbb091 Updated Rector to commit 9d74e20acb
9d74e20acb [Dep] Add PHPUnit\Framework\TestCase stub on target-repository bootstrap.php (#1924)
2022-03-12 17:33:54 +00:00
Tomas Votruba
b61a2f6afa Updated Rector to commit 07df2bc028
07df2bc028 [CodingStyle] Use alias name when exists on CatchExceptionNameMatchingTypeRector (#1920)
2022-03-11 08:59:17 +00:00
Tomas Votruba
53fdb25a5e Updated Rector to commit 888f483102
888f483102 [Renaming] Apply rename fully qualified namespace docblock on RenameNamespaceRector (#1917)
2022-03-10 10:09:54 +00:00
Tomas Votruba
9094a0693a Updated Rector to commit 73306740de
73306740de [Transform] Handle property exists via Property Promotion on NewToMethodCallRector (#1915)
2022-03-08 08:23:12 +00:00
Tomas Votruba
fe65ca2911 Updated Rector to commit 8057e33f91
8057e33f91 [TypeDeclaration] Add ArrayShapeFromConstantArrayReturnRector (#1908)
2022-03-07 11:34:50 +00:00
Tomas Votruba
2d19ff31f4 Updated Rector to commit 55a13c0020
55a13c0020 test run in phpstan 1.4.8 (#1904)
2022-03-06 00:42:13 +00:00
Tomas Votruba
63e7bd57f7 Updated Rector to commit 00e857f07e
00e857f07e [Transform] Add type matching to MethodCallToPropertyFetchRector (#1905)
2022-03-05 11:00:01 +00:00
Tomas Votruba
fe55b1f78a Updated Rector to commit 4296dd5559
c60362fd41 typo 4296dd5559 update docs
2022-03-04 11:12:01 +00:00
Tomas Votruba
5224477400 Updated Rector to commit 1b717dc74e
1b717dc74e [DeadCode] Ensure parent assign is Expression Stmt for RemoveUnusedVariableAssignRector (#1893)
2022-03-03 04:28:33 +00:00
Tomas Votruba
dd64fa545d Updated Rector to commit 0cac723079
0cac723079 [DeadCode] Clean casted CallLike in Assign Expr on RemoveUnusedVariableAssignRector (#1889)
2022-03-02 10:10:00 +00:00
Tomas Votruba
09bf6a0592 Updated Rector to commit 10de06f33f
10de06f33f [DeadCode] Skip RemoveUnusedVariableAssignRector on assign to dynamic variable (#1884)
2022-03-01 10:08:14 +00:00
Tomas Votruba
9e282c87ec Updated Rector to commit 2604c7675c
2604c7675c Fixing rules return values (take 2) (#1880)
2022-02-28 06:43:27 +00:00
Tomas Votruba
ca31c3958d Updated Rector to commit eec25fff0d
eec25fff0d [automated] Re-Generate Nodes/Rectors Documentation (#1876)
2022-02-27 00:40:38 +00:00
Tomas Votruba
598bce3f9d Updated Rector to commit f686cbac1c
f686cbac1c [DowngradePhp72] Handle in assign on DowngradePregUnmatchedAsNullConstantRector (#1872)
2022-02-26 04:25:13 +00:00
Tomas Votruba
16915ba0c1 Updated Rector to commit da3c997066
da3c997066 [Rules] Fixing Rector rules return values (#1867)
2022-02-25 08:28:29 +00:00
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
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
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
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