5385 Commits

Author SHA1 Message Date
Tomas Votruba
a3156b505f Updated Rector to commit 82c7838b40946ccab2fd42240370ffed406aed7c
82c7838b40 [Renaming] Add RenameAttributeRector (#6009)
2024-06-22 17:14:08 +00:00
Tomas Votruba
b02cab2d10 Updated Rector to commit abd008ba860a5a27f8efc7ca8d0ba9c9737cb30d
abd008ba86 [CodeQuality] Deprecate GetClassToInstanceOfRector as can create invalid comparison (#6005)
2024-06-22 12:44:20 +00:00
Tomas Votruba
7e1af3a241 Updated Rector to commit 93bccca72e6a617d679bda6d49cdec76859b7d91
93bccca72e Fix message handler removal in RemoveUnusedPublicMethodParameterRector (#6001)
2024-06-22 01:23:36 +00:00
Tomas Votruba
9257029b8e Updated Rector to commit 8a7cd36365b2f05683f072309cd2484978d9e5b2
8a7cd36365 [Renaming] Use continue 2 on RenameMethodRector after ClassMethod renamed on configured method call renames loop (#5989)
2024-06-20 15:37:24 +00:00
Tomas Votruba
31b1d6440a Updated Rector to commit d945b22f31809a7e15b8d8663931ae128551e38c
d945b22f31 Various cleanups (#5982)
2024-06-20 05:58:14 +00:00
Tomas Votruba
48397d3f81 Updated Rector to commit a787d4c8f6b15ba3590e91746326241efeec8656
a787d4c8f6 Remove deprecated and empty FinalizeClassesWithoutChildrenRector + FinalizePublicClassConstantRector (#5980)
2024-06-19 15:40:53 +00:00
Tomas Votruba
107edcdc89 Updated Rector to commit 9678a2ce0df657b82cd4459dd178fbdcfddc49d2
9678a2ce0d [Php74] Add HebrevcToNl2brHebrevRector (#5977)
2024-06-18 12:50:53 +00:00
Tomas Votruba
366181bbbf Updated Rector to commit e6775f06209683494ed75f494022a1d8461327c5
e6775f0620 Bump dependencies, remove few legacy interfaces (#5975)
2024-06-18 08:34:51 +00:00
Tomas Votruba
b53e3c0d6a Updated Rector to commit 526a61b034c626be8c1c86ec5e08c8b64afcde20
526a61b034 [Php83] Skip multiple consts on AddTypeToConstRector when types are different (#5974)
2024-06-17 03:49:48 +00:00
Tomas Votruba
f57ed0a59b Updated Rector to commit 9a0d03a293b3a6aef9fb2c134c27586e2f046043
9a0d03a293 [Php74] Add RestoreIncludePathToIniRestoreRector (#5973)
2024-06-15 22:12:30 +00:00
Tomas Votruba
6265f47a53 Updated Rector to commit 04e662edec757daf61d90c4502332c8cbc125067
04e662edec [Php81] Skip param variable used in next stmt after coalesce on NewInInitializerRector (#5971)
2024-06-14 13:59:37 +00:00
Tomas Votruba
75cc5ace35 Updated Rector to commit ee948d2a30cc4b674c866bc41d34c9e16b45faab
ee948d2a30 [DeadCode] Reduce loop for used in next stmt on RemoveUnusedVariableAssignRector (#5969)
2024-06-14 11:47:18 +00:00
Tomas Votruba
6a6d8b94d2 Updated Rector to commit aa71d0e5f699df743279045c6f9cd4e7d08b7805
aa71d0e5f6 [DeadCode] Allow pass stmts instead of $node on StmtsManipulator::isVariableUsedInNextStmt() (#5968)
2024-06-14 10:35:06 +00:00
Tomas Votruba
a23972fd51 Updated Rector to commit 3a7c8fee6aaeccb3d48beb6731743872ac0ecdd1
3a7c8fee6a [Arguments] Skip First class callable on FunctionArgumentDefaultValueReplacerRector (#5966)
2024-06-14 09:28:58 +00:00
Tomas Votruba
c582b6cd76 Updated Rector to commit c3dc626fbf71d43dd52e8b4c2c136667ce4b4514
c3dc626fbf [DeadCode] Skip dynamic variable on RemoveUnusedVariableAssignRector (#5964)
2024-06-13 17:57:46 +00:00
Tomas Votruba
97b31838f3 Updated Rector to commit de31e6f73765bef8a7285a00114037c07712add7
de31e6f737 [Naming] Allow rename variable in multiple statements on RenameVariableToMatchMethodCallReturnTypeRector (#5963)
2024-06-11 23:11:24 +00:00
Tomas Votruba
5b56f97fec Updated Rector to commit 459843b1617a401d02e8cf5e6a1054f43f069f0d
459843b161 [DeadCode] Use PHPStan $functionReflection->hasSideEffects()->yes() early when possible on PureFunctionDetector (#5962)
2024-06-11 22:11:13 +00:00
Tomas Votruba
71e5a86da3 Updated Rector to commit 2cdf4bc783081cb52c602b989577756e4782d18f
2cdf4bc783 [CodeQuality] Add support for (), {}, [], <> delimiter on RegexPatternDetector (#5957)
2024-06-10 22:00:09 +00:00
Tomas Votruba
7e814dec04 Updated Rector to commit 62fae6ac5b798f3842de0042739c7ddaa42d3bd2
62fae6ac5b [CodingStyle][Php80] Add join func call support on ConsistentImplodeRector (#5958)
2024-06-10 11:25:15 +00:00
Tomas Votruba
83400dd81f Updated Rector to commit 615f917fa5d54d6efaec6f528b3f4d72dc7f62fe
615f917fa5 [VendorLocker] Move Magic method safe unsafe check into ClassMethodReturnVendorLockResolver from AddVoidReturnTypeWhereNoReturnRector (#5955)
2024-06-10 00:04:42 +00:00
Tomas Votruba
22b4006070 Updated Rector to commit 5aaf9c235c91572529a0c4ac4b77a6e49f56610f
5aaf9c235c [Naming] Handle nullable object @var docblock on RenamePropertyToMatchTypeRector (#5946)
2024-06-06 09:15:17 +00:00
Tomas Votruba
8b323e8472 Updated Rector to commit 548b17b590c459bea9e71a9047becf4416402c9f
548b17b590 [Naming] Handle rename property with only comment, without @var doc on RenamePropertyToMatchTypeRector (#5945)
2024-06-06 09:02:43 +00:00
Tomas Votruba
d9a260cb29 Updated Rector to commit 1fac01a1b0c1e4b36f703bae1cca6b5f0bbaf9e9
1fac01a1b0 [CodingStyle] Use array value for "comments" attribute to set on UseImportsAdder::mirrorUseComments() (#5944)
2024-06-05 12:06:54 +00:00
Tomas Votruba
0ab95c35cf Updated Rector to commit 3b23de7d2cc1d3cdc2556a871c13eb7b3bdbbed6
3b23de7d2c Clean up redefinition propertyName variable on MatchPropertyTypeExpectedNameResolver (#5942)
2024-06-04 22:33:26 +00:00
Tomas Votruba
b7fd04453d Updated Rector to commit 07a61c18f678a24c102a83a4498265c874fab617
07a61c18f6 [Strict] Fix double === 0 comparison on BooleanInBooleanNotRuleFixerRector (#5940)
2024-06-03 12:05:04 +00:00
Tomas Votruba
4521d8e885 Updated Rector to commit 916cc25414fe839fcf19b67c3e0045657f03fcaf
916cc25414 [CodeQuality] Allow check in current Class_ with multiple props on CompleteDynamicPropertiesRector (#5938)
2024-06-02 12:31:56 +00:00
Tomas Votruba
06731a0a0c Updated Rector to commit 656ec58c31fe3a2cdf23c6f9ae331d7078251cfb
656ec58c31 [DeadCode] Use existing detectCallExpr() in SideEffectNodeDetector::detect() (#5937)
2024-06-02 10:06:03 +00:00
Tomas Votruba
e1b3f1a772 Updated Rector to commit c237f2792eb6fefe4f72387070121ca089a6fc2e
c237f2792e [DeadCode] Remove param docblock on RemoveUnusedPromotedPropertyRector when exists (#5936)
2024-06-02 02:58:00 +00:00
Tomas Votruba
c5d04be877 Updated Rector to commit 1e4595aad241240ee4ebed817a61c35acc7d48f9
1e4595aad2 [DeadCode] Add missing $hasChanged flag on RemoveUnusedPromotedPropertyRector on only change param flag (#5935)
2024-06-02 02:46:18 +00:00
Tomas Votruba
f010267a7c Updated Rector to commit 6b69971dfc740a58aed918782d02710e42004e9d
6b69971dfc [NodeTypeCorrector] Directly use StringType on Intersection of strings on AccessoryNonEmptyStringTypeCorrector (#5933)
2024-06-01 09:25:16 +00:00
Tomas Votruba
8384715773 Updated Rector to commit a3ed07f8c8c0b2f7cbd78ce7711871d31bad3998
a3ed07f8c8 [TypeDeclaration] Do not remove docblock with description on MergeDateTimePropertyTypeDeclarationRector (#5931)
2024-05-30 15:01:50 +00:00
Tomas Votruba
2f4d37d623 Updated Rector to commit b2d1c9d496c3d1b08cfb309faa7e9cbb263db1aa
b2d1c9d496 [TypeDeclaration] Handle double declare(strict_types=1) addition on DeclareStrictTypesRector + IncreaseDeclareStrictTypesRector (#5928)
2024-05-30 14:48:33 +00:00
Tomas Votruba
59fdd48d61 Updated Rector to commit a11a1822149d1a219ddcb84a130503f17faea02c
a11a182214 [Php71] Skip call abstract method on RemoveExtraParametersRector (#5930)
2024-05-30 14:29:32 +00:00
Tomas Votruba
42e9685318 Updated Rector to commit 3090229c9059eb2cc926309d106a5b712b4a3533
3090229c90 [Php81] Skip private method from instantiated class on FirstClassCallableRector (#5929)
2024-05-30 14:16:06 +00:00
Tomas Votruba
df92a40a00 Updated Rector to commit 756a45aa1a456e28af0b7ae2b78fecc6f6fee6b1
756a45aa1a [DeadCode] Add RemoveUnusedPublicMethodParameterRector (#5925)
2024-05-30 07:40:25 +00:00
Tomas Votruba
f07c3528a8 Updated Rector to commit eb8a76d2d1a19364f29e0f04b4d635ef751759c8
eb8a76d2d1 [AutoImport] No need RenamedClassesDataCollector usage on UsesClassNameImportSkipVoter (#5921)
2024-05-29 10:02:24 +00:00
Tomas Votruba
cf6f6c099f Updated Rector to commit 8470e7dd2de8c3499bb0b72a031d650b57ace06b
8470e7dd2d add note about finalize replacement
2024-05-29 05:38:35 +00:00
Tomas Votruba
2b945fac7b Updated Rector to commit 8c51074a9a121fff732471541b005df99dd71873
8c51074a9a [DX] Soft-deprecate CallableThisArrayToAnonymousFunctionRector, as FirstClassCallableRector  handles the same case better (#5918)
2024-05-29 01:38:37 +00:00
Tomas Votruba
6fa5131124 Updated Rector to commit 1e88bcf62dec93dca5077b8aefebf7c976fbed52
1e88bcf62d [TypeDeclaration] Add AddTypeFromResourceDocblockRector (#5915)
2024-05-29 00:53:21 +00:00
Tomas Votruba
b6e05a08f9 Updated Rector to commit c625b4cd7feda6cc9e51499d5fcdcd19141227ad
c625b4cd7f [CodingStyle] Use specific mapper FullyQualifiedNodeMapper on NameImporter to get PHPStan type of FullyQualifiedNode (#5914)
2024-05-26 16:28:54 +00:00
Tomas Votruba
b153174db5 Updated Rector to commit 650ae6a730554c4b7472280e86edbf1b704cce25
650ae6a730 Code quality levels (#5910)
2024-05-25 10:48:12 +00:00
Tomas Votruba
74ec7b2331 Updated Rector to commit 0466bac822c4f35530f75f2081e1955bf06825c7
0466bac822 [PostRector][AutoImport] Allow sub namespace docblock imported on NameImportingPhpDocNodeVisitor (#5911)
2024-05-24 15:09:44 +00:00
Tomas Votruba
5d71d0b09c Updated Rector to commit d6fc9012918faf26cfae30aaad329b8a3c65be75
d6fc901291 [TypeDeclaration] Add TypedPropertyFromJMSSerializerAttributeTypeRector (#5909)
2024-05-24 13:06:38 +00:00
Tomas Votruba
81725974a0 Updated Rector to commit 22d6fc2789f575fff16e76e7c7f963793e11f53b
22d6fc2789 [TypeDeclaration] Add ReturnTypeFromSymfonySerializerRector (#5908)
2024-05-23 13:35:45 +00:00
Tomas Votruba
670c768551 Updated Rector to commit 0621d672f946aabc8bd6c9f70feae32d6a390b9f
0621d672f9  [Php80] Skip mixed doc with description and valid doc on MixedTypeRector  (#5906)
2024-05-21 09:36:37 +00:00
Tomas Votruba
cee60661e8 Updated Rector to commit b8847be9d485ec1b3cde5ee5e099ab3626479eb7
b8847be9d4 [TypeDeclaration] Add ReturnTypeFromReturnCastRector (#5905)
2024-05-20 11:36:06 +00:00
Tomas Votruba
39908b6b4e Updated Rector to commit f30405751176cf6504a86a8f9e6661c55806b38e
f304057511 Convert time() to Carbon::now()->timestamp (#5901)
2024-05-20 00:15:21 +00:00
Tomas Votruba
fce5bf1293 Updated Rector to commit 0e5343cb24ce394701c5321eb5976573dd8c0afe
0e5343cb24 Few PHPStan fixes (#5900)
2024-05-19 17:46:36 +00:00
Tomas Votruba
9a455bf300 Updated Rector to commit 7d65537690d8d788b595b46f026920b4b17eaaf5
7d65537690 Fix few static errors (#5899)
2024-05-19 17:16:04 +00:00
Tomas Votruba
9f86c20c73 Updated Rector to commit b2613baaf6dbf85c9a784b3baf652925c2f480d2
b2613baaf6 make refactorWithClass() private as it should be
2024-05-19 08:27:29 +00:00