Commit Graph

5241 Commits

Author SHA1 Message Date
Tomas Votruba 0668f1e99c Updated Rector to commit ae081e11dae915e05a58cbd9d2a995f3ac868254
ae081e11da [TypeDeclaration] Keep constant false return type from strict native call (#5223)
2023-12-03 09:56:22 +00:00
Tomas Votruba 77ce00c02a Updated Rector to commit 483aca176cd25b478a99fe213a98ec5bd348bd13
483aca176c [Php80] Skip PDO::query() on AddParamBasedOnParentClassMethodRector (#5313)
2023-12-03 09:17:50 +00:00
Tomas Votruba 93efaa2dcc Updated Rector to commit 3b84030d093b9896615f640ad0e361c923af8953
3b84030d09 [TypeDeclaration] Skip return void in abstract empty class in AddVoidReturnTypeWhereNoReturnRector (#5311)
2023-12-02 19:56:06 +00:00
Tomas Votruba c520a88733 Updated Rector to commit cd9ea2c717511f81e7bb7298a62f8ea558441a37
cd9ea2c717 [Privatization] Fix first class callable in PrivatizeLocalGetterToPropertyRector (#5310)
2023-12-02 13:42:50 +00:00
Tomas Votruba de5ec400ca Updated Rector to commit aac9573e0ef040c236a569a9cbbe965af61ab0b8
aac9573e0e [Privatization] Skip call non-private method on non-final class on PrivatizeLocalGetterToPropertyRector (#5309)
2023-12-02 08:58:47 +00:00
Tomas Votruba b698053254 Updated Rector to commit 5c8fa12ec90e4d4b55fd05f48509c538c243482d
5c8fa12ec9 [Doc] Typo fix on sample code documentation on SimplifyForeachToCoalescingRector (#5308)
2023-12-02 05:05:22 +00:00
Tomas Votruba cb8a63ca31 Updated Rector to commit 71c22e20d9a3b2ba187515711b13fca40b595d93
71c22e20d9 [CodeQuality] Skip with else on SimplifyForeachToCoalescingRector (#5307)
2023-12-02 04:51:32 +00:00
Tomas Votruba c5421dfd82 Updated Rector to commit e48234e23981f4022e704bc500b9a9197727e87e
e48234e239 Skip RenameMethodRector in never (#5305)
2023-12-01 09:49:11 +00:00
Tomas Votruba 35f86a2fad Updated Rector to commit 91f9f3057c2d51018228ed89273a76da991d3f45
91f9f3057c Use symfony/console ~6.3.9 to fix downgrade build (#5302)
2023-11-30 10:06:33 +00:00
Tomas Votruba f8dc5ef396 Updated Rector to commit 84bcfebdf7e9f522c8f9f9e97814c82d3d5d3315
84bcfebdf7 [CodingStyle] Remove AddArrayDefaultToArrayPropertyRector as based on docblock types and public contract, better use type declaration set instad (#5298)
2023-11-28 20:19:53 +00:00
Tomas Votruba 84b97fe47c Updated Rector to commit c3840325600449b562691e34612279dcd4316043
c384032560 [Strict] Fix DisallowedEmptyRuleFixerRector empty() allow string '0' check (#5296)
2023-11-28 17:41:50 +00:00
Tomas Votruba 54e7a3a895 Updated Rector to commit 765b63696eb3bc240e92f10b00169b146c99463a
765b63696e [TypeDeclaration][Performance] Check typed param already early on ParamTypeByMethodCallTypeRector (#5295)
2023-11-28 11:12:27 +00:00
Tomas Votruba 7a2348073c Updated Rector to commit 118fbde3b1ccc3685c55cd2704bc971d2d49ef41
118fbde3b1 [TypeDeclaration] Remove ParamTypeFromStrictTypedPropertyRector as seems similar feature with AddParamTypeFromPropertyTypeRector (#5293)
2023-11-28 10:10:36 +00:00
Tomas Votruba 198f3d0446 Updated Rector to commit 4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf
4a2b4a6387 [Naming] Skip singularize "cms" on RenameForeachValueVariableToMatchExprVariableRector (#5294)
2023-11-28 04:43:10 +00:00
Tomas Votruba 3aaf5b74fb Updated Rector to commit b5f434b53c4c6fceb88c19d4656e4f11c6092f3c
b5f434b53c [CodeQuality] Make CommonNotEqualRector skip if not <> (#5292)
2023-11-27 16:03:30 +00:00
Tomas Votruba 8486081737 Updated Rector to commit e66754adeaad2e9cb67cf1784a6255285dfc542d
e66754adea [TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#5291)
2023-11-27 13:46:01 +00:00
Tomas Votruba c581b77bce Updated Rector to commit 9ddef0001c3b7251f80e0c06d6ef0d35363a7cd4
9ddef0001c [Php80] Allow subnamespace from use statements support on AnnotationToAttributeRector (#5287)
2023-11-25 15:16:38 +00:00
Tomas Votruba c92985cc7e Updated Rector to commit d864d7b856e7bb8b7e98db96793ceb1036c1bf7b
d864d7b856 [Privatization] Skip method with parent call (#5283)
2023-11-23 16:52:05 +00:00
Tomas Votruba 622a13c7e5 Updated Rector to commit fcd1b1aa6bbf59aaebf119a122d4f7aa045e15f1
fcd1b1aa6b [Performance][Renaming] Use FullyQualified on RenameClassRector (#5272)
2023-11-22 17:40:48 +00:00
Tomas Votruba 7a8bc36a24 Updated Rector to commit 189a02635533f450aea58d8de075e494f538182b
189a026355 Remove deprecated Rector rules (#5270)
2023-11-21 14:32:38 +00:00
Tomas Votruba d1c1d175ce Updated Rector to commit a9797fdc1ca6b8d7080fb1299b44fcb94ecd5936
a9797fdc1c [TypeDeclaration] Deprecate TypedPropertyFromStrictGetterMethodReturnTypeRector as depends on missing context and creates invalid code (#5269)
2023-11-21 14:28:39 +00:00
Tomas Votruba e071d037e3 Updated Rector to commit 9fa5013b41ecee17113c56ad94f219bd1940e763
9fa5013b41 [Performance][Renaming] Remove unnecessary array_reverse() on RenameClassRector (#5266)
2023-11-19 15:48:32 +00:00
Tomas Votruba 5980d06d27 Updated Rector to commit 13284c60485e972ef72bf234b3c014c5f89e0d14
13284c6048 [Renaming][Performance] Re-structure check namespace only on renamed node got Namespace_ (#5265)
2023-11-19 03:14:20 +00:00
Tomas Votruba 318c07bf9f Updated Rector to commit e43a1cec56310b6762eb0b56d18f60402d5fd652
e43a1cec56 [Renaming] Handle Rename no namespace to namespaced class with existing use statements (#5264)
2023-11-19 02:55:19 +00:00
Tomas Votruba ea7666298a Updated Rector to commit 3e6bdd8174e88b0e339365a9d76df8be173b7070
3e6bdd8174 [Php71] Ensure re-assign after definition on AssignArrayToStringRector (#5262)
2023-11-19 00:05:14 +00:00
Tomas Votruba 5fa526e204 Updated Rector to commit de333f27982cd1b27450c6dfa87ec723b29fbc1c
de333f2798 [Php71] Skip re-assigned as array on AssignArrayToStringRector (#5261)
2023-11-19 00:02:19 +00:00
Tomas Votruba b83524f932 Updated Rector to commit 6a2af1878843ade4b1890f9a1a04f815cc600fa4
6a2af18788 [TypeDeclaration] Skip echo-ed on StrictArrayParamDimFetchRector (#5260)
2023-11-18 13:54:46 +00:00
Tomas Votruba 4cf16f617f Updated Rector to commit 03c7ab7a0f3b7a2ba106bef1ccf508d1b9b63850
03c7ab7a0f [TypeDeclaration] Skip default not array type on StrictArrayParamDimFetchRector (#5259)
2023-11-18 13:41:50 +00:00
Tomas Votruba 912487ba8d Updated Rector to commit 4a3e6982647ce4fdc84b1232557eaeae7e914bde
4a3e698264 [DeadCode] Skip multi no stmts on RemoveDuplicatedCaseInSwitchRector (#5258)
2023-11-18 02:19:29 +00:00
Tomas Votruba 2da177465a Updated Rector to commit 363ae1bd444c365e38aef1cfcd69324b734c3c9c
363ae1bd44 [Performance][PostRector] Only process FullyQualified on import Node name on NameImportingPostRector  (#5255)
2023-11-16 17:36:40 +00:00
Tomas Votruba 1d5d0dd30b Updated Rector to commit 1595e34d12d856eab8e2478de357f0b1dff3556f
1595e34d12 [CodingStyle] Refactor UseImportsAdder to return [FileWithoutNamespace] code on no namespaced code (#5254)
2023-11-16 14:51:30 +00:00
Tomas Votruba b4cef81b9f Updated Rector to commit 60047ce7785545401ad870d483060ce640fa3369
60047ce778 [Php73] Handle crash on JsonThrowOnErrorRector + SensitiveConstantNameRector (#5253)
2023-11-16 05:36:22 +00:00
Tomas Votruba 4f6134d1be Updated Rector to commit 5647e1b818482552a447d7f79392c7e2f0dce86e
5647e1b818 [Naming] Fix dotted name on generics bug in RenameVariableToMatchMethodCallReturnTypeRector (#5250)
2023-11-15 07:40:24 +00:00
Tomas Votruba 9aef117ab1 Updated Rector to commit 7ec1be6b828042b27e3f40ed41b3285a6fe78502
7ec1be6b82 [DeadCode]: Support functions in RemoveUnusedVariableAssignRector (#5249)
2023-11-14 21:18:19 +00:00
Tomas Votruba 83b81fcc4e Updated Rector to commit 889372f62a584ca43402eced083b99e2ffbe6784
889372f62a [AutoImport][Renaming] Handle same last name no namespace just renamed auto import (#5248)
2023-11-14 11:48:19 +00:00
Tomas Votruba afe2dc7944 Updated Rector to commit f0b8af88eb08be29b5fbf18f0e26283600c2c7e6
f0b8af88eb [AutoImport] Skip auto import on no namespace used class on auto import enabled (#5247)
2023-11-14 05:17:31 +00:00
Tomas Votruba 55d6c6f50a Updated Rector to commit 61d68c89b434271c793fbbcc8e6252e9f3e0e7eb
61d68c89b4 Rename parameter variable to nextCase on RemoveDuplicatedCaseInSwitchRector (#5244)
2023-11-11 20:55:17 +00:00
Tomas Votruba 39dc6141e7 Updated Rector to commit 42b697f65f0c648cc45abcc5b9e32a16a7967caa
42b697f65f [deprecated] Remove deprecated properties from AbstractRector (#5243)
2023-11-11 17:10:37 +00:00
Tomas Votruba e26480f1cb Updated Rector to commit 7e7304b93cd03fda558ac8ebfbc682ffa4938fe0
7e7304b93c [AutoImport] Handle DeclareStrictTypesRector on importNames() enabled on no namespace (#5241)
2023-11-10 21:55:35 +00:00
Tomas Votruba e41e10db62 Updated Rector to commit 2f74b02ef6c754c68abcdd246837583967e24678
2f74b02ef6 [DeadCode] Handle repetitive jump equal case stmts on RemoveDuplicatedCaseInSwitchRector (#5239)
2023-11-10 19:13:04 +00:00
Tomas Votruba 382d51d15f Updated Rector to commit eac58be00246ea8c89548289f2cc742e8b1b6b1a
eac58be002 [DeadCode] Reduce loop on RemoveDuplicatedCaseInSwitchRector (#5238)
2023-11-10 12:36:56 +00:00
Tomas Votruba 17eadc7eb2 Updated Rector to commit b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce
b0d4b15c3f [DeadCode] Ensure change hasChanged flag on RemoveDuplicatedCaseInSwitchRector (#5237)
2023-11-10 09:02:20 +00:00
Tomas Votruba c51a745c50 Updated Rector to commit bee1dae395490dd91a86230e1886b514288dfa62
bee1dae395 [DeadCode] Handle different indirect duplicated on RemoveDuplicatedCaseInSwitchRector (#5236)
2023-11-10 06:59:59 +00:00
Tomas Votruba 373eece1e0 Updated Rector to commit c61d8ea90edb04550b6a43f40bd6c6105a997189
c61d8ea90e [DeadCode] Reduce double loop on RemoveDuplicatedCaseInSwitchRector (#5235)
2023-11-09 22:56:12 +00:00
Tomas Votruba e51766f9ec Updated Rector to commit 3f2fb29fe87904d779fb2f8d3e59492aaa9249f4
3f2fb29fe8 [DeadCode] Allow indirect duplicated grouping on RemoveDuplicatedCaseInSwitchRector (#5234)
2023-11-09 22:08:11 +00:00
Tomas Votruba b0251feb16 Updated Rector to commit 437f96a264be9b974d2c5abcc4f5097bfb57b20e
437f96a264 RestoreDefaultNullToNullableTypePropertyRector: skip `@readonly` phpdoc (#5233)
2023-11-08 12:07:04 +00:00
Tomas Votruba 6786dfbdb1 Updated Rector to commit cb1b0c7348d1e80806b2e600823dbfa38b9836c7
cb1b0c7348 [Renaming] Add RenamedNameCollector to ensure remove uses on auto import on ClassRenamingPostRector with verify there is Node name that renamed (#5232)
2023-11-07 21:52:18 +00:00
Tomas Votruba 0cbee62160 Updated Rector to commit 9adc7a04b3a312957bb305edafcd0427fa6bd257
9adc7a04b3 [CodingStyle] Move ArraySpreadInsteadOfArrayMergeRector from php74 to codingstyle sets list (#5230)
2023-11-07 18:56:36 +00:00
Tomas Votruba c221b7e43d Updated Rector to commit ce62c634015fefa1f91429ecda659fe71371b85a
ce62c63401 Remove rule DataProviderArrayItemsNewlinedRector.php (#5227)
2023-11-07 12:01:11 +00:00
Tomas Votruba 8027a18b9e Updated Rector to commit 6d8074534f3b568a0cecd373e584ea6c8d06580b
6d8074534f Rectify (#5226)
2023-11-06 09:18:43 +00:00
Tomas Votruba 95582bf2b1 Updated Rector to commit 7607b334736d241820f9f307423f6050801b46af
7607b33473 NullableCompareToNullRector: Don't trust phpdocs (#5225)
2023-11-06 09:13:25 +00:00
Tomas Votruba 1c5fde5d65 Updated Rector to commit 8615d40f4c8acb58a000f5bc7e0d0a0cfd353b7f
8615d40f4c [NodeTypeResolver] Handle nullable extended class on ->isObjectType() on DowngradeReflectionGetAttributesRector (#5224)
2023-11-05 13:58:20 +00:00
Tomas Votruba cdc1ef461c Updated Rector to commit 2ad03db37f187d715c3a2f189dc181063126e596
2ad03db37f [Php83] Adds rule for adding Override attribute (#5170)
2023-11-03 12:13:20 +00:00
Tomas Votruba 394c30d8ba Updated Rector to commit 2fac959116e4f50471422e5e5c9eaca3163e6667
2fac959116 [AutoImport] Allow auto import just renamed @var only docblock on RenameClassRector without removeUnusedImports() enabled (#5220)
2023-11-03 08:39:18 +00:00
Tomas Votruba 184cf49468 Updated Rector to commit f9de5d311e7e69d1ad2cb5f3087970d8b9335920
f9de5d311e [Php80] Handle RenameClassRector+AnnotationToAttributeRector with auto import and existing attribute defined (#5219)
2023-11-02 03:20:18 +00:00
Tomas Votruba 5869e2ab60 Updated Rector to commit 97d095f5bd3fe561dafd06f56f898f0aec535ba0
97d095f5bd [TypeDeclaration] Skip default numeric string on param int on ParamTypeByMethodCallTypeRector (#5210)
2023-10-28 16:36:35 +00:00
Tomas Votruba a3cb68c58c Updated Rector to commit 5f86e6bb082d06c1fc7f3ca53a9e42389319c3eb
5f86e6bb08  [CodeQuality] Add negated support on SingleInArrayToCompareRector  (#5205)
2023-10-28 06:44:30 +00:00
Tomas Votruba f5adafb1c4 Updated Rector to commit a27370519f4e17bf73f0d548e098de448895401d
a27370519f [CodeQuality] Handle negated isset on IssetOnPropertyObjectToPropertyExistsRector on property not exists (#5206)
2023-10-27 12:14:09 +00:00
Tomas Votruba 068fde1710 Updated Rector to commit 89b3e62f82ad480b57f002096cc16af16d7ac597
89b3e62f82 [TypeDeclaration] Skip union false on NumericReturnTypeFromStrictScalarReturnsRector (#5204)
2023-10-26 18:45:24 +00:00
Tomas Votruba 8d1b2d924e Updated Rector to commit be0cc77862bef98727e1e3881620c5416841801f
be0cc77862 CountArrayToEmptyArrayComparisonRector: don't trust phpdoc (#5203)
2023-10-26 12:26:07 +00:00
Tomas Votruba ae4c0b72cb Updated Rector to commit 72cdbd0613318b797455deba64ebe6358d58af42
72cdbd0613 [CodeQuality][Php70] Handle LocallyCalledStaticMethodToNonStaticRector + ThisCallOnStaticMethodToStaticCallRector must change both method and caller (#5196)
2023-10-26 07:11:41 +00:00
Tomas Votruba d628c0dcad Updated Rector to commit 238a9f1800225bd3f350dc25df79ad283d91a25a
238a9f1800 Revert doctrine/inflector removal (#5201)
2023-10-25 15:01:11 +00:00
Tomas Votruba fe7a135a9e Updated Rector to commit 5d1286061c8bf264c95085edf8b24731cf62c91e
5d1286061c BinaryOpBetweenNumberAndStringRector don't trust phpdoc (#5199)
2023-10-25 13:44:54 +00:00
Tomas Votruba 1b058fde9f Updated Rector to commit 98bb8581e5794641db7e2acf0cefa14f62f5e8a9
98bb8581e5 Fix singular of words ending in "ss" (#5198)
2023-10-25 08:11:08 +00:00
Tomas Votruba 23e5d4df05 Updated Rector to commit 1d3fc91bd5e0154daae34b1efdb64a6f78f47c89
1d3fc91bd5 apply cs
2023-10-24 15:03:15 +00:00
Tomas Votruba 02041b2207 Rector 0.18.6 2023-10-24 15:00:59 +00:00
Tomas Votruba 52923dc606 Updated Rector to commit 1c54292ed68e46f4ddfa2adb21f28130f308b99c
1c54292ed6 Replace doctrine/inflector with simpler mapping function (#5165)
2023-10-24 15:00:55 +00:00
Tomas Votruba ff69243060 Updated Rector to commit f2c8967abf004558bf92c86840d57eb7f0221f9c
f2c8967abf [DeadCode] Mirror comment on assign method call on RemoveUnusedVariableAssignRector (#5195)
2023-10-24 06:21:04 +00:00
Tomas Votruba 7c5eefbc15 Updated Rector to commit 6d5ffbe7d62fba226b0b49c613092c0741b2ba34
6d5ffbe7d6 [TypeDeclaration] Handle skipped by file path on DeclareStrictTypesRector due to use beforeTraverse() (#5191)
2023-10-23 07:51:12 +00:00
Tomas Votruba c6f40053b8 Updated Rector to commit a0d324465a4cbccb9236bc69f41069da89d01baf
a0d324465a [Php74][Php81] Allow mixed key on ArraySpreadInsteadOfArrayMergeRector on php 8.1 version feature enabled (#5190)
2023-10-22 10:12:20 +00:00
Tomas Votruba 654c818f4e Updated Rector to commit 5ac3cb377abf968396c23573d8562e6ab6967f2a
5ac3cb377a [Php70] Fix Php4 contructor not replaced with __construct() on php 7.4 environment (#5189)
2023-10-19 13:47:36 +00:00
Tomas Votruba af933fd21f Updated Rector to commit 4795d003614d98b04c3fce209e855f18ac48ed09
4795d00361 [Renaming] Skip pointless names in RenameForeachValueVariableToMatchMethodCallReturnTypeRector (#5188)
2023-10-18 09:58:42 +00:00
Tomas Votruba 65b387953a Updated Rector to commit 1a98723aebf1bdf9462b785d49f75d914b569779
1a98723aeb [Naming] Skip all kinds of generators (#5187)
2023-10-18 09:38:53 +00:00
Tomas Votruba d260adfd2b Updated Rector to commit 96fae07575c6c64ac7e2950388cbe07d18cbcfc5
96fae07575 Skip DateTime in ExpectedNameResolver (#5186)
2023-10-18 09:27:27 +00:00
Tomas Votruba 7949049389 Updated Rector to commit c9b0c27fa1df366ccf2213888d4351311bf82966
c9b0c27fa1 Skip new self in RenameVariableToMatchNewTypeRector (#5185)
2023-10-18 08:25:46 +00:00
Tomas Votruba 1e0199beb5 Updated Rector to commit beeba1770967a4f5e59cf21db28a5a1ccae48a2f
beeba17709 [Naming] Skip DateTime from renaming, to keep convention of named dates (#5184)
2023-10-18 08:05:23 +00:00
Tomas Votruba baa0c15190 Updated Rector to commit d22e71ec0196d8f0f363845db83e064b471cb07e
d22e71ec01 Revert rename + auto import remove use tweak (#5179)
2023-10-16 07:38:49 +00:00
Tomas Votruba b3f3d77384 Updated Rector to commit a9908f6498004953531a1a145a4e271fa953a3c7
a9908f6498 [PostRector] Reduce loop on ClassRenamingPostRector (#5174)
2023-10-15 04:45:43 +00:00
Tomas Votruba 3f64ea0f3f Updated Rector to commit c5d3a0e1913fb0057513dd70122d8eef4d226e1c
c5d3a0e191 [CodingStyle] Clean up check last name on UseImportsRemover (#5173)
2023-10-15 04:06:54 +00:00
Tomas Votruba 6fbeed5643 Updated Rector to commit 29370c7ddfc45c6fe29d88cfca6aa56234a76874
29370c7ddf [AutoImport] [Renaming] Skip remove used use statement on annotation during rename + auto import when no replacement on auto import (#5168)
2023-10-15 03:39:12 +00:00
Tomas Votruba 5479401552 Updated Rector to commit e2ba601e7ca2e8d602bfc2ffa36bf60a88b1a1f0
e2ba601e7c [DeadCode] Skip return false pseudo type in union on RemoveUselessReturnTagRector (#5172)
2023-10-15 02:06:32 +00:00
Tomas Votruba 41683b4c5a Updated Rector to commit 9cf016cd67a9f12ebbc7ae7aaa422626eb5722a9
9cf016cd67 [automated] Apply Coding Standard (#5171)
2023-10-15 00:29:20 +00:00
Tomas Votruba 9f158ba7a8 Updated Rector to commit da2dd66088e15a5c182a047726933306a8fdc28c
da2dd66088 RemoveUnusedNonEmptyArrayBeforeForeachRector: skip array dim fetch (#5166)
2023-10-14 13:25:46 +00:00
Tomas Votruba 4c4ad160dd Updated Rector to commit c639ef8ad9213881d4fe08554f090934bc5dda07
c639ef8ad9 RemoveUnusedNonEmptyArrayBeforeForeachRector: ignore phpdoc types (#5169)
2023-10-14 12:51:53 +00:00
Tomas Votruba 727c62f465 Updated Rector to commit d55a35bcdede830d3927de1c11e0f7f0d12ee9e4
d55a35bcde [CodeQuality] Skip magic property fetch on IssetOnPropertyObjectToPropertyExistsRector (#5163)
2023-10-13 15:56:28 +00:00
Tomas Votruba d06e2fcb41 Updated Rector to commit 396f1989b8605b261cfdfebe45ee855e9fb70ac4
396f1989b8 [DeadCode] Skip count() on mixed on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5160)
2023-10-13 14:40:44 +00:00
Tomas Votruba 16cc61e430 Updated Rector to commit 2efd6d56a9499be0a210a89cdd1883c6a21f83f8
2efd6d56a9 [DeadCode] Handle file_get_contents() only remove variable on RemoveUnusedVariableAssignRector (#5162)
2023-10-13 13:59:23 +00:00
Tomas Votruba a7ae66acba Updated Rector to commit ff7acb4c853ebc2322dac6fff618dac8218dacb3
ff7acb4c85 [CodeQuality] Skip docblock usage on SimplifyBoolIdenticalTrueRector (#5161)
2023-10-13 13:49:39 +00:00
Tomas Votruba 93080b5520 Updated Rector to commit b7a5fefedc9d1a32c1f238a6a8c9b89b88e7d21c
b7a5fefedc [DeadCode] Add RemoveUselessReturnExprInConstructRector (#5158)
2023-10-12 10:26:14 +00:00
Tomas Votruba 950a5ddaf3 Updated Rector to commit 67250ca5556cb9550ac927ef9e48a1f3d4b9f598
67250ca555 [TypeDeclaration] Utilize ClassMethodReturnTypeOverrideGuard on AddReturnTypeDeclarationFromYieldsRector (#5156)
2023-10-11 16:04:37 +00:00
Tomas Votruba f25beaaf93 Updated Rector to commit 668da1d020b596441b274ee6bf9d1ed763f8e43d
668da1d020 [TypeDeclaration] Utilize ClassMethodReturnTypeOverrideGuard on NumericReturnTypeFromStrictScalarReturnsRector (#5155)
2023-10-11 15:50:01 +00:00
Tomas Votruba 251ad8aeef Updated Rector to commit 0eb6000cfce746d9cf714722047a7d824d1f2dac
0eb6000cfc [DeadCode] Skip used in next For_/Foreach_ on RemoveDeadIfForeachForRector (#5154)
2023-10-11 04:48:30 +00:00
Tomas Votruba b70e1334d4 Updated Rector to commit 6d96068b0232141101c238752d0c5e80d5781f74
6d96068b02  [DeadCode] Skip key used in next stmt on RemoveUnusedForeachKeyRector  (#5153)
2023-10-10 11:25:01 +00:00
Tomas Votruba 970b701227 Updated Rector to commit 6cb63f3752012f33f691844906e56d1045c8bfcf
6cb63f3752 [DeadCode] Skip indirect variable definition on RemoveNonExistingVarAnnotationRector (#5152)
2023-10-10 10:46:27 +00:00
Tomas Votruba b1be6fd9fc Updated Rector to commit ee7e92ca7b3507a2903a21bb52b9f840ae3cc2e8
ee7e92ca7b [CodeQuality] Fix missing parentheses on CombineIfRector (#5151)
2023-10-10 08:33:07 +00:00
Tomas Votruba f41f0e0aae Updated Rector to commit 3891c8dd38fd5a6f966de3afc776b044678065f6
3891c8dd38 [TypeDeclaration] Handle Union with array type on ReturnUnionTypeRector (#5144)
2023-10-08 10:39:35 +00:00
Tomas Votruba 1eb3a7a3a9 Updated Rector to commit 4d56a61025597b598a1287f76f475bb6e8f1766f
4d56a61025 [DeadCode] Remove UnionType check on RecastingRemovalRector (#5142)
2023-10-08 03:17:49 +00:00
Tomas Votruba ba8a9c44c4 Updated Rector to commit b29a6f80c319c6819007a604cc20b788e3abe59c
b29a6f80c3 [CodeQuality] Use its start token pos on Else_ on CompleteMissingIfElseBracketRector as no cond (#5136)
2023-10-06 21:59:20 +00:00
Tomas Votruba 16af101457 Updated Rector to commit 22bf404fbdc1fa1a01aa3075363b1a6d7414d171
22bf404fbd [CodeQuality] Handle on closure, anonymous function, method call on CompleteMissingIfElseBracketRector (#5135)
2023-10-06 21:49:08 +00:00
Tomas Votruba b405743bb9 Updated Rector to commit dbd374ba2a2899d247d9c9e087aedf455462fffe
dbd374ba2a [CodeQuality] Handle missing bracket on If only on CompleteMissingIfElseBracketRector (#5134)
2023-10-06 19:05:34 +00:00
Tomas Votruba 417c9d5b38 Updated Rector to commit 96d061278a3bd76106bf5acc48bc4af5e0eca181
96d061278a apply cs
2023-10-06 13:03:44 +00:00
Tomas Votruba 649f0f5ffb Updated Rector to commit caf08c4efa0c3351a9d899e568ded816bacd1993
caf08c4efa Skip `__construct()` in BoolReturnTypeFromStrictScalarReturnsRector (#5133)
2023-10-06 09:33:45 +00:00
Tomas Votruba d232b29090 Updated Rector to commit 8179073d77b744e70404ec57a02ac730a877516a
8179073d77 [CodeQuality] Skip VB style in complex HTML on CompleteMissingIfElseBracketRector (#5132)
2023-10-06 08:50:53 +00:00
Tomas Votruba c02a263d0e Updated Rector to commit 8f4ef6ce9b4b14a86f9a525f931ace6dd96e0e5f
8f4ef6ce9b Clean up CompleteMissingIfElseBracketRector (#5131)
2023-10-06 08:31:06 +00:00
Tomas Votruba f2b9e5da57 Updated Rector to commit 3699f54c7ea5bc472818a9ce6d17ae95f5f0d59c
3699f54c7e Clean up CompleteMissingIfElseBracketRector (#5130)
2023-10-06 08:22:29 +00:00
Tomas Votruba 4c41a02036 Updated Rector to commit 0c9fac55d8e426402d3f306aa2979c23653a7a8a
0c9fac55d8 [CodeQuality] Handle all if,elseif,else no bracket on CompleteMissingIfElseBracketRector (#5129)
2023-10-06 08:12:48 +00:00
Tomas Votruba b68f693036 Updated Rector to commit 12184ca4ab6f82eae141058284fdd6b44a496c64
12184ca4ab Revert "[CodeQuality] Only check start from current Stmt token pos up until open parentheses on CompleteMissingIfElseBracketRector (#5127)" (#5128)
2023-10-06 06:22:34 +00:00
Tomas Votruba 4d1e798d62 Updated Rector to commit af065e78332e3654a4591cd317fc51acea6155d9
af065e7833 [CodeQuality] Only check start from current Stmt token pos up until open parentheses on CompleteMissingIfElseBracketRector (#5127)
2023-10-06 06:14:15 +00:00
Tomas Votruba b14cc5b488 Updated Rector to commit bb7d02879296e7d43f2718b1de8298380a20243b
bb7d028792 [CodeQuality] Skip spaced elseif cond on CompleteMissingIfElseBracketRector (#5126)
2023-10-06 02:54:16 +00:00
Tomas Votruba bcf39e1dff Updated Rector to commit cd0881eb628353d14f1cd344a9fed48c2e13f0bf
cd0881eb62 [CodeQuality] Skip direct InlineHTML on CompleteMissingIfElseBracketRector (#5125)
2023-10-06 02:33:05 +00:00
Tomas Votruba 9144868d77 Updated Rector to commit 96a1476e3e88b749a08408a9b827ce84f35bc237
96a1476e3e [CodeQuality] Add Else and ElseIf on CompleteMissingIfElseBracketRector (#5124)
2023-10-05 23:23:03 +00:00
Tomas Votruba ac5bf36e11 Updated Rector to commit 19661946681f61b5ab70ebf39df91a8bf9679fcc
1966194668 [CodeQuality] Skip VB style if endif on CompleteMissingIfElseBracketRector (#5122)
2023-10-05 22:29:00 +00:00
Tomas Votruba 798d9b99b4 Updated Rector to commit 3e0132d324099a3d45e1f8f0d28be76d310ee0eb
3e0132d324 [CodeQuality] Add CompleteMissingIfElseBracketRector (#5121)
2023-10-05 14:38:05 +00:00
Tomas Votruba 90920e009e Updated Rector to commit 6aed089476ea0167835fbbdb42d876cddb4c77d4
6aed089476 [Php80] Skip when already implements Stringable and has string return type on StringableForToStringRector (#5120)
2023-10-05 08:21:59 +00:00
Tomas Votruba 9696ef6862 Updated Rector to commit a6732a5b0e80868a6542c9bd5443f27750577e64
a6732a5b0e [FamilyTree] Remove AstResolver on FamilyRelationsAnalyzer (#5117)
2023-10-05 07:33:50 +00:00
Tomas Votruba 1c164a642f Updated Rector to commit 8cab945ae45b651cdf66c8bfbb1603c514733896
8cab945ae4 The ReturnTypeFromReturnNewRector must only handle new instances, to avoid leaking to everything (#5115)
2023-10-04 13:14:06 +00:00
Tomas Votruba 68e74833fe Updated Rector to commit fe2c85cde9f06c2ccb0e6e7bbbb24f8def25efa9
fe2c85cde9 [NodeFactory] Add new method: createReprintedExpr() to create re-printed Expr that can be used to pull default Expr from Param to be re-used (#5114)
2023-10-04 11:38:51 +00:00
Tomas Votruba b9cc02d39e Updated Rector to commit a24035cbbd7d86e6a45a025d60ebede4e00333f8
a24035cbbd [Arguments] Remove unnecessary re-create default value param from ConstFetch on ArgumentAdderRector, set origNode = null instead (#5113)
2023-10-04 11:23:15 +00:00
Tomas Votruba 489d95e83b Updated Rector to commit b491f42c2acd125671c7908a3dacd86316048809
b491f42c2a [Php80] Remove unnecessary re-create default value param from ConstFetch on AddParamBasedOnParentClassMethodRector, set origNode = null instead (#5112)
2023-10-04 11:17:20 +00:00
Tomas Votruba dfbbc5179f Updated Rector to commit 4e56b7c4a9fa9747cb12025c94e07b85a30155bc
4e56b7c4a9 [Php80] Remove AstResolver usage on PhpAttributeAnalyzer (#5111)
2023-10-04 08:45:47 +00:00
Tomas Votruba e7e6907996 Updated Rector to commit d7710f8758ef1a893424e3ab395c3f74c435d91c
d7710f8758 [DeadCode] Remove AstResolver usage on RecastingRemovalRector (#5109)
2023-10-03 02:42:37 +00:00
Tomas Votruba 3c946b60af Updated Rector to commit 6a89b43080ca6f349322af160b15bf0814d40cb6
6a89b43080 [TypeDeclaration] Remove AstResolver usage on ReturnedNodesReturnTypeInfererTypeInferer (#5108)
2023-10-02 23:27:49 +00:00
Tomas Votruba dc3682f340 Updated Rector to commit 8c9fe9ac64330acd0271bc1494dbbb86281310ca
8c9fe9ac64 [DX] Rename shouldImportName() to shouldSkipName() on ClassNameImportSkipper (#5107)
2023-10-02 17:56:25 +00:00
Tomas Votruba f7114d03e6 Updated Rector to commit dae8c61493b22119f0ece2e1d870ff5a0cb91993
dae8c61493 [Performance][AutoImport] Remove just renamed check on ClassNameImportSkipper (#5106)
2023-10-02 16:48:47 +00:00
Tomas Votruba 1425f0b38c Updated Rector to commit 478b257792be25a6f32e1a7bf672d33d2832a574
478b257792 [Performance][AutoImport] Reduce double loop on NameImportingPostRector (#5105)
2023-10-02 15:40:56 +00:00
Tomas Votruba 9cbcd589af Updated Rector to commit c9e0823ef35b56b8cc78005c90d7462688d44c09
c9e0823ef3 [[Performance]AutoImport] Reduce double loop on ClassNameImportSkipper (#5104)
2023-10-02 11:11:16 +00:00
Tomas Votruba 764b0cbdb5 Updated Rector to commit 3eb8e7d7a52ed8d45ca685e570fbfa0fd14e9be1
3eb8e7d7a5 Deprecate CountOnNullRector as depends on previous context and require manual adjustment of previous result (#5101)
2023-10-01 09:51:45 +00:00
Tomas Votruba 671f50c702 Updated Rector to commit ee715396945596fffb158ff8278749feb01ea01a
ee71539694 [NodeTypeResolver] Use isScalar()->yes() usage on StaticTypeAnalyzer and ScalarTypeComparator services (#5099)
2023-10-01 01:36:35 +00:00
Tomas Votruba 7932e9155e Updated Rector to commit 6ce58b1d3ddc917467a541c898ebaf828cbe2c59
6ce58b1d3d Remove AstResolver need from FirstClassCallableRector (#5093)
2023-09-30 19:29:15 +00:00
Tomas Votruba 95d1af621f Updated Rector to commit 640a49bb8dded439c57723ea4d047f1c9782b78f
640a49bb8d move collectors to src/Collector namespace for easy discovery, add MockedClassCollector (#5055)
2023-09-30 09:19:11 +00:00
Tomas Votruba d7242c6a67 Updated Rector to commit 0c0e5eeb4fd337d98f27224d0b46bfd310405dfd
0c0e5eeb4f AddParamTypeBasedOnPHPUnitDataProviderRector: Enhance existing rule to handle PHPUnit 10+ DataProvider Attribute (#4925)
2023-09-30 09:01:28 +00:00
Tomas Votruba f642d08e09 Updated Rector to commit 41235b8c7c52b0ba77872c2f04921685569c3b6e
41235b8c7c [Core] Deprecate AbstractRector staticTypeMapper, use dependency directly when needed (#5091)
2023-09-29 12:48:57 +00:00
Tomas Votruba d2a4c3c81b Updated Rector to commit 801d367f34aff122d69072dda92a7a34211f815b
801d367f34 AddParamTypeBasedOnPHPUnitDataProviderRector: Check all data providers (#5068)
2023-09-29 07:28:16 +00:00
Tomas Votruba 342f3dce55 Updated Rector to commit 9793540e79b87bb08e2203b761c2c5b361ac8e27
9793540e79 [DX] Remove Attribute support on ChangedNodeScopeRefresher (#5090)
2023-09-28 17:03:25 +00:00
Tomas Votruba de657e6fed Updated Rector to commit cb4e5de3792cb2006383a70152ed0556642ca336
cb4e5de379 [build] do not update dev depenencies after phpstan/phpstan removal
2023-09-27 13:44:26 +00:00
Tomas Votruba 0bac9c9526 Updated Rector to commit 5fb68b4a0c04c968a8edaa3556406838d4748757
5fb68b4a0c InlineConstructorDefaultToPropertyRector Readonly Class (#5085)
2023-09-27 13:06:03 +00:00
Tomas Votruba 1d1339dd53 Updated Rector to commit b483230a5bb027f24dbfe46e5a4416abd6b4788f
b483230a5b [Performance] Remove regex for check start with big letter on ShortNameResolver (#5084)
2023-09-26 21:57:19 +00:00
Tomas Votruba 452859f92f Updated Rector to commit e38909dbc086a70e5564e21d8af87aab9c1dc62d
e38909dbc0 Docblock fix on ShortNameResolver (#5077)
2023-09-24 10:06:03 +00:00
Tomas Votruba 9b44046c45 Updated Rector to commit 4f199368893906bf5d9f89b936e97297888de463
4f19936889 [AutoImport] Skip case insensitive conflict defined class name on $rectorConfig->importNames() (#5076)
2023-09-24 09:51:58 +00:00
Tomas Votruba 4b7d5cbe32 Updated Rector to commit 8bfaf450145e25e27e33e0ba2ead4c7348c6aa43
8bfaf45014  [Php80] Mirror switch comment to match to ChangeSwitchToMatchRector  (#5072)
2023-09-23 13:19:03 +00:00
Tomas Votruba 4f42274ab7 Updated Rector to commit 85a407a1b75939448a0ee6d539ebe86538252e52
85a407a1b7 Deprecate BinarySwitchToIfElseRector as opinionated to allow more suitable match() refactoring (#5064)
2023-09-22 09:56:10 +00:00
Tomas Votruba 06467e73f0 Updated Rector to commit 36f0b4ad9751892be63b57ccd95ecc75404c8cee
36f0b4ad97 Make RemoveEmptyClassMethodRector skip deprecated class method, as used for BC (#5061)
2023-09-21 15:47:17 +00:00
Tomas Votruba 4b8fc3fb05 Updated Rector to commit e698133cad1a85f2384a6cf450d66c54df1876a2
e698133cad [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5053)
2023-09-20 12:55:35 +00:00
Tomas Votruba 3827f75ecd Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
23d429233d [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052)
2023-09-20 12:53:23 +00:00
Tomas Votruba b2b3a0f5cc Updated Rector to commit 33fa6262970128e964fc4099d88d9a7369828e1a
33fa626297 [DX] Make PhpDocInfoFactory explicitly required in Rector rule constructor, if needed (#5051)
2023-09-20 12:41:26 +00:00
Tomas Votruba 3a35226590 Updated Rector to commit 5ee831f533cf97bc985b381cfd067122e2a479d2
5ee831f533 [TypeDeclaration] Add return static property support on ReturnTypeFromStrictTypedPropertyRector (#5050)
2023-09-19 13:48:46 +00:00
Tomas Votruba db78ff1331 Updated Rector to commit 76611f69af76327be04538df7b8c568600ac58c0
76611f69af Deprecate TypedPropertyFromStrictConstructorReadonlyClassRector as based on docblock and public elements; use private elements and property promotion instead (#5049)
2023-09-19 13:45:02 +00:00
Tomas Votruba 09bdee3938 Updated Rector to commit 765e849e612553708296dd501375b49784ad1ca8
765e849e61 Narrow rule complexity, add custom PHPStan to check whole rule complexity tree and spot architecture flaws (#5025)
2023-09-19 13:41:47 +00:00
Tomas Votruba 4ea05c5a5f Updated Rector to commit e530fc1e1a98faa22509115e79de5e5f2997208d
e530fc1e1a Introducing Collectors - final step 🥳  - processing collected data + test case (#4970)
2023-09-19 11:53:28 +00:00
Tomas Votruba 00f0a02e41 Updated Rector to commit 3ffd995dd526de72ae1c325ff225bf50624d07c5
3ffd995dd5 [DeadCode] RemoveDeadZeroAndOneOperationRector should not remove Constants (#4910)
2023-09-19 10:39:33 +00:00
Tomas Votruba e43f2a6386 Updated Rector to commit a3d2fcda640abe4af03822e415c5fbe757c2f88c
a3d2fcda64 [NodeTypeResolver] Use Scope->getType() on ArrayDimFetch on NodeTypeResolver::getNativeType() (#5037)
2023-09-18 22:07:04 +00:00
Tomas Votruba d7b6d352e5 Updated Rector to commit 308178a058b057813283852029a7b2aaa026568a
308178a058 Adding collectors - step 3 (#5043)
2023-09-18 17:12:03 +00:00
Tomas Votruba 65c9e5396a Updated Rector to commit 2cf8d837421963a540d2cf6e3b42702b1a8ae09e
2cf8d83742 [TypeDeclaration] Handle fallback from param same type object on ReturnTypeFromReturnNewRector (#5039)
2023-09-18 06:15:34 +00:00
Tomas Votruba 8e037982d6 Updated Rector to commit c956f862094345e72533d83e629938437bf29a43
c956f86209 fix(ArrayKeyFirstLastRector): Skip exection when pointer is changed (#5038)
2023-09-17 13:19:31 +00:00
Tomas Votruba dc61ee1240 Updated Rector to commit 8ba3d90ba430782c8e9bba135411260df802df3e
8ba3d90ba4 EmptyOnNullableObjectToInstanceOfRector: skip phpdoc (#5034)
2023-09-17 07:02:22 +00:00
Tomas Votruba 77cbaa7c42 Updated Rector to commit 8f8074f6d30e657621bf6ead352d062d228274ed
8f8074f6d3 SimplifyIfNullableReturnRector: fix example (#5032)
2023-09-17 06:44:25 +00:00
Tomas Votruba 6942fe920b Updated Rector to commit 780c5afe7b1623fe23e6c198665f692275fe798e
780c5afe7b [automated] Apply Coding Standard (#5031)
2023-09-17 00:30:04 +00:00
Tomas Votruba 279e6b242e Updated Rector to commit 0acf4bd13469aff2ad461317d026234840aa8091
0acf4bd134 Simplify UseIdenticalOverEqualWithSameTypeRector (#5029)
2023-09-16 11:56:33 +00:00
Tomas Votruba 01c783a2bf Updated Rector to commit c8ff683305a228aa2bfbe2c11eccc7a712c5db94
c8ff683305 Remove inline-@var use (#5028)
2023-09-16 11:45:20 +00:00
Tomas Votruba c33ef2a625 Updated Rector to commit e6d5d3620448b27bce7d080c9832558e2f6cdf38
e6d5d36204 [CodeQuality]: Skip PHPDoc (#5027)
2023-09-16 08:08:56 +00:00
Tomas Votruba 810ae4c396 Updated Rector to commit f6063588c0107450e51333934308f71434722f68
f6063588c0 [DX] Lower current node dependency - pass it directly to doc node parsing (#5023)
2023-09-15 11:53:42 +00:00
Tomas Votruba d8dbb74079 Updated Rector to commit 5b423425e584112ae7a02a6e7236c667cd5aedd0
5b423425e5 TypedPropertyFromStrictConstructorRector: Skip phpdoc types (#5020)
2023-09-14 17:09:03 +00:00
Tomas Votruba 4d86ccbb88 Updated Rector to commit 848c2ad9415b0e536b7864872f895f64104ecb50
848c2ad941 Improve Use_ const types in docblocks (#5005)
2023-09-12 20:17:09 +00:00
Tomas Votruba 57dc6f91d6 Updated Rector to commit 7e2bc1414f8567c55934a32d856e8d92a6e31d0f
7e2bc1414f [DeadCode] Ensure $hasChanged not replaced on next iteration when it assigned to true on RemoveUnusedPrivateMethodParameterRector (#5009)
2023-09-12 19:06:50 +00:00
Tomas Votruba 088accd46c Updated Rector to commit aeba96a811638e3954028b70d8163c43a8866fa8
aeba96a811 Refactor use import resolving (#4998)
2023-09-12 12:38:05 +00:00
Tomas Votruba 0d6604344e Updated Rector to commit cbc632c1eda3f2b9aba3fba07b0f1b45cc58caec
cbc632c1ed RenameFunctionRector: prevent repeated isName() calls (#5003)
2023-09-12 11:58:35 +00:00
Tomas Votruba 3c6c1c03f8 Updated Rector to commit a2f70054a7d976acd2c73b06789095b998829be6
a2f70054a7 [DocBlock] Update docblock contents right in the rule (#4999)
2023-09-11 21:30:42 +00:00
Tomas Votruba 35a66f9d23 Updated Rector to commit 596bbc98a25903c525914b4d16ea5f9c76b500fb
596bbc98a2 [tests] Replace wildcard e2e test with unit one (#5000)
2023-09-11 18:33:42 +00:00
Tomas Votruba 9a39b26232 Updated Rector to commit 9e7367ca9296ca986a31abd8bb7d6b3a6b5ef0d8
9e7367ca92 Trigger Rectify (#4997)
2023-09-11 16:07:43 +00:00
Tomas Votruba df6678519f Updated Rector to commit ed0be502e5d74171d59e67874f089f69429a01b0
ed0be502e5 UseImportsTraverser: don't deep traverse (#4994)
2023-09-11 15:55:07 +00:00
Tomas Votruba abed52d2c1 Updated Rector to commit edadb26ab4a156985027b8f685cdeecf4ea4b098
edadb26ab4 [Transform] Improve performance of AddAllowDynamicPropertiesAttributeRector (#4995)
2023-09-11 15:18:16 +00:00
Tomas Votruba 02ce33183a Updated Rector to commit f733c32f6c44c06faeba9ad5c46a62b8eee11748
f733c32f6c [Transform] Refactor AddAllowDynamicPropertiesAttributeRector with verify both fnmatch and is string name (#4993)
2023-09-11 15:00:52 +00:00
Tomas Votruba 927d670ef2 Updated Rector to commit 27d4c55bebe8706a74273d8c2379f59b75543c0e
27d4c55beb [Transform] Check str_contains * before fnmatch() early on AddAllowDynamicPropertiesAttributeRector (#4991)
2023-09-11 13:47:00 +00:00
Tomas Votruba be951e04e1 Updated Rector to commit 878f381d30ddb07c68dfbe828e9cd6e2b77b6c31
878f381d30 [Php55] Check str_contains * before fnmatch() early on StringClassNameToClassConstantRector (#4990)
2023-09-11 13:37:38 +00:00
Tomas Votruba 93e75a5197 Updated Rector to commit bfb759084621dfe23766ebfb43db47fb71ed5512
bfb7590846 [CodingStyle] Use str_starts_with() on isName($node, 'test*') on DataProviderArrayItemsNewlinedRector (#4988)
2023-09-11 13:33:44 +00:00
Tomas Votruba 549bed6da9 Updated Rector to commit b3639f72d73d9471ea8a843f93eb2ca61cd54a56
b3639f72d7 Update docblock only when changed, directly in rector rule (#4986)
2023-09-11 13:16:45 +00:00
Tomas Votruba 0a6aef3c00 Updated Rector to commit c9c3d78d3c5e583b541d06e5827f4f019adc3e40
c9c3d78d3c Remove ununnecesary markAsChanged() in PhpDocTypeChanger (#4984)
2023-09-11 10:41:08 +00:00
Tomas Votruba 282e5517d7 Updated Rector to commit ae3608b3d6464b63a041dd5e779c7b4e8f4cedb6
ae3608b3d6 Remove ununnecesary markAsChanged() in PhpDocTypeChanger, print docblock in explicit way when changed (#4983)
2023-09-11 09:08:21 +00:00
Tomas Votruba 553b67b890 Updated Rector to commit 57ec646b63b0c7804df44fd67990b41d83d56c40
57ec646b63 Make PhpDocINfo::removeByType() return bool to inform about changed node (#4979)
2023-09-11 07:37:02 +00:00
Tomas Votruba 1a37c5b7e2 Updated Rector to commit e4eec89c47fb767dbadb65662c12e2e3b6650cd5
e4eec89c47 [Performance][Php55] Remove regex replace e on RegexMatcher (#4974)
2023-09-10 19:01:55 +00:00
Tomas Votruba 44ac4c0b00 Updated Rector to commit b5c8f9a8930520277828986608fda0b75ef5381a
b5c8f9a893 use strlen() directly, as enough for string check (#4969)
2023-09-10 14:40:14 +00:00
Tomas Votruba 1e7c1e02b0 Updated Rector to commit ead7a25b38797531d9e6a755492200d59b05b1ae
ead7a25b38 Remove regex and fnmatch again on NodeNameResolver (#4968)
2023-09-10 13:41:40 +00:00
Tomas Votruba 5995088c4e Updated Rector to commit ef6c8bcc96bcb35a832ca0e798d580735c58f9ef
ef6c8bcc96 [NodeNameResolver] Check regex start delimiter and contains * on NodeNameResolver to use fnmatch() (#4964)
2023-09-10 13:01:10 +00:00
Tomas Votruba f73bcd4ef8 Updated Rector to commit c97e4ffb0534d388b5f51508491916f54d3f342a
c97e4ffb05 [Naming] Remove matchesStringName() check completely from NodeNameResolver, including endsWith() method - use getName() and compare directly instead (#4954)
2023-09-09 22:49:40 +00:00
Tomas Votruba 5ab2aa34fb Updated Rector to commit 416e52ad9e2164bc7d8e11518e3c0165862cb1b3
416e52ad9e fix typo (#4956)
2023-09-09 18:21:23 +00:00
Tomas Votruba 6adcb19ec9 Updated Rector to commit 474b3a222684b9c343ba6b43ea5bd39b78fbef2a
474b3a2226 Faster name resolving (#4955)
2023-09-09 18:18:18 +00:00
Tomas Votruba 81d65055b2 Updated Rector to commit 2d5d72f3ba66a63acb991107ba763e147c9840f4
2d5d72f3ba [Naming] Introduce startsWith() to acompany endsWith() naming check (#4953)
2023-09-09 14:19:44 +00:00
Tomas Votruba 7540a5e283 Updated Rector to commit 9a322af593a3ed9de20a535f613ed25e12ecc823
9a322af593 BC: Separated regex matching in NodeNameResolver->isName() (#4951)
2023-09-09 14:08:25 +00:00
Tomas Votruba 5102d25a1e Updated Rector to commit 672df31993b36396c3987bf6082f6218ba5cd26c
672df31993 Remove UnSpreadOperatorRector as not clear value and spread used on purpose (#4949)
2023-09-09 11:18:54 +00:00
Tomas Votruba 4ae2dfa94e Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3
2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
2023-09-07 12:50:04 +00:00
Tomas Votruba e30fbabf27 Updated Rector to commit b47adb55f7f7940987078fbe77f5222577a429b4
b47adb55f7 [TypeDeclaration] Add non native function return support on ReturnTypeFromStrictScalarReturnExprRector (#4934)
2023-09-07 11:28:19 +00:00
Tomas Votruba 030adf9f7d Updated Rector to commit eebc3ce703e0d57794c1dd1823457b272e02403d
eebc3ce703 [TypeDeclaration] Ensure ArrayType on ReturnTypeFromStrictNewArrayRector::shouldAddReturnArrayDocType() (#4932)
2023-09-07 04:43:51 +00:00
Tomas Votruba 549a072c08 Updated Rector to commit fa28385f9b46b0119073fb4209762fce23f8c09a
fa28385f9b Refactor BetterNodeFinder::findFirstInFunctionLikeScoped() to work with SilentVoidResolver (#4931)
2023-09-07 04:03:06 +00:00
Tomas Votruba 94613faf8f Updated Rector to commit 54799fc3d3a341643d050d06ecf72b467c8d37e8
54799fc3d3 [TypeDeclaration] Skip return after return closure on AddVoidReturnTypeWhereNoReturnRector (#4930)
2023-09-07 02:10:00 +00:00
Tomas Votruba 087ff4d5eb Updated Rector to commit e47f63176a7913ff040bfbce75a260a4ec47ceab
e47f63176a [TypeDeclaration] Add init assign method call support on ReturnTypeFromStrictNewArrayRector (#4929)
2023-09-07 01:50:05 +00:00
Tomas Votruba 73ca9074e0 Updated Rector to commit 2a697f79ecd82e4b59091f59927d8b9315113c18
2a697f79ec [TypeDeclaration] Add fallback return direct array support on ReturnTypeFromStrictNewArrayRector (#4928)
2023-09-06 19:40:05 +00:00
Tomas Votruba e6e6042119 Updated Rector to commit 10eb09f02d825d01caf92e2c45c73dddf6aa3430
10eb09f02d [cleanup] Remove deprecated NonPhpRectorInterface, PseudoNamespaceToNamespaceRector and mysql to mysqli sets (#4927)
2023-09-06 16:03:21 +00:00
Tomas Votruba f36a223be4 Updated Rector to commit aee42009d91dfdca128760fc4b37e09e101db23f
aee42009d9 AddVoidReturnTypeWhereNoReturnRector: fix never type handling (#4918)
2023-09-06 13:12:52 +00:00
Tomas Votruba 51c70b1a6e Updated Rector to commit eca01b375a62cca2d79ee5a1a7fff1795f3cba11
eca01b375a Trigger Rectify (#4924)
2023-09-06 12:41:35 +00:00
Tomas Votruba 7866e76540 Updated Rector to commit 15e924988caf800caffddf1906da948138daf44b
15e924988c Faster SilentVoidResolver (#4923)
2023-09-06 12:33:43 +00:00
Tomas Votruba 01bdd5bff5 Updated Rector to commit c17181453c5493f1ef2e43206759f12d715c18df
c17181453c [TypeDeclaration] Add append in loop support on ReturnTypeFromStrictNewArrayRector (#4922)
2023-09-06 12:12:53 +00:00
Tomas Votruba 3cee45fd42 Updated Rector to commit 0d2cdf0c48e4c0608ff4189e176c66aee92c820c
0d2cdf0c48 [TypeDeclaration] Use $type->isScalar()->yes() on AlwaysStrictScalarExprAnalyzer (#4920)
2023-09-06 11:44:15 +00:00
Tomas Votruba 752381df77 Updated Rector to commit c4ea636dcfb0a87f7fa7a7214e80ed98dac2444d
c4ea636dcf [TypeDeclaration] Add return empty string defined support on ReturnTypeFromStrictScalarReturnExprRector (#4919)
2023-09-06 11:35:48 +00:00
Tomas Votruba 2bbdfcfe3b Updated Rector to commit a21a3f17578cb8e13505ffe0e797ecfd12e86c4f
a21a3f1757 [Cleanup] Remove TypeToCallReflectionResolver as not needed anymore (#4917)
2023-09-05 19:57:28 +00:00
Tomas Votruba 4c7551da27 Updated Rector to commit aa7282195caab5889ee067ca3fb5eda62f26ed1b
aa7282195c [TypeDeclaration] Add return static object support on ReturnTypeFromStrictFluentReturnRector (#4916)
2023-09-05 17:03:27 +00:00
Tomas Votruba dbdeb211ce Updated Rector to commit 6d009ccad0aacd102fdacba00eb59b32a1104582
6d009ccad0 [TypeDeclaration] Add return self object support on ReturnTypeFromStrictFluentReturnRector (#4915)
2023-09-05 15:48:41 +00:00
Tomas Votruba 2ae279bf07 Updated Rector to commit 093bcb63a19db3fcdab8264897c584212d755463
093bcb63a1 [CodeQuality] Add NumberCompareToMaxFuncCallRector (#4914)
2023-09-05 13:21:31 +00:00
Tomas Votruba 491915e31b Updated Rector to commit 5595f80ed176f93485f50ff6dabad79cedbb72dc
5595f80ed1 Update github actions/checkout from v3 to v4 (#4909)
2023-09-04 14:00:44 +00:00
Tomas Votruba c5dca33b93 Updated Rector to commit 5919201e137b5ed041eebdf891ff2bada22fddb1
5919201e13 StrictArrayParamDimFetchRector: Skip objects (#4907)
2023-09-04 10:32:52 +00:00
Tomas Votruba bbc92f1719 Updated Rector to commit 824bb97770867b1584fa7c2398d0d59b7cd4f36e
824bb97770 [TypeDeclaration] Skip mixing native + docblock union assign on TypedPropertyFromAssignsRector (#4905)
2023-09-04 07:41:42 +00:00
Tomas Votruba 454b838af8 Updated Rector to commit 75717921e8661b5fc6f0ebbffe2e35bd86146202
75717921e8 MyCLabs enum equals + keeping methods  (#4645)
2023-09-04 07:26:59 +00:00
Tomas Votruba d72f4cf839 Updated Rector to commit 04c528e639778905387757ca3f7db6a3e48ac92f
04c528e639 Skip identical to false in SimplifyBoolIdenticalTrueRector, as exact comparison is stronger than negated expression (#4901)
2023-09-03 16:38:10 +00:00
Tomas Votruba 28c16a1c00 Updated Rector to commit d5f399eee5709932b579d41e3799c3097bbc101f
d5f399eee5 [DeadCode] Remove @return void on return self on RemoveUselessReturnTagRector (#4894)
2023-09-02 15:59:59 +00:00
Tomas Votruba fc46b4d878 Updated Rector to commit 3243e0efc1b7cab4f4c3f08cb73f16750018bad4
3243e0efc1 Add number support to concat EncapsedStringsToSprintfRector (#4898)
2023-09-02 15:54:43 +00:00
Tomas Votruba ed2db39d3d Updated Rector to commit 412d0bd50130f82d8f5388060301a7e1debf50ad
412d0bd501 Add single value concat support to EncapsedStringsToSprintfRector (#4897)
2023-09-02 15:36:16 +00:00
Tomas Votruba 326e84f967 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-09-01 11:10:35 +00:00
Tomas Votruba 3d97937140 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-08-31 16:33:28 +00:00
Tomas Votruba 62fe44207e Updated Rector to commit 56c84ba714b135a36e7e95fdf53f406b1411461e
56c84ba714 [TypeDeclaration] Do not add default value when assigned in __construct() on TypedPropertyFromStrictGetterMethodReturnTypeRector (#4886)
2023-08-31 11:38:41 +00:00
Tomas Votruba a3ea8375c9 Updated Rector to commit 4b0a688b8117689c243adc1c8dd18e9512673428
4b0a688b81 [TypeDeclaration] skip variadic constructor param of mixed type on AddParamTypeFromPropertyTypeRector (#4887)
2023-08-31 10:36:02 +00:00
Tomas Votruba 25e5fba435 Updated Rector to commit cf69407e2ff3402abb8a939d79f326f59121b2b4
cf69407e2f Fix missing default string in TypedPropertyFromStrictGetterMethodReturnTypeRector (#4885)
2023-08-31 08:41:20 +00:00
Tomas Votruba 97f92edab1 Updated Rector to commit 6424bae725296eb72307e5f4902715ea41dad3ba
6424bae725 [TypeDeclaration] Using ClassMethodReturnTypeOverrideGuard on ReturnTypeFromStrictParamRector (#4878)
2023-08-29 16:52:48 +00:00
Tomas Votruba 73a1ef4a72 Updated Rector to commit d8d31debc51ab5df1d30655846bb0fbd9f76039b
d8d31debc5 [Performance] Use more performance spl_object_id() (#4876)
2023-08-28 17:41:52 +00:00
Tomas Votruba dd562a4b59 Updated Rector to commit 9e8ed6c33f39aa9d7d859fb39b6f2d0344cdea0d
9e8ed6c33f Remove SwapFuncCallArgumentsRector as keeps swaping to infinity, use custom rule instead (#4874)
2023-08-28 12:45:54 +00:00
Tomas Votruba b19f667a5b Updated Rector to commit 21f33de2b90c0e63d42c3ebebef7cf4415191a21
21f33de2b9 Recreate to exact Expr node instead of printing when possible on AddParamBasedOnParentClassMethodRector take 2 (#4842)
2023-08-24 10:28:16 +00:00
Tomas Votruba 3e344a5749 Updated Rector to commit 5de9824db5006d0e6d9e9e60a2a1c439ff7adb6e
5de9824db5 [Performance][Php80] Avoid print on Expr when possible on AddParamBasedOnParentClassMethodRector (#4839)
2023-08-23 13:42:14 +00:00
Tomas Votruba 20bb3755f5 Updated Rector to commit 15ddec30da5ca9996fa56949e35ec9a190c72bf3
15ddec30da [Php73][Php80] Handle empty long array syntax default value on SensitiveConstantNameRector+AddParamBasedOnParentClassMethodRector (#4837)
2023-08-23 13:24:46 +00:00
Tomas Votruba ef0d7bee6c Updated Rector to commit 4b34887e678f90e4d9a8b4838333091465c28dc7
4b34887e67 [Php80] Handle crash parent default empty array/string param on AddParamBasedOnParentClassMethodRector (#4833)
2023-08-23 11:33:01 +00:00
Tomas Votruba fbd33e5f98 Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
45aababfbc [TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825)
2023-08-21 09:37:33 +00:00
Tomas Votruba a3856d782f Updated Rector to commit 4a869b9b104dc81adef4441025787c0c3411d4d6
4a869b9b10 bump PHPUnit printer to optional (#4826)
2023-08-21 09:28:35 +00:00
Tomas Votruba def86c6e48 Updated Rector to commit 45aababfbcf23f7ab3765376d6f04a3aee113e8a
45aababfbc [TypeDeclaration] Add new array replaced with array on ReturnTypeFromStrictNewArrayRector (#4825)
2023-08-21 09:28:31 +00:00
Tomas Votruba 8d42e37dfd Updated Rector to commit 00f736f054372cca311469fec02b46edd5159b9a
00f736f054 Fix RenamePropertyToMatchTypeRector to skip Laravel collections and avoid accident rename (#4811)
2023-08-18 09:06:56 +00:00
Tomas Votruba 7ad16ccd68 Updated Rector to commit 5363a676265cbe868f4ecc6bde8c6a99b213d028
5363a67626 AddReturnTypeDeclarationBasedOnParentClassMethodRector: don't trust phpdoc types (#4810)
2023-08-17 15:17:47 +00:00
Tomas Votruba 314c192af3 Updated Rector to commit bbd2e81b171f50d05ef73d63518cb1a31fdd7cd5
bbd2e81b17 Merge many Skipper tests to one, cleanup phpstan errors (#4806)
2023-08-17 10:13:30 +00:00
Tomas Votruba 266669789d Updated Rector to commit a85997a277c3227652eb9b2a6571fd01d183a5a7
a85997a277 Faster AddParamBasedOnParentClassMethodRector (#4805)
2023-08-17 09:06:25 +00:00
Tomas Votruba 7e217a5d21 Updated Rector to commit 2604a47c32dd8606349a1724122977c8b2fa6bf9
2604a47c32 Faster AddReturnTypeDeclarationBasedOnParentClassMethodRector (#4804)
2023-08-17 09:03:10 +00:00
Tomas Votruba 3fc5ae2dea Updated Rector to commit 04f332aaff53d2cda434b5051373aa0311683747
04f332aaff [TypeDeclaration] Remove USE_PHPDOC constant on AddVoidReturnTypeWhereNoReturnRector since no longer used (#4799)
2023-08-16 16:42:25 +00:00
Tomas Votruba 1f172665e6 Updated Rector to commit d8d4e8d0b244ba368e3ce8767343c71b108ec93c
d8d4e8d0b2 Revert removed ErrorType handling on NullToStrictStringFuncCallArgRector (#4793)
2023-08-14 20:02:59 +00:00
Tomas Votruba 426abe14c5 Updated Rector to commit 514df0a319b75f86b9b381ee0db7f95aadca32fb
514df0a319 Make NullToStrictStringFuncCallArgRector run without scope (#4792)
2023-08-14 14:35:49 +00:00
Tomas Votruba 5b1b83ed61 Updated Rector to commit 685fe90cb8752c2a288ee982d03d15d8df6b59f2
685fe90cb8 Make SimplifyUselessVariableRector run without scope (#4791)
2023-08-14 14:31:01 +00:00
Tomas Votruba 951076fc19 Updated Rector to commit 90b832dc4f10d04b32f2c0cbc473082f6ccd11fb
90b832dc4f cleanup (#4787)
2023-08-14 09:58:25 +00:00
Tomas Votruba 34e7d4f989 Updated Rector to commit 29d9b7619d0d8bd68a62cc5ab3fcba5699a50558
29d9b7619d [PHPStanStaticTypeMapper] Remove TypeKind::ANY (#4786)
2023-08-14 09:24:11 +00:00
Tomas Votruba 867dc4426c Updated Rector to commit 6b7aac835934de48c034aa8b2bad886616566e06
6b7aac8359 [Php81] Remove IntersectionTypesRector as rely on docblock (#4784)
2023-08-14 06:41:08 +00:00
Tomas Votruba 81362af021 Updated Rector to commit 72815588219a43f3881295c77bd5c97239e4721a
7281558821 [TypeDeclaration] Skip @param int on StrictStringParamConcatRector (#4780)
2023-08-13 16:51:50 +00:00
Tomas Votruba 5034b0a7f0 Updated Rector to commit 2970fa114ef632768f4704c8eefd2f5d0310703c
2970fa114e [TypeDeclaration] Skip in conditional on AddParamTypeFromPropertyTypeRector (#4779)
2023-08-13 07:18:25 +00:00
Tomas Votruba 435adccb1e Updated Rector to commit d02cfa14472309287e8ab741197440718a243fbd
d02cfa1447 [TypeDeclaration] Skip param re-assign on Strict Param rules (#4775)
2023-08-12 05:16:06 +00:00
Tomas Votruba 997543819d Updated Rector to commit 3f863a78c33218b94632431cc16ef5024d835f3e
3f863a78c3 [TypeDeclaration] Handle crash on concat param append returned used on Arg on StrictStringParamConcatRector (#4774)
2023-08-11 17:54:04 +00:00
Tomas Votruba 66f7957611 Updated Rector to commit 130f07b3da5cd6024b1e03265f75e70666a95473
130f07b3da [DeadCode] Skip used by trait inside Closure on RemoveUnusedPrivateMethodRector (#4773)
2023-08-11 17:24:11 +00:00
Tomas Votruba e36ad5d27c Updated Rector to commit 6923113ff2994cfb0c76298c7dc7d038655fbc95
6923113ff2 [DeadCode] Skip used by trait on RemoveUnusedPrivateMethodRector (#4770)
2023-08-11 13:30:03 +00:00
Tomas Votruba 7abf8380e8 Updated Rector to commit cf1d5b0a492598b893c3fe0ac1ec1d2fcd5018c6
cf1d5b0a49 Remove SwapMethodCallArgumentsRector as could lead to infinite swapping, use custom rule with type/value check instead (#4766)
2023-08-11 10:13:56 +00:00
Tomas Votruba fb1f63e38b Updated Rector to commit 0bdace5619d44c2ab3b30254f3ef06fe5e90e6fa
0bdace5619 [Php80] Handle crash Property ReflectionEnum::$betterReflectionClass does not exist on AddParamBasedOnParentClassMethodRector on Enum usage (#4758)
2023-08-10 14:35:27 +00:00
Tomas Votruba fd27dcf231 Updated Rector to commit a4bc873216f6d468524f95ca2746224c48311c2e
a4bc873216 cs
2023-08-10 12:16:13 +00:00
Tomas Votruba 852f522cbd Updated Rector to commit f4b71a5406b7a79e7fa09659c6a1ca0014a558e1
f4b71a5406 [TypeDeclaration] Use native type detection instead of docblock on AssignToPropertyTypeInferer for TypedPropertyFromAssignsRector (#4754)
2023-08-10 12:12:18 +00:00
Tomas Votruba 50e22e8613 Updated Rector to commit bcb51e81bc9cbc667017eea9240d7f8564848768
bcb51e81bc [Renaming] Deprecate PseudoNamespaceToNamespaceRector as too dynamic and unreliable, use the RenameClassRector instead (#4755)
2023-08-10 11:47:33 +00:00
Tomas Votruba 2802271875 Updated Rector to commit 9fcc5ba0771cfe693845f5a4ab2755d28c70d461
9fcc5ba077 Use direct VoidType definition on Return_ expr is null on ReturnedNodesReturnTypeInfererTypeInferer (#4752)
2023-08-10 07:14:40 +00:00
Tomas Votruba c050eb8443 Updated Rector to commit d32040ff25de17c3a84a8fb1e556501bf8a939a7
d32040ff25 [TypeDeclaration] Skip void type on caller on ReturnTypeFromStrictTypedCallRector (#4751)
2023-08-10 04:48:30 +00:00
Tomas Votruba 0034aa1ce6 Updated Rector to commit db0388feecd977d5bb8cda662b9aee14a53ecfc6
db0388feec misc (#4748)
2023-08-09 19:20:00 +00:00
Tomas Votruba d23a5ea440 Updated Rector to commit b23294698f066a48e35be76ba0f25616f48f375e
b23294698f [Renaming] Remove callables from class renames to avoid missed rename bugs, better handle with PHSPtan and custom rule (#4745)
2023-08-09 16:15:16 +00:00
Tomas Votruba 80654c23af Updated Rector to commit 8ae33c5f7ce2f1b27dd0a3100f8e9bdbb18a5361
8ae33c5f7c [Php70] Remove appendArgs() usage on CallUserMethodRector (#4731)
2023-08-09 12:42:27 +00:00
Tomas Votruba e7097335cd Updated Rector to commit b93e285a4a72ef12d4892852118d5ab7b1b48bdd
b93e285a4a [DX] Remove AddDefaultValueForUndefinedVariableRector as can generate broken code and depends on context (#4729)
2023-08-09 10:56:45 +00:00
Tomas Votruba e0af8c24c9 Updated Rector to commit b98df68ebb65cc05b7faba113e8e81a56d501c08
b98df68ebb [TypeDeclaration] Allow change multiple methods on AddParamTypeDeclarationRector (#4727)
2023-08-09 06:40:30 +00:00
Tomas Votruba 6703dc85ab Updated Rector to commit ea91c99695a8a8108bad4428c7febcf4222a363d
ea91c99695 Reduce private accessor usage on get parent class name not autoload (#4726)
2023-08-09 02:16:25 +00:00
Tomas Votruba 135fa91a30 Updated Rector to commit 88112d208bafbe266d5b0e5ec7fcb84058280ce2
88112d208b [TypeDeclaration] Skip non void or never already return typed on ReturnNeverTypeRector (#4723)
2023-08-08 15:44:06 +00:00
Tomas Votruba ee45a5a26e Updated Rector to commit 17fe187769dba735386f3afbad705e27de46b887
17fe187769 [TypeDeclaration] Skip param setter method intersection docblock not autoload on ReturnNeverTypeRector (#4721)
2023-08-08 15:26:09 +00:00
Tomas Votruba dc504e2a35 Updated Rector to commit 0a8ffe3ac8f42a93fb2853cc7ee93a1acced8a89
0a8ffe3ac8 [Types] Make AddVoidReturnTypeWhereNoReturnRector work only with type-declaration, as reliable (#4720)
2023-08-08 14:29:00 +00:00
Tomas Votruba 5602ee85cd Updated Rector to commit 3de7c697f5adc910481ff5873674284b2836dc50
3de7c697f5 [DX] Remove *AnnotationIncorrectNullableRector rules as works with unreliable docblocks and can have 2 solutions (#4719)
2023-08-08 13:25:26 +00:00
Tomas Votruba f4aa905f07 Updated Rector to commit 92b6e3a6d1e9a4289b5347e52f1cf379a68d74b4
92b6e3a6d1 [TypeDeclaration] Use return bool for ParentClassMethodTypeOverrideGuard::hasParentClassMethod(), return ?MethodReflection for ParentClassMethodTypeOverrideGuard::getParentClassMethod() (#4703)
2023-08-07 13:20:45 +00:00
Tomas Votruba ad2ad2a097 Updated Rector to commit 77258018af10a7c23477831e0eab49dd7c0b2bfe
77258018af Trigger Rectify (#4701)
2023-08-07 11:02:42 +00:00
Tomas Votruba 4cf14d6438 Updated Rector to commit 493e4f89c9f9a033668301cd4eee4df7e77df0cb
493e4f89c9 Skip code changes on unresolvable/unknown classes (#4619)
2023-08-07 10:55:35 +00:00
Tomas Votruba ec1aef0b55 Updated Rector to commit bb2e1e5fc0d15c83cd9df52d7fe6da22c1bb169d
bb2e1e5fc0 [NodeAnalyzer] Pass ReflectionProvider to __construct() on CallAnalyzer (#4699)
2023-08-07 09:47:53 +00:00
Tomas Votruba 197a05c117 Updated Rector to commit 97214e0856d96bdc8e4536746fcaca0b5bc27be1
97214e0856 [NodeAnalyzer] Remove #[Required] on CallAnalyzer (#4697)
2023-08-07 05:31:14 +00:00
Tomas Votruba 08df49faa5 Updated Rector to commit 033289a3b207c6a1cd9cba0cd027a16c45356aa8
033289a3b2 [CodingStyle] Remove #[Required] on ShortNameResolver (#4691)
2023-08-07 04:08:22 +00:00
Tomas Votruba 9fac241be1 Updated Rector to commit e9a97469558e5e154a185bae388f214e1f0d5c56
e9a9746955 [PhpParser] Remove #[Required] on ClassLikeAstResolver (#4688)
2023-08-07 03:26:51 +00:00
Tomas Votruba e1ddea3c17 Updated Rector to commit 1eee3a5f8727d3385d210222ab8e1f512a4fea19
1eee3a5f87 Remove RemoveParentRector as never used and only for demo purposes, handle custom way where needed (#4679)
2023-08-06 16:40:47 +00:00
Tomas Votruba 6f8ff0f9d5 Updated Rector to commit 2ffa009e08d06c7522a1f3b066f90e8edbee8210
2ffa009e08 [DX] Make use of Laravel container in few tests - step #1 (#4672)
2023-08-06 15:14:10 +00:00
Tomas Votruba e3116ffed3 Updated Rector to commit 097785424d7239bf0166d1fddb3e2079ce4787c8
097785424d [TypeDeclaration] Allow __invoke() method for return type changed on ClassMethodReturnTypeOverrideGuard (#4667)
2023-08-06 09:54:45 +00:00
Tomas Votruba 2a286e21bd Updated Rector to commit 6110a50ed0aaa58281e3b9de0a195f18bb782ba4
6110a50ed0 [TypeDeclaration] Skip anonymous class and other object on ReturnUnionTypeRector (#4670)
2023-08-06 09:54:38 +00:00
Tomas Votruba b390109355 Updated Rector to commit 4e3be87945bf57a1f4c7aaf51696c55ae7617054
4e3be87945 [TypeDeclaration][CodeQuality] Move ReturnTypeFromStrictScalarReturnExprRector from CodeQuality to TypeDeclaration set (#4668)
2023-08-06 09:54:10 +00:00
Tomas Votruba 6299c365a0 Updated Rector to commit e98e9e7e1a92265d4ee6a41bf9298f1d606f4a5b
e98e9e7e1a [TypeDeclaration] Allow return anonymous class on ReturnTypeFromReturnNewRector (#4669)
2023-08-06 09:53:37 +00:00
Tomas Votruba 57bd04e032 Updated Rector to commit f45662a829357b0c98532611fce4c250459f54b7
f45662a829 [Privatization] Skip parent class unknown on PrivatizeFinalClassMethodRector (#4671)
2023-08-06 09:53:01 +00:00
Tomas Votruba 890e81ed62 Updated Rector to commit 625fcccc475c8a6b3bde49e5e64e66354ed4299a
625fcccc47 [CodeQuality][TypeDeclaration] Add string append support on ReturnTypeFromStrictScalarReturnExprRector (#4657)
2023-08-06 02:01:31 +00:00
Tomas Votruba 35a2f175ea Updated Rector to commit 7a486532b23a9fd39d74ac16f45c27849d91870b
7a486532b2 [DX] Move FlipNegatedTernaryInstanceofRector to instanceof rules category (#4663)
2023-08-05 23:50:25 +00:00
Tomas Votruba da5c8d8544 Updated Rector to commit 637d48cd42527577e5c8fc65d8683b47129afa1a
637d48cd42 Remove deprecated ArrayShapeFromConstantArrayReturnRector (#4662)
2023-08-05 23:37:13 +00:00
Tomas Votruba 813a09001a Updated Rector to commit 0013604ebd8bf101ca9bd013a56d7e831bcdf51e
0013604ebd [DX] Remove RemoveJustPropertyFetchRector as used for one time job, not practical for general use (#4661)
2023-08-05 23:36:26 +00:00
Tomas Votruba aef03f3b69 Updated Rector to commit f76d034bf8eb60e7a7a2d73b2239aebf81b1ac51
f76d034bf8 [DX] Remove NullifyUnionNullableRector, let cs tools handle it (#4660)
2023-08-05 17:58:26 +00:00
Tomas Votruba 2e58adbe3b Updated Rector to commit 8c04f656b32d8d95a5139e59cbfbc508647dd3b1
8c04f656b3 [TypeDeclaration] Skip public method on AddMethodCallBasedStrictParamTypeRector (#4659)
2023-08-05 16:29:56 +00:00
Tomas Votruba 0a93085a9e Updated Rector to commit ae896432a906ca02a97c326295a29ced3c689998
ae896432a9 Move ArrayManipulator to rector-symfony, where only used (#4656)
2023-08-05 12:14:07 +00:00
Tomas Votruba 9ccb6367c0 Updated Rector to commit 9b03d8367cd3c69b36b8b1aedf458b191f46655a
9b03d8367c [TypeDeclaration] Add ReturnUnionTypeRector (#4655)
2023-08-05 10:29:33 +00:00
Tomas Votruba 93ce3c4606 Updated Rector to commit ef35a4957b1afbede20679d94529393f4e6d1286
ef35a4957b [DX] Cleanup few dev dependencies to lower dependency-tree load (#4650)
2023-08-04 17:51:05 +00:00
Tomas Votruba 1814d573d8 Updated Rector to commit e380cf8fdb65fe9929ed047dafdd49fadb00e01c
e380cf8fdb [DX] Make MoneyFormatToNumberFormatRector wrap func call directly to keep simple (#4653)
2023-08-04 17:46:10 +00:00
Tomas Votruba 92b9fdfd95 Updated Rector to commit fbcd7cf7e6c61be3ad014eebe50ff6c83e8a202e
fbcd7cf7e6 Remove resolveFromNodeWithScopeCountAndFallbackName() as unused (#4652)
2023-08-04 17:28:42 +00:00
Tomas Votruba 81777836bc Updated Rector to commit cbc026e3245d744eea5cf1fc48f3722f67b62173
cbc026e324 [DX] Cleanup ForRepeatedCountToOwnVariableRector counter (#4651)
2023-08-04 17:15:45 +00:00
Tomas Votruba 420f332cf3 Updated Rector to commit 58273de24474dee2a5463949ad127a86526c4e3a
58273de244 [CodingStyle][Php80][Privatization] Handle SeparateMultiUseImportsRector+ClassPropertyAssignToConstructorPromotionRector+FinalizeClassesWithoutChildrenRector cause invalid removal (#4649)
2023-08-04 15:26:33 +00:00
Tomas Votruba b2fa3fba80 Updated Rector to commit 529defd2de2b8ea122d0d7326ca0b054a22a030d
529defd2de [TypeDeclaration] Using native type scope get on ReturnTypeInferer (#4648)
2023-08-04 14:11:13 +00:00
Tomas Votruba 1ead4b33f1 Updated Rector to commit ae767eb1fe01f65c9d5a1e5c2a4c067e95b5386e
ae767eb1fe [TypeDeclaration] Set minimum php version for AddReturnTypeDeclarationBasedOnParentClassMethodRector to php 7.0 (#4647)
2023-08-04 12:23:25 +00:00
Tomas Votruba 673d423883 Updated Rector to commit 3b9c2f1b533fc9b8c600c6fcbd2f152eb9403a72
3b9c2f1b53 [TypeDeclaration] Refactor AddPropertyTypeDeclarationRector to use AbstractScopeAwareRector (#4644)
2023-08-04 06:11:54 +00:00
Tomas Votruba cbd8887f11 Updated Rector to commit dff1e4b90b06c4e47273276b6462febbea325779
dff1e4b90b [TypeDeclaration] Skip Docblock on AddArrowFunctionReturnTypeRector (#4643)
2023-08-04 05:57:31 +00:00
Tomas Votruba cd5f986bfb Updated Rector to commit 8ffacac3b77f7539e5bef55a462ed0451c752469
8ffacac3b7 [Strict] Skip docblock on BooleanInBooleanNotRuleFixerRector (#4640)
2023-08-03 17:14:16 +00:00
Tomas Votruba ed1dba1541 Updated Rector to commit 8f6b3660d0aeee1c44fd9726c97429900863d460
8f6b3660d0 [Strict] Skip docblock on DisallowedShortTernaryRuleFixerRector (#4639)
2023-08-03 17:04:00 +00:00
Tomas Votruba 32ea38b2ab Updated Rector to commit 3c2fab22122dbab967154f433c93c61ec5532de5
3c2fab2212 [Strict] Skip docblock on BooleanInTernaryOperatorRuleFixerRector (#4638)
2023-08-03 16:56:43 +00:00
Tomas Votruba 84ff789c67 Updated Rector to commit 5ee441f4443d574788a34a849b0772d863bc6200
5ee441f444 [TypeDeclaration] Remove AddClosureReturnTypeRector (#4637)
2023-08-03 16:38:29 +00:00
Tomas Votruba 5454cfa6b9 Updated Rector to commit 527f2140e38fba2f9419686552402e41d9893d81
527f2140e3 [TypeDeclaration] Add nullable param from null compare on StrictStringParamConcatRector (#4636)
2023-08-03 15:09:44 +00:00
Tomas Votruba 10fc685b85 Updated Rector to commit 25b6142f69577a83fc86fd4a3ddad57af470ba26
25b6142f69 [TypeDeclaration] Do not change different type defualt value on  StrictStringParamConcatRector (#4635)
2023-08-03 14:28:47 +00:00
Tomas Votruba d25543c727 Updated Rector to commit 90f871403d153509ddef0acffb1726532a44ae62
90f871403d [TypeDeclaration] Add Closure support on StrictStringParamConcatRector (#4634)
2023-08-03 14:19:22 +00:00
Tomas Votruba 8e45114f90 Updated Rector to commit 5965ddd37bf4e44553822ae16165c2de4b052f42
5965ddd37b [TypeDeclaration] Add Closure support on ReturnTypeFromStrictParamRector (#4633)
2023-08-03 14:19:00 +00:00
Tomas Votruba 3619383db1 Updated Rector to commit 79953f61e341fdb7263316b34eeaa2be737d12ef
79953f61e3 [TypeDeclaration] Add Closure support on StrictArrayParamDimFetchRector (#4632)
2023-08-03 14:04:39 +00:00
Tomas Votruba 59b728d5fa Updated Rector to commit 36e88e13e5d41db048494b497d59ae0e96c877f0
36e88e13e5 [TypeDeclaration] Add Closure support on NumericReturnTypeFromStrictScalarReturnsRector (#4631)
2023-08-03 13:56:06 +00:00
Tomas Votruba c0798d5cca Updated Rector to commit a63ad695ca6b86b460c425a65762778329ca577f
a63ad695ca [TypeDeclaration] Skip has parent class method on AddParamTypeFromPropertyTypeRector (#4627)
2023-08-02 08:12:09 +00:00
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 3598a7608a Updated Rector to commit 8c623868b748427ce186a1b3b892a7bca9860483
8c623868b7 [automated] Apply Coding Standard (#4621)
2023-07-30 00:32:15 +00:00
Tomas Votruba 87451f1fce Updated Rector to commit 784894e8ed4260ae3c8d45a28e007f4b6fe98f4d
784894e8ed [CodingStyle] Handle crash on empty cases on BinarySwitchToIfElseRector (#4618)
2023-07-29 09:44:46 +00:00
Tomas Votruba 1d52a6cf83 Updated Rector to commit 682df75fc015d0f267780ec5363aa74f82dba58b
682df75fc0 [CodingStyle][Namespace_] Support constant imports (#4612)
2023-07-28 13:10:47 +00:00
Tomas Votruba 4082c75546 Updated Rector to commit db03c60a5725e8f82d6b800c4745bc259ee470ac
db03c60a57 [Php81] Fix regression skip call by ref on ReadOnlyPropertyRector on non __construct method (#4614)
2023-07-27 09:43:37 +00:00
Tomas Votruba 8424a957a3 Updated Rector to commit 0b96adb72c8ddded52c34dc0ea8a6d2bb7327511
0b96adb72c AddMethodCallBasedStrictParamTypeRector: Support changing protected methods in final classes (#4611)
2023-07-27 07:54:50 +00:00
Tomas Votruba 07dd65650f Updated Rector to commit 3a95b1436575815cfc442baf137a2a6a24100cdd
3a95b14365 [TypeDeclaration] Add Closure support on BoolReturnTypeFromStrictScalarReturnsRector (#4610)
2023-07-27 04:15:19 +00:00
Tomas Votruba 279fea6a57 Updated Rector to commit b5f973f768f2bb55ca4b224a58a05eb5817b2cae
b5f973f768 [Strict] Skip @return docblock on BooleanInIfConditionRuleFixerRector (#4609)
2023-07-26 15:22:33 +00:00
Tomas Votruba 1df6d4abb3 Updated Rector to commit 65e6caedb37c1d447a4da1992a14b82c5aa41871
65e6caedb3 [Strict] Skip from docblock @return on DisallowedEmptyRuleFixerRector (#4608)
2023-07-26 14:44:50 +00:00
Tomas Votruba abd2958b1c Updated Rector to commit c01925aad05a9baf0a44701a069a989ca3c0edc8
c01925aad0 Resolve native return-type from native union-type in short ternary (#4606)
2023-07-26 12:30:52 +00:00
Tomas Votruba 5a842dbce3 Updated Rector to commit c1e03db126ca74dc518aa4a0c9a04715e7f1cd44
c1e03db126 [cs] Re-run ECS dev version to try out regression (#4595)
2023-07-25 08:52:39 +00:00
Tomas Votruba f083e0de01 Updated Rector to commit 031f2de2b8043a972f1a19f07f06ad2fc9793df3
031f2de2b8 [Php81] Fix regression skip call by ref on ReadOnlyPropertyRector (#4593)
2023-07-25 04:02:12 +00:00
Tomas Votruba b99d5e2373 Updated Rector to commit 6231beb886440a08b381ba85cb834f9ebedec752
6231beb886  [TypeDeclaration] Skip override string on StrictArrayParamDimFetchRector  (#4591)
2023-07-25 01:42:12 +00:00
Tomas Votruba a89d98c36c Updated Rector to commit 6658a0e3950589eface36a82af5be21bef70bf11
6658a0e395 [TypeDeclaration] Skip coalesce on StrictArrayParamDimFetchRector (#4589)
2023-07-24 12:42:10 +00:00
Tomas Votruba dd741c0c67 Updated Rector to commit e9e6a42eaea1006ac822ba72902806a7d6f7e508
e9e6a42eae Fixed constant types handling in TypedPropertyFromStrictConstructorRector (#4588)
2023-07-24 08:19:54 +00:00
Tomas Votruba f2d74dd860 Updated Rector to commit 578d6372a2e2028f52e4635f6e321b690c1e383b
578d6372a2 [PHPStanStaticTypeMapper] FQCN for Closure type mapper  (#4584)
2023-07-23 23:31:30 +00:00
Tomas Votruba 94b97948c5 Updated Rector to commit 079cd5116ab16585e9b656ad7cd6eef8417137ef
079cd5116a cs
2023-07-23 16:22:04 +00:00
Tomas Votruba 1191015c78 Updated Rector to commit a8ae2d8c2a92536f95a70dc99eaebb01168c4a6f
a8ae2d8c2a implemented TypedPropertyFromStrictConstructorReadonlyClassRector (#4552)
2023-07-23 16:12:36 +00:00
Tomas Votruba f8344bbd9a Updated Rector to commit c12703def127562155efcee2c348ca3a4d08c170
c12703def1 Simplify TypedPropertyFromStrictConstructorRector (#4587)
2023-07-23 11:23:26 +00:00
Tomas Votruba 855f7c2503 Updated Rector to commit 50a5bb4057387d3053c5ea1ecf22286ea04dff36
50a5bb4057 [BUGFIX] Ensure proper reprint with attributes for finalized classes (#4585)
2023-07-23 09:42:10 +00:00
Tomas Votruba 9e3dde0cb2 Updated Rector to commit a7cd7eda65894aea11ca012cac8ea4a29fb0a051
a7cd7eda65 [EarlyReturn] Handle multiple statements in else in ChangeIfElseValueAssignToEarlyReturnRector (#4580)
2023-07-22 13:10:50 +00:00
Tomas Votruba 174847774d Updated Rector to commit c94645b3ab7debe9c00531597c1b896080a2cf9d
c94645b3ab [Performance] [PostRector] Reduce repetitive resolve uses statements on NameImportingPostRector (#4579)
2023-07-22 10:56:32 +00:00
Tomas Votruba e785af2045 Updated Rector to commit cf1d254200cd2d456b701e201c625c8245e123d7
cf1d254200 Make use of toPhpDocNode() - take #11 (#4574)
2023-07-21 21:26:11 +00:00
Tomas Votruba 2d8f90877a Updated Rector to commit 4a5616878c580138a26e1eedf63c15fa8e0dcda8
4a5616878c Make ReturnTypeFromStrictNewArrayRector handle only single level arrays (#4575)
2023-07-21 21:08:31 +00:00
Tomas Votruba 773600ee65 Updated Rector to commit 09fe7f5c1ebe6b6eacddc9765284dce921bd9191
09fe7f5c1e [TypeDeclaration] Deprecate ArrayShapeFromConstantArrayReturnRector as uses docblocks that we move away from since 0.15 (#4571)
2023-07-21 14:06:17 +00:00
Tomas Votruba 9126553304 Updated Rector to commit 8a000b797953910b2312c1ebacaf42db024bc1ef
8a000b7979 [Performance][Renaming] No need PhpDocInfo refactor on Name node on ClassRenamer (#4566)
2023-07-21 10:01:43 +00:00
Tomas Votruba 781ecd4a06 Updated Rector to commit 2faa19f25fc05b98515b280d38241d688909511b
2faa19f25f [Performance][PostRector] Remove alias exists check on NameImporter called from NameImportingPostRector (#4564)
2023-07-21 08:39:06 +00:00
Tomas Votruba 45ea7eeb2a Updated Rector to commit 7b2f2e8f866a4f7f32e37e37180d401a4b2cc199
7b2f2e8f86 Skip traits in CountOnNullRector (#4556)
2023-07-20 19:10:29 +00:00
Tomas Votruba b1bb02fc44 Updated Rector to commit ebe8c2ef975c2173e21f027486d00f6ec121c264
ebe8c2ef97 Add constuctor support to ReplaceArgumentDefaultValueRector (#4554)
2023-07-20 15:30:52 +00:00
Tomas Votruba 37853424d5 Updated Rector to commit 715a047989a3b2def0f9e62879c906da61e39cc6
715a047989 Skip description on same line, remove on next line as based on phpdoc-parser in RemoveUselessParamTagRector (#4551)
2023-07-20 12:07:25 +00:00
Tomas Votruba 51b2bd7a2e Updated Rector to commit 8c5507f3e83e70657f95ae9ccb6488732b0359f5
8c5507f3e8 [Strict] Skip empty() from param doc on DisallowedEmptyRuleFixerRector (#4550)
2023-07-20 11:22:15 +00:00
Tomas Votruba 20d3da40c6 Updated Rector to commit e2ec807d3c4b2529533bfac5eb2a2b6717fd58c2
e2ec807d3c [CodingStyle] Skip filled by construct on AddArrayDefaultToArrayPropertyRector (#4549)
2023-07-20 10:44:30 +00:00
Tomas Votruba 78d51cc3eb Updated Rector to commit 0ff50c06d0c90ed0a678fd56261ab40b25f8b29f
0ff50c06d0 [Reflection] Reduce Scope pulling on ReflectionResolver (#4548)
2023-07-20 07:43:17 +00:00
Tomas Votruba 2056f7b2b8 Updated Rector to commit f77e355f95de5ca8ac256bc975418ba498e72a57
f77e355f95 Use instanceof check on ClassReflection resolve (#4547)
2023-07-20 07:29:04 +00:00
Tomas Votruba 2a46c820ee Updated Rector to commit 141a94aa49a3f64e78e3dd2f2a4b1d91de425b8b
141a94aa49 [Performance] [Php74] Reduce ClassReflection lookup from property on PropertyTypeChangeGuard (#4545)
2023-07-20 07:24:15 +00:00
Tomas Votruba 20ccbb9b14 Updated Rector to commit 8cd004440909a267f4530e2a1c8d0a6228a6b3d9
8cd0044409 Tiny static fixes (#4543)
2023-07-19 12:01:40 +00:00
Tomas Votruba 2e76492c3b Updated Rector to commit a0af8a1a1133943062fc438d11af7436bd74929d
a0af8a1a11 Improve methods complexity (#4542)
2023-07-19 11:50:09 +00:00
Tomas Votruba bff94f9200 Updated Rector to commit ceab6d71bb3436c1c613651a12af55954ab3f7bf
ceab6d71bb Add currentStmt property on AbstractRector to allow pull Scope from it on deep Expr (#4437)
2023-07-19 11:08:33 +00:00
Tomas Votruba 470b97fa36 Updated Rector to commit 8e33c93f61b403f62628e32f566ef4387db05ffc
8e33c93f61 Update class-leak package (#4534)
2023-07-19 10:42:43 +00:00
Tomas Votruba 58d5c38f57 Updated Rector to commit 6451387bb657ce665f47acb4aa1c64be7153677d
6451387bb6 [Performance][TypeDeclaration] Reduce resolve ClassReflection from Property on AllAssignNodePropertyTypeInferer (#4539)
2023-07-19 10:37:33 +00:00
Tomas Votruba 7e9abb6ee1 Updated Rector to commit d0604509d0c3e22a29d1f3f174873e7c7596abb4
d0604509d0 [Performance] [TypeDeclaration] Reduce resolve ClassReflection on each property on TypedPropertyFromStrictConstructorRector (#4536)
2023-07-19 10:37:14 +00:00