Commit Graph

3374 Commits

Author SHA1 Message Date
Tomas Votruba b57aa6b1c1 Updated Rector to commit 3d7de8a15dfd61b80af51711c28a03ef886267e1
3d7de8a15d remove unused DoctrineAnnotationFactory
2023-01-15 00:59:39 +00:00
Tomas Votruba 01b8c03d60 Updated Rector to commit 8bf0045044d1357c6d10bc61e84fd962f69ccc20
8bf0045044 remove downgrade only method
2023-01-15 00:50:07 +00:00
Tomas Votruba cde52ddf2f Updated Rector to commit 09444df13c372bdd15fd9fcf92c4be6b053fb318
09444df13c Clean up Mix HTML+PHP take 2 (#3286)
2023-01-14 22:38:39 +00:00
Tomas Votruba 6064d3f279 Updated Rector to commit 4b6a55998d37cb76336ca512e3f853b8193ddd64
4b6a55998d Clean up mix HTML+PHP first stmt check (#3285)
2023-01-14 22:18:39 +00:00
Tomas Votruba 2ba10ad8e9 Updated Rector to commit 410e939ede14803bbdfc9688065d2a03a0d246d7
410e939ede  [Core] [Printer] Ensure empty php tag init on original node not re-printed  (#3284)
2023-01-14 20:51:32 +00:00
Tomas Votruba efa032ded0 Updated Rector to commit 1868b930b2a893e7da5faf90042f45daddc7387b
1868b930b2 [Core] Improve BetterStandardPrinter printFormatPreserving on mix HTML + PHP (#3283)
2023-01-14 14:48:39 +00:00
Tomas Votruba 788f8c3fea Updated Rector to commit d9ee43c28dd0718bd2a2528a4313be2c6199666d
d9ee43c28d [CodeQuality] Handle mix HTML+PHP on ForRepeatedCountToOwnVariableRector (#3282)
2023-01-14 08:08:29 +00:00
Tomas Votruba a43370e1f4 Rector 0.15.7 2023-01-13 21:14:19 +00:00
Tomas Votruba f21fb3b126 Updated Rector to commit 774de56c848e9b4c4bbf2a8319cbfaebd16f6ef9
774de56c84 Fix AddMethodCallBasedStrictParamTypeRector for invalid generics type (#3281)
2023-01-13 20:02:32 +00:00
Tomas Votruba 827c456b07 Updated Rector to commit fe7ed4fb9a4ed31a13f70ee9e6595552aecb0f58
fe7ed4fb9a Skip attribute in RemoveUnusedPromotedPropertyRector (#3280)
2023-01-13 19:41:09 +00:00
Tomas Votruba 2980e4cdbf Updated Rector to commit 3b3ee7ea805d2a5d4abe1049d595b456abdd400c
3b3ee7ea80 Skip Doctrine Collection in RenamePropertyToMatchTypeRector (#3279)
2023-01-13 19:34:52 +00:00
Tomas Votruba 81f82f7474 Rector 0.15.6 2023-01-13 19:10:49 +00:00
Tomas Votruba 28ec152d46 Updated Rector to commit bea3bc6d9fd4fd5596486490f4abb612cd05b160
bea3bc6d9f Skip date time on naming, as custom standard (#3278)
2023-01-13 19:10:03 +00:00
Tomas Votruba 3bf1b86a9a Updated Rector to commit 9a2bcbf87e0e9ef7a243bae52d666f9704c1aee1
9a2bcbf87e [Naming] Fix add fixture RenameVariableToMatchMethodCallReturnTypeRector  for date time assign (#3277)
2023-01-13 18:58:01 +00:00
Tomas Votruba f0db3872cf Updated Rector to commit b91f35ff6e833e2abb6591044309984549f0b539
b91f35ff6e Fix FinalizeClassesWithoutChildrenRector for changed class, use more reliable reflection to detect Doctrine attributes (#3276)
2023-01-13 15:37:04 +00:00
Tomas Votruba 4372e75c82 Updated Rector to commit fbf9506c5de7389260e8a842c911b3315b053df3
fbf9506c5d Skip RenamePropertyToMatchTypeRector for promoted property date time (#3275)
2023-01-13 15:20:40 +00:00
Tomas Votruba d37a463efc Updated Rector to commit fbf9506c5de7389260e8a842c911b3315b053df3
fbf9506c5d Skip RenamePropertyToMatchTypeRector for promoted property date time (#3275)
2023-01-13 15:15:08 +00:00
Tomas Votruba b27945f635 Rector 0.15.5 2023-01-12 19:13:08 +00:00
Tomas Votruba db3869fd18 Updated Rector to commit 7c4d0ce7eca325b22e35c2653bf99a119a82668d
7c4d0ce7ec Includes PHPStan bleedingEdge.neon config in phpstan-for-rector and phpstan-for-downgrade config (#3274)
2023-01-12 13:57:33 +00:00
Tomas Votruba 2494cc52a4 Updated Rector to commit 69c4ca8aaffd3340d8c9011b52f16189d15778f7
69c4ca8aaf [TypeDeclaration] Skip crash Undefined property: PhpParser\Node\Stmt\Enum_:: on AddParamTypeDeclarationRector (#3272)
2023-01-11 09:15:59 +00:00
Tomas Votruba 2662858a47 Updated Rector to commit 69c4ca8aaffd3340d8c9011b52f16189d15778f7
69c4ca8aaf [TypeDeclaration] Skip crash Undefined property: PhpParser\Node\Stmt\Enum_:: on AddParamTypeDeclarationRector (#3272)
2023-01-10 14:56:25 +00:00
Tomas Votruba 96c131c440 Updated Rector to commit c406c850e227b673b256fef4c9d1a368982f2a2e
c406c850e2 docs
2023-01-10 11:16:07 +00:00
Tomas Votruba 1dcdf54ebf Rector 0.15.4 2023-01-10 11:09:49 +00:00
Tomas Votruba b771e1ca1a Updated Rector to commit 58c8f170182d3350e21a3b141bb3971651943e63
58c8f17018 [CodingStyle] Add DataProviderArrayItemsNewlinedRector (#3271)
2023-01-10 11:07:38 +00:00
Tomas Votruba 70d56f8d24 Updated Rector to commit e8dd953f10a7afc3610d5185c6b42216e6d9e050
e8dd953f10 [Php80] Don't add null as default to variadic parameter (#3270)
2023-01-10 10:35:25 +00:00
Tomas Votruba 4734e7527f Updated Rector to commit e8dd953f10a7afc3610d5185c6b42216e6d9e050
e8dd953f10 [Php80] Don't add null as default to variadic parameter (#3270)
2023-01-09 13:34:26 +00:00
Tomas Votruba 7fa05c4332 Updated Rector to commit e8dd953f10a7afc3610d5185c6b42216e6d9e050
e8dd953f10 [Php80] Don't add null as default to variadic parameter (#3270)
2023-01-09 11:19:09 +00:00
Tomas Votruba 71448aaa79 Updated Rector to commit aafb99246d40b436486c90eaad7e45f21a823075
aafb99246d skip automated and core from generate changelog
2023-01-08 16:24:14 +00:00
Tomas Votruba 3f15e3a241 Rector 0.15.3 2023-01-08 16:14:58 +00:00
Tomas Votruba 29be2b6a0f Updated Rector to commit 9c64c2a7ef9aa19592349b3928173adc9b9eb394
9c64c2a7ef [TypeDeclaration] Fix TypedPropertyFromStrictConstructorRector to avoid conflict with default type (#3269)
2023-01-08 16:13:32 +00:00
Tomas Votruba 6b7133ac92 Updated Rector to commit d43f7498b821cf58437f622bce3b3aae290fa89e
d43f7498b8 Bump PHPStan ^1.9.7 (#3268)
2023-01-05 10:03:05 +00:00
Tomas Votruba 9548122236 Updated Rector to commit d43f7498b821cf58437f622bce3b3aae290fa89e
d43f7498b8 Bump PHPStan ^1.9.7 (#3268)
2023-01-05 03:42:38 +00:00
Tomas Votruba 80b6ffce36 Updated Rector to commit 8c439cffaee2124388b4fd03db951f43f10a5359
8c439cffae [TypeDeclaration] Do not remove multiple docblocks with comment on TypedPropertyFromAssignsRector (#3263)
2023-01-03 15:14:20 +00:00
Tomas Votruba a8b92bef9a Updated Rector to commit 27d57142d9581209db7809c3e1f50e77140574cb
27d57142d9 Bump to PHPStan ^1.9.6 (#3266)
2023-01-03 14:38:26 +00:00
Tomas Votruba ee002f4649 Updated Rector to commit fe5292d39dde5bfbd9ad3f652762bf70f621ee48
fe5292d39d Bump to PHPStan ^1.9.5 (#3265)
2023-01-03 12:53:46 +00:00
Tomas Votruba 9b5abdcb18 Updated Rector to commit fe5292d39dde5bfbd9ad3f652762bf70f621ee48
fe5292d39d Bump to PHPStan ^1.9.5 (#3265)
2023-01-03 00:44:59 +00:00
Tomas Votruba 3e51438f07 Updated Rector to commit 5b76f7b43b18b04c4eb32fbf55d6795478a09a43
5b76f7b43b [TypeDeclaration] Handle comment + single docblock on TypedPropertyFromAssignsRector (#3264)
2023-01-02 16:27:11 +00:00
Tomas Votruba 11b6f003b8 Updated Rector to commit a94a11a157b69172d32dbdd6de3328d313f9f5ce
a94a11a157 [Utils] Add ArrayChecker util to verify first data found on given array (#3262)
2023-01-02 12:05:00 +00:00
Tomas Votruba 0fc42c2559 Updated Rector to commit 47fa234379b7b9f28081e8bc6e683628f8d53f2b
47fa234379 [CodeQuality] Add Variable support on class arg on InlineIsAInstanceOfRector (#3261)
2023-01-02 11:58:30 +00:00
Tomas Votruba b8f374dc0e Updated Rector to commit cba980b719f48eb580f8afcf4e3843843436ba35
cba980b719 [NodeRemoval] Refactor NodeRemover to always use removeNode() method to ensure Node in NodesToRemoveCollector (#3255)
2023-01-02 11:53:04 +00:00
Tomas Votruba fe418cfdc0 Updated Rector to commit 79a34f9e0116081e31472c2d6cd415e7d077c21f
79a34f9e01 [CodeQuality] Handle class-string case insensitive on CompleteDynamicPropertiesRector (#3260)
2023-01-02 11:52:28 +00:00
Tomas Votruba 764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba cc6482f10f Updated Rector to commit e61c1774f94bfd37023ad789542200a63f8ce9cd
e61c1774f9 [Core] Make consistent BetterNodeFinder findParent and findParentByTypes (#3258)
2022-12-31 23:46:11 +00:00
Tomas Votruba 1ccd0845db Updated Rector to commit eadd54081521c7d426a8d4249157f6239dd2bc8a
eadd540815 [Core] Remove ParentAttributeSourceLocator (#3257)
2022-12-31 10:11:25 +00:00
Tomas Votruba dbb3bb2510 Updated Rector to commit 6bd6b3cc85138b0d2b754175fad616d02cea6b72
6bd6b3cc85 PHP80 string helpers loose comparison (#3246)
2022-12-29 13:26:54 +00:00
Tomas Votruba e8d8146deb Updated Rector to commit 0146fc085ba712bc4d3713ef89bdb06e8e1d959f
0146fc085b bump deps
2022-12-29 12:31:28 +00:00
Tomas Votruba b6297a1113 Updated Rector to commit 384e84a982b8535dc06e49c0ed90b1979029e0e8
384e84a982 refactors Spatie enum method calls to native enums (#3226)
2022-12-28 12:01:35 +00:00
Tomas Votruba 8a89fc1eb2 Updated Rector to commit ac2f8537c1f5b9739baaeeb8228d514b29c6b0b6
ac2f8537c1 [CodeQuality] Handle crash on ReturnTypeFromStrictScalarReturnExprRector on ConditionalTypeForParameter (#3254)
2022-12-25 14:11:20 +00:00
Tomas Votruba f5dcbb18c6 Updated Rector to commit 55c9472f44600ac55e0064ae83e2098539c473f6
55c9472f44 [Privatization] Optimize ParentPropertyLookupGuard, make  parameter required (#3252)
2022-12-25 10:56:01 +00:00
Tomas Votruba dfa8f9c12d Updated Rector to commit 9a0938d8df9d8771d8d423eb4719cd7fe3b1ba0e
9a0938d8df [e2e] handle multiple classes with anonymous class on MultipleClassFileToPsr4ClassesRector file removed (#3253)
2022-12-25 10:55:21 +00:00
Tomas Votruba e440ad7b16 Updated Rector to commit bce8153e31b935df3d259aec1c9a8aa31c82c60a
bce8153e31 [TypeDeclaration] Fix TypedPropertyFromStrictGetterMethodReturnTypeRector for default type (#3251)
2022-12-24 18:17:16 +00:00
Tomas Votruba 3eeb2d2e9f Updated Rector to commit bebea616b351da2dc0d2bc1c56870ccb15a18ca5
bebea616b3 Bump changelog generator (#3250)
2022-12-24 17:23:55 +00:00
Tomas Votruba 5bc89fa73d Rector 0.15.2 2022-12-24 12:55:36 +00:00
Tomas Votruba 5b34b9720c Updated Rector to commit f8814b1d707d72e284870759d1f446848fa003b2
f8814b1d70 [CodeQuality] Remove type addition on CompleteDynamicPropertiesRector (#3248)
2022-12-24 12:53:34 +00:00
Tomas Votruba 374d2f5b25 Updated Rector to commit f8814b1d707d72e284870759d1f446848fa003b2
f8814b1d70 [CodeQuality] Remove type addition on CompleteDynamicPropertiesRector (#3248)
2022-12-24 08:30:16 +00:00
Tomas Votruba 5003a01d69 Updated Rector to commit e920ade7b67a17dbf7e6129585a3261f1fd1540e
e920ade7b6 Fix typo (#3247)
2022-12-23 18:05:16 +00:00
Tomas Votruba f233f27e7d Updated Rector to commit ab3ad293122bafa96d9e8fc64ac15f0220aa9ecc
ab3ad29312 cleanup phpstan
2022-12-23 17:23:46 +00:00
Tomas Votruba 727b9f46f0 Updated Rector to commit bfa1891c50677b01136a9308fd3c3ecc12e267d9
bfa1891c50 [cleanup] Remove 73 unused public methods (#3245)
2022-12-23 17:10:25 +00:00
Tomas Votruba 680ba23c17 Updated Rector to commit 88629427917b7d359beeb1a0b34d39d2127472b9
8862942791 [CodingStyle] Skip EncapsedStringsToSprintfRector on heredoc (#3242)
2022-12-23 08:45:28 +00:00
Tomas Votruba e4dc6018da Updated Rector to commit 3c168f03d38bb967a5e65e453f82adf120ef4eba
3c168f03d3 [CodingStyle] Skip new line /\r\n|\r|\n/i on ConsistentPregDelimiterRector (#3241)
2022-12-22 21:24:01 +00:00
Tomas Votruba 96d8a22628 Updated Rector to commit 70fea54e77ffd186e41540d2b36c5362b073fbc4
70fea54e77 [DeadCode] Add TargetRemoveClassMethodRector (#3240)
2022-12-22 17:06:53 +00:00
Tomas Votruba d72c810c78 Updated Rector to commit c78e255cf9cb17cedead84ff8a54f421f563942d
c78e255cf9 Fix @return docblock on IfManipulator (#3239)
2022-12-22 16:53:25 +00:00
Tomas Votruba 1013215a6c Updated Rector to commit ea223437f27820fa43a96bf17839d7d1b88417d1
ea223437f2 [Php81] Skip ReadOnlyPropertyRector on read only class (#3236)
2022-12-22 14:22:43 +00:00
Tomas Votruba 14c48f409f Updated Rector to commit 72f57a16cbc27099ca0d9a81d43063ebcca6b840
72f57a16cb [Strict] Fix warning configurable rector rules on BooleanInTernaryOperatorRuleFixerRector (#3237)
2022-12-22 14:21:31 +00:00
Tomas Votruba 67958340fd Updated Rector to commit 7f8f9f818e7abf6e55a10648440d4079b4f5803f
7f8f9f818e [Core] Improve performance on AstResolver and ClassLikeAstResolver (#3234)
2022-12-22 11:35:32 +00:00
Tomas Votruba efb1e95fb5 Updated Rector to commit 84faf2905518aad5fb97caf613517f8a50827867
84faf29055 Update generate-changelog command to use objects, add simple filtering (#3232)
2022-12-21 17:45:30 +00:00
Tomas Votruba fd9f761fe2 Updated Rector to commit 84faf2905518aad5fb97caf613517f8a50827867
84faf29055 Update generate-changelog command to use objects, add simple filtering (#3232)
2022-12-21 15:27:32 +00:00
Tomas Votruba e470fd1061 Updated Rector to commit 84faf2905518aad5fb97caf613517f8a50827867
84faf29055 Update generate-changelog command to use objects, add simple filtering (#3232)
2022-12-21 15:18:30 +00:00
Tomas Votruba ebb02bd9e8 Updated Rector to commit 84faf2905518aad5fb97caf613517f8a50827867
84faf29055 Update generate-changelog command to use objects, add simple filtering (#3232)
2022-12-21 13:17:32 +00:00
Tomas Votruba a5afc7b66c Updated Rector to commit 432d3e46a296babeea02c1e9d6633079011a303e
432d3e46a2 [NodeTraverser] Use NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN instead of NodeTraverser::DONT_TRAVERSE__CHILDREN (#3233)
2022-12-21 13:01:53 +00:00
Tomas Votruba f4f085ed27 Updated Rector to commit f13207737e25fef30190c1746a314b7e1dec6eb2
f13207737e [CodingStyle] Add NullifyUnionNullableRector (#3231)
2022-12-21 11:07:20 +00:00
Tomas Votruba 705057ef68 Updated Rector to commit b1fff57b7bdd56bff43211412483d6c33880533b
b1fff57b7b [Core] Make consistent only setAnalysedFiles() from PHPStan NodeScopeResolver in both parallel and non-parallel for .php files (#3221)
2022-12-21 09:35:27 +00:00
Tomas Votruba d640953d4e Updated Rector to commit c80cd6f1f03f6f4e1b1aee6504126699e6a06fe3
c80cd6f1f0 [TypeCoverage] Add EmptyOnNullableObjectToInstanceOfRector (#3230)
2022-12-21 08:01:21 +00:00
Tomas Votruba 6025307990 Updated Rector to commit c80cd6f1f03f6f4e1b1aee6504126699e6a06fe3
c80cd6f1f0 [TypeCoverage] Add EmptyOnNullableObjectToInstanceOfRector (#3230)
2022-12-20 21:37:46 +00:00
Tomas Votruba 13fa9d478f Updated Rector to commit 394fa70c963bb059acd6aae4b998173bdfc6c80c
394fa70c96 [TypeDeclaration] Add FalseReturnClassMethodToNullableRector (#3229)
2022-12-20 20:40:25 +00:00
Tomas Votruba 856f8421c0 Updated Rector to commit cf2805b27271b3c2340436f2db13edab5a49b339
cf2805b272 [TypeDeclaration] Skip optional yield on AddReturnTypeDeclarationFromYieldsRector (#3228)
2022-12-20 18:14:53 +00:00
Tomas Votruba 3f73a89cd7 Updated Rector to commit 25ccfe16df37697af6cbaeef8eca84c5f05048fa
25ccfe16df [TypeDeclaration] Skip yield return on AddClosureReturnTypeRector (#3227)
2022-12-20 17:45:58 +00:00
Tomas Votruba a126aac35f Updated Rector to commit bb8dedd178dd26c4b8d2653e9f97dae6da01c950
bb8dedd178 [CodeQuality][TypeDeclaration] Handle default value from constructor removed on InlineConstructorDefaultToPropertyRector+TypedPropertyFromStrictConstructorRector (#3225)
2022-12-20 17:24:54 +00:00
Tomas Votruba 2adf37a5b5 Updated Rector to commit 36fcdc14e0828486c7a7a3ce8df723d712aeb2d7
36fcdc14e0 [CodeQuality] Add empty() check to FlipTypeControlToUseExclusiveTypeRector (#3224)
2022-12-20 14:53:37 +00:00
Tomas Votruba 7cf552fc44 Updated Rector to commit 980dc83d2f4e2853658562fb86c1dc31ef182c21
980dc83d2f [parallel] Improve performance: Run RemovedAndAddeedFileProcessor after loop (#3219)
2022-12-19 13:55:11 +00:00
Tomas Votruba 24dfd08e91 Updated Rector to commit 980dc83d2f4e2853658562fb86c1dc31ef182c21
980dc83d2f [parallel] Improve performance: Run RemovedAndAddeedFileProcessor after loop (#3219)
2022-12-19 11:24:08 +00:00
Tomas Votruba 37344332a6 Updated Rector to commit 2624b4980d9fca8d497fb012828b7201909c21e4
2624b4980d [Parallel] Fix missing process RemovedAndAddedFilesProcessor->run() on parallel process on WorkerRunner (#3218)
2022-12-19 11:11:17 +00:00
Tomas Votruba d98c9e5750 Updated Rector to commit 8354587b777450cb9f2e3bd48cf750d81b78cf05
8354587b77 [Core] Remove deprecated ContainerConfigurator warning since RectorConfig available since 0.12 (#3217)
2022-12-18 16:29:44 +00:00
Tomas Votruba 86550a9ea2 Updated Rector to commit 8354587b777450cb9f2e3bd48cf750d81b78cf05
8354587b77 [Core] Remove deprecated ContainerConfigurator warning since RectorConfig available since 0.12 (#3217)
2022-12-18 16:22:29 +00:00
Tomas Votruba cc9debaefb Updated Rector to commit 135483f78fb5d4191190453b762906097024aa98
135483f78f [Privatization] Skip used by heredoc on ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3216)
2022-12-18 16:21:48 +00:00
Tomas Votruba e1a1e9af63 Updated Rector to commit e35497e40a8f71ef8c602759922457289d06821a
e35497e40a [Php81] Allow explicit mixed processed on trait on NullToStrictStringFuncCallArgRector (#3212)
2022-12-17 14:48:31 +00:00
Tomas Votruba a53b9ef444 Updated Rector to commit dfad0c3a53d7ee62aa0ea6e6feede26ada741c58
dfad0c3a53 RenameClassRector with callback support (#3023)
2022-12-17 14:41:49 +00:00
Tomas Votruba 1767bf4e17 Updated Rector to commit b090cedeb5249554f17d811abc61234741d7c207
b090cedeb5 Bump to phpstan ^1.9.4 (#3214)
2022-12-17 14:40:06 +00:00
Tomas Votruba 311e5c0c0c Updated Rector to commit e895bceed66b12ddc80fcf90314ac576ae9efe4f
e895bceed6 [Core] Improve performance: remove repetitive currentFileProvider->setFile() call on PhpFileProcessor (#3213)
2022-12-17 13:44:41 +00:00
Tomas Votruba 33551cbeec Updated Rector to commit 21c9e59aaaae15e1baac98b80b6d3e3be5c5d88d
21c9e59aaa Adapt PrivateConstantToSelfRector to work on non-final classes, too (#3198)
2022-12-17 08:33:16 +00:00
Tomas Votruba c9d5c64791 Updated Rector to commit 14e60b06039ff4af2e8d4670390fdcf8c66f5cbe
14e60b0603 [Php71] Skip defer() function on RemoveExtraParametersRector (#3211)
2022-12-17 08:32:50 +00:00
Tomas Votruba baf8af4c9b Updated Rector to commit 7d5d1ce55264aec6d17b3c7013802103c813c0a3
7d5d1ce552 [Core] Performance improvement: Remove unnecessary re-call FileFactory::createFileInfosFromPaths() (#3210)
2022-12-17 08:32:10 +00:00
Tomas Votruba eaa58f2721 Updated Rector to commit f2e4da5e7f836d1618ece81f646cfe11ea4ac561
f2e4da5e7f [Naming] Skip Doctrine collection with @var Collection<int, Checkbox> on RenamePropertyToMatchTypeRector (#3209)
2022-12-16 18:45:47 +00:00
Tomas Votruba 2b660785e9 Updated Rector to commit 5a4111e518e866379e5cdce1d9b3b282dfccaa3d
5a4111e518 Bump composer dependencies (#3208)
2022-12-16 14:30:13 +00:00
Tomas Votruba 4fefacce80 Updated Rector to commit ee4050a5250045ad14cee2982d49daca1367250b
ee4050a525 Compatibility with BetterReflection 6.x on ClassFromEnumFactory (take 2) (#3207)
2022-12-16 12:43:56 +00:00
Tomas Votruba addbe36147 Updated Rector to commit bf9d5ab5056bb08317308707c035a45b5b658ea7
bf9d5ab505 Update to phpdoc-parser 1.5.2 (#3205)
2022-12-16 10:54:11 +00:00
Tomas Votruba 6544cfc63c Updated Rector to commit dec1dddede5713915f90b41f932ebbaaf0996a5a
dec1dddede [Privatization] Do not remove comment on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#3204)
2022-12-16 00:43:16 +00:00
Tomas Votruba 6f77572e6a Updated Rector to commit 79a4c3a8c020f5a254a81838998040b62c76f17b
79a4c3a8c0 Fix wrong reference to replacement rule (#3203)
2022-12-15 14:32:45 +00:00
Tomas Votruba b607ae2a53 Updated Rector to commit 0d6234b584f14d25e02c8c97afac7f6374aa306c
0d6234b584 [DeadCode] Skip standalone @return false or true on RemoveUselessReturnTagRector (#3202)
2022-12-15 14:08:31 +00:00
Tomas Votruba 5b79ce9485 Updated Rector to commit 40f6d194e78026978fa5af3a0be9d209a511c173
40f6d194e7 [PHP 8.1] Add support for values method in SpatieEnumClassToEnumRector (#3196)
2022-12-15 10:18:35 +00:00
Tomas Votruba 41faaad8b8 Updated Rector to commit e71df1ba87d3c0189112b626e0e44880e3b608bf
e71df1ba87 [DeadCode] Skip append array data on RemoveJustPropertyFetchRector (#3201)
2022-12-14 19:45:13 +00:00
Tomas Votruba 812402ce53 Updated Rector to commit be3bdd0c47220e4116fdeae33d69a59133575cc0
be3bdd0c47 [Php82] Handle parent already readonly on ReadOnlyClassRector (#3199)
2022-12-14 19:42:08 +00:00
Tomas Votruba bf5297204f Rector 0.15.1 2022-12-14 15:53:50 +00:00
Tomas Votruba 2458235a46 Updated Rector to commit c21cafaf90cab17ae26900679f70461063ab791e
c21cafaf90 [Php82] Add Utf8DecodeEncodeToMbConvertEncodingRector (#3195)
2022-12-14 11:13:45 +00:00
Tomas Votruba 7c46ba037e Updated Rector to commit c21cafaf90cab17ae26900679f70461063ab791e
c21cafaf90 [Php82] Add Utf8DecodeEncodeToMbConvertEncodingRector (#3195)
2022-12-14 10:07:44 +00:00
Tomas Votruba a6cbd606d0 Updated Rector to commit f20fd6e9daf997a2116f34a305d2c9afa72d393a
f20fd6e9da Bump phpdoc-parser to 1.15.0 (#3194)
2022-12-13 15:54:47 +00:00
Tomas Votruba 12fbd94766 Updated Rector to commit 30bc9ac21ab0e2acbd617954ed6358557514e188
30bc9ac21a [Core] Refactor NodeComparator::areSameNode() to always compare printed node on last (#3193)
2022-12-13 13:56:55 +00:00
Tomas Votruba 04232cb88d Updated Rector to commit d80ddd193deeebd47e765dfb58d300faaedc25b4
d80ddd193d [CodeQuality] Handle possible crash on ParametersAcceptorSelector::selectSingle() on OptionalParametersAfterRequiredRector (#3192)
2022-12-13 12:09:37 +00:00
Tomas Votruba d2059134fe Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
de008767d9 Replace static with self for private constants (#3178)
2022-12-13 07:34:24 +00:00
Tomas Votruba 5a40891bc0 Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
de008767d9 Replace static with self for private constants (#3178)
2022-12-12 14:06:38 +00:00
Tomas Votruba 7924f6944c Updated Rector to commit de008767d91ad6cd5ed77bdc259454665e4bbde9
de008767d9 Replace static with self for private constants (#3178)
2022-12-12 12:29:16 +00:00
Tomas Votruba 5c3e98d25a Updated Rector to commit bea2e12a6d6e7a7b1eb1f7b6f82a0ec1e7c21f2c
bea2e12a6d [Privatization][TypeDeclaration] Skip inside class with @final docblock on PrivatizeFinalClassMethodRector and AddVoidReturnTypeWhereNoReturnRector (#3190)
2022-12-12 08:02:46 +00:00
Tomas Votruba 26753f8f8b Updated Rector to commit 96c457badfd0c198a57a758c552ec82aee0049de
96c457badf Fix RenamePropertyToMatchTypeRector for non-docblocks properties (#3189)
2022-12-11 17:49:34 +00:00
Tomas Votruba fd21735258 Updated Rector to commit 809467ed2ddb362ad833142177d3148cfaf368bc
809467ed2d Fix no return in ChangeSwitchToMatchRector (#3188)
2022-12-11 16:30:49 +00:00
Tomas Votruba aec87d7b85 Updated Rector to commit 4a03eb97153dd3d3868d90feeb0a269f3be754e6
4a03eb9715 [DeadCode] Skip expr as MethodCall or StaticCall from ClassMethod @return string docblock on RecastingRemovalRector (#3187)
2022-12-11 16:22:41 +00:00
Tomas Votruba 84c989ec89 Updated Rector to commit 8bf7073f83f1758013cdecc804075ddce316f0f5
8bf7073f83 [Php81] Skip const Fetch non static method on FirstClassCallableRector (#3183)
2022-12-11 15:49:39 +00:00
Tomas Votruba 38a6f76199 Updated Rector to commit 8bf7073f83f1758013cdecc804075ddce316f0f5
8bf7073f83 [Php81] Skip const Fetch non static method on FirstClassCallableRector (#3183)
2022-12-11 15:37:59 +00:00
Tomas Votruba 6c239a0299 Updated Rector to commit 5ccf468c144112121d0ab7933430a796d82ef8a2
5ccf468c14 [Privatization] Use PropertyManipulator::isUsedByTrait() on ParentPropertyLookupGuard for PrivatizeFinalClassPropertyRector (#3185)
2022-12-11 10:36:44 +00:00
Tomas Votruba e288bdf650 Updated Rector to commit 802d98e8c6cb0b29c731e2238160b860b33be13c
802d98e8c6 [Php72] Handle crash on trailing comma last on WhileEachToForeachRector (#3186)
2022-12-11 10:32:24 +00:00
Tomas Votruba c529321b60 Updated Rector to commit e4791145fc9ec5709183c9af173f33e780109fb6
e4791145fc [Php81] Allow normal variable in trait on NullToStrictStringFuncCallArgRector (#3181)
2022-12-10 15:34:03 +00:00
Tomas Votruba 43883a9642 Updated Rector to commit e1f7637ca3a2fd4064053f1d70179acd064ed2a6
e1f7637ca3 Fix trait property visibility in PrivatizeFinalClassPropertyRector (#3182)
2022-12-10 15:03:24 +00:00
Tomas Votruba 7cccf103fd Updated Rector to commit 91f4caeba4b8fbaeb8928fcd1f9d526b076154f5
91f4caeba4 [PHP 8.1] Skip trait in NullToStrictStringFuncCallArgRector as unknown context (#3180)
2022-12-10 12:49:18 +00:00
Tomas Votruba c4151416ec Updated Rector to commit 44ebacea719f64590b4644081e862437be7ce466
44ebacea71 [Php80] Do not remove Parameter attribute on ClassPropertyAssignToConstructorPromotionRector (#3179)
2022-12-10 11:57:52 +00:00
Tomas Votruba 7d6c5d58c3 Updated Rector to commit b23e1fb2ea7795a7f7bb3f6232e4fa82aa26b199
b23e1fb2ea [DeadCode] Skip Class Constant used in Enum on RemoveUnusedPrivateCla… (#3174)
2022-12-09 21:47:53 +00:00
Tomas Votruba bf6dd6454a Updated Rector to commit 4ba03abd12be377a7227ace643c670daec31246f
4ba03abd12 [CodeQuality][CodingStyle] Handle crash on SimplifyIfReturnBoolRector+NewlineAfterStatementRector+StringClassNameToClassConstantRector (#3175)
2022-12-09 20:05:20 +00:00
Tomas Votruba f63eee898e Updated Rector to commit 863fee39147717a4f85c42eacaec28fe6971ac52
863fee3914 [PHPStanStaticTypeMapper] Handle Nullable Type on UnionType on UnionTypeMapper when possible (#3173)
2022-12-09 11:23:23 +00:00
Tomas Votruba 4bc9094047 Updated Rector to commit bbd9d4fa2c6811c9c68984549d2c0dfb68232219
bbd9d4fa2c [CodeQuality] Skip non typed property no default value never assigned on SimplifyEmptyCheckOnEmptyArrayRector (#3171)
2022-12-08 21:31:19 +00:00
Tomas Votruba 7e4cd5dfba Updated Rector to commit bbd9d4fa2c6811c9c68984549d2c0dfb68232219
bbd9d4fa2c [CodeQuality] Skip non typed property no default value never assigned on SimplifyEmptyCheckOnEmptyArrayRector (#3171)
2022-12-08 10:16:49 +00:00
Tomas Votruba 6cbbfd0d97 Updated Rector to commit 2848e0d0cc5b819ba90fb1393ee2607b9eac555d
2848e0d0cc [Core] Use FullyQualifiedObjectType and ThisType detection for local property fetch on PropertyFetchAnalyzer (#3172)
2022-12-08 10:12:10 +00:00
Tomas Votruba 0a53c32d58 Updated Rector to commit f8ad265fa5e4c58a4d0e973a73cac2c4e1efcb3f
f8ad265fa5 [CodeQuality] Handle BooleanNot on SimplifyEmptyCheckOnEmptyArrayRector (#3170)
2022-12-07 23:23:54 +00:00
Tomas Votruba 653c1c8d93 Updated Rector to commit 84b54c0949ae4d0b642899b12f15a6cd53f7554a
84b54c0949 [Php82] Skip ReadOnlyClassRector on has parent non-readonly class (#3169)
2022-12-07 17:34:36 +00:00
Tomas Votruba e381b4574f Updated Rector to commit 99ac0029803859361b510f46cf13bb88153367ee
99ac002980 [TypeDeclaration] Skip void return on AddArrowFunctionReturnTypeRector (#3167)
2022-12-07 17:13:54 +00:00
Tomas Votruba 50000ad3ec Updated Rector to commit b8aff0861788200f2e098191118d1e5e8948a242
b8aff08617 Do not apply property promotion to parameters with the SensitiveParameter attribute (#3165)
2022-12-07 15:32:15 +00:00
Tomas Votruba 4397f883bd Updated Rector to commit 7636b888661966e3679770d868481cd02e31517f
7636b88866 [CodeQuality] Skip stdClass in IssetOnPropertyObjectToPropertyExistsRector, as always nested (#3166)
2022-12-07 15:29:56 +00:00
Tomas Votruba 37d402dcce Updated Rector to commit 045ada5f68b80eeea5edadb202d621007f7baf90
045ada5f68 [TypeDeclaration] Skip multi return types on ReturnTypeFromReturnDirectArrayRector (#3164)
2022-12-07 15:27:26 +00:00
Tomas Votruba b2e081777a Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-07 13:37:40 +00:00
Tomas Votruba e1dd377fd8 Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 19:32:35 +00:00
Tomas Votruba 3748da8b80 Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 18:18:33 +00:00
Tomas Votruba bd0997346d Updated Rector to commit f35326d7010fa42458b44d3896b4791dcc22f78a
f35326d701 [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
2022-12-06 16:54:58 +00:00
Tomas Votruba 639da95550 Updated Rector to commit 44c95d4157d8b3d2db32e9c352c0202064ad0a40
44c95d4157 Add skipped Rectors to list-rules (#3162)
2022-12-06 13:36:55 +00:00
Tomas Votruba 7bd500a158 Updated Rector to commit d3abaa1d05318488f8c1f401fc46a9e48b056d4f
d3abaa1d05 [TypeDeclaration] Handle Anonymous class extends existing class in union (#3161)
2022-12-06 13:12:41 +00:00
Tomas Votruba 80576040f6 Updated Rector to commit 91ebee8f0771ec3dbfbb1108e996ecf2351e6e9a
91ebee8f07 [TypeDeclaration] Skip union mixed on TypedPropertyFromAssignsRector (#3160)
2022-12-06 10:28:55 +00:00
Tomas Votruba 228e63ca2e Updated Rector to commit 001fb3fe9252b8f03705caf5bd288a513834a8a8
001fb3fe92 [CodingStyle] Split SplitGroupedConstantsAndPropertiesRector to SplitGroupedClassConstantsRector and SplitGroupedPropertiesRector (#3158)
2022-12-05 15:46:09 +00:00
Tomas Votruba 32c2bc3f13 Updated Rector to commit 3149ea4ebb6e3ec324ebb0e9e58db0fef7e2a9a8
3149ea4ebb revert previous misscommit
2022-12-05 15:07:35 +00:00
Tomas Votruba 021d5852a6 Updated Rector to commit 3149ea4ebb6e3ec324ebb0e9e58db0fef7e2a9a8
3149ea4ebb revert previous misscommit
2022-12-05 13:47:32 +00:00
Tomas Votruba a3ac4e57af Updated Rector to commit 3149ea4ebb6e3ec324ebb0e9e58db0fef7e2a9a8
3149ea4ebb revert previous misscommit
2022-12-05 13:28:47 +00:00
Tomas Votruba 84ab546ff7 Updated Rector to commit b56440ac4b137539230a3e907c36f1705c7ed5f4
b56440ac4b allow compatible phpdoc-parser (#3157)
2022-12-05 13:25:12 +00:00
Tomas Votruba b12a622f23 Updated Rector to commit 3f1a285063f1c40d4c1a2bcdfc7d622ed63d5db6
3f1a285063 [Core] Fix crash indentation on indent(\t, 1) config (#3155)
2022-12-05 11:04:26 +00:00
Tomas Votruba 62c3ac9363 Updated Rector to commit f4ff24c16110daa22312f443fd25e88060e17123
f4ff24c161 Skip short class names in UseClassKeywordForClassNameResolutionRector (#3156)
2022-12-05 11:03:13 +00:00
Tomas Votruba fbfbe499d0 Rector 0.15.0 2022-12-04 22:40:18 +00:00