Commit Graph

3843 Commits

Author SHA1 Message Date
Tomas Votruba
3847b0c3b5 Updated Rector to commit d2ae72e1fe616bb5c2d98c497a59991cfb5cca55
d2ae72e1fe Remove NEXT_NODE from IfToSpaceshipRector (#3860)
2023-05-16 12:50:39 +00:00
Tomas Votruba
ddec6bfaa0 Updated Rector to commit c0a042c3b68eb657d7e525ae2c2648d0ec96fb19
c0a042c3b6 Drop AttributeKey::SCOPE in MagicPropertyFetchAnalyzer (#3868)
2023-05-16 10:36:59 +00:00
Tomas Votruba
1c94a7b40a Updated Rector to commit ef257221acece7d2ea66c292fceb2718c87e0b53
ef257221ac Make check more explicit (#3869)
2023-05-16 10:30:50 +00:00
Tomas Votruba
0b0fda9095 Updated Rector to commit 99bdd27c00f0a27620f75eeeedc36bb3d505456b
99bdd27c00 [CodeQuality] Remove next attribute usage on SimplifyIfNullableReturnRector (#3866)
2023-05-16 05:46:08 +00:00
Tomas Votruba
1c829c24c3 Updated Rector to commit 5d78e95c82dc59cd66919b703193d0978d01b902
5d78e95c82 Fix phpunit error on rector/rector:dev-main due to container cache (#3865)
2023-05-16 04:29:24 +00:00
Tomas Votruba
9ae4a949d6 Updated Rector to commit cc3354aa8e764fd028f5de5ac1fb76e9304bdbbd
cc3354aa8e [Parser] Remove next attribute usage on InlineCodeParser (#3864)
2023-05-15 17:50:04 +00:00
Tomas Votruba
bd630a0db2 Updated Rector to commit 3bdd519e03e957461a48105820c20b35706f036e
3bdd519e03 Dump dependency container and re-use it - 35% faster test-suite (#3809)
2023-05-15 15:58:52 +00:00
Tomas Votruba
86d7e3ad58 Updated Rector to commit 6156458ef43b1961a0ded5df85ca3fa4c35686e9
6156458ef4 Drop AttributeKey::SCOPE in AssignAndBinaryMap (#3861)
2023-05-15 15:05:45 +00:00
Tomas Votruba
1b8d2812ef Updated Rector to commit c8f697b16d888505c2bfbbcaba1665402091159b
c8f697b16d Remove ToStringToMethodCallRector as not practical and only for demo, FalseReturnClassMethodToNullableRector, as requires detailed custom refactoring (#3854)
2023-05-15 13:05:02 +00:00
Tomas Votruba
73738c0fb1 Updated Rector to commit 3df70bdd234efe4c6f49607df5378fb150b111e7
3df70bdd23 Remove NEXT_NODE from RemoveDuplicatedIfReturnRector (#3858)
2023-05-15 13:00:55 +00:00
Tomas Votruba
1e7e201657 Updated Rector to commit 7a86ac22a0535b75f9e525776a315777029d7bdb
7a86ac22a0 [Privatization] Remove parent attribute set on ClassConstantFactory::createFromProperty() (#3859)
2023-05-15 12:47:34 +00:00
Tomas Votruba
8dce3beed1 Updated Rector to commit c4bab4a7778e11715d720391c5daaa7a89e975ce
c4bab4a777 Remove next from ExplicitBoolCompareRector (#3857)
2023-05-15 12:33:28 +00:00
Tomas Votruba
dca2603280 Updated Rector to commit f5d809ca431215d512bb0ba3894bab4543afb396
f5d809ca43 [CodingStyle] Remove AddFalseDefaultToBoolPropertyRector, as works with unrelaible docblocks (#3856)
2023-05-15 12:19:44 +00:00
Tomas Votruba
89439d883f Updated Rector to commit 95b1789a871adeb6b6555949d3cf32b0b4060613
95b1789a87 Drop AttributeKey::SCOPE in ArrayCallableMethodMatcher (#3835)
2023-05-15 08:51:25 +00:00
Tomas Votruba
4fa709b27b Updated Rector to commit 05c4367a51af6f0d4c56a9ab466aa32a873acc83
05c4367a51 [Printer] Reduce parent attribute usage on BetterStandardPrinter on print ArrowFunction comment (#3855)
2023-05-15 08:40:30 +00:00
Tomas Votruba
7b0f60a033 Updated Rector to commit c24338f5dc0d5ea2469f5078692b6e017f2c3641
c24338f5dc [DX] Add oustide any set to help detecting rules that could be part of some set (#3853)
2023-05-14 23:36:37 +00:00
Tomas Votruba
281f59d306 Updated Rector to commit 7f49261e293df93ac9a81dd49e59ad4abed9ed41
7f49261e29 Make ReturnNeverTypeRector work with type declaration, add it to PHP 8.1 set (#3852)
2023-05-14 22:40:25 +00:00
Tomas Votruba
9496663b9b Updated Rector to commit 7a32610a70a03adf6824fec5f055a63b6355f56b
7a32610a70 [Util] Introduce FileHasher (#3833)
2023-05-14 18:24:01 +00:00
Tomas Votruba
270692ae54 Updated Rector to commit 0a7be603fcc467ac3956081bf83db9c0d5350eee
0a7be603fc Remove MakeTypedPropertyNullableIfCheckedRector as old fix of TypedPropertyRector rule, removed months ago (#3851)
2023-05-14 16:14:48 +00:00
Tomas Votruba
a8cb615a7e Updated Rector to commit 7935b2a3c2371e0d9e18ad2b683ac3b53b64d950
7935b2a3c2 Remove MissingClassConstantReferenceToStringRector niche rule that was added just for example sake (#3850)
2023-05-14 16:09:04 +00:00
Tomas Votruba
e02a2a45af Updated Rector to commit 33e59eeadf3da67db8dcdebfc8bef3701a17592a
33e59eeadf Remove UpdateFileNameByClassNameFileSystemRector niche rule that was added just for example sake (#3849)
2023-05-14 16:07:53 +00:00
Tomas Votruba
18b46b9b72 Updated Rector to commit 656836093ea0abd96860af062fdf6f67afe1f504
656836093e [CodeQuality] Deprecate NarrowUnionTypeDocRector as focused on docblocks, and moving to type declarations (#3848)
2023-05-14 15:57:29 +00:00
Tomas Votruba
83531b9b9d Updated Rector to commit 4ac2cf87c569ec8ebea4d631d684439c16dd296d
4ac2cf87c5 [Restoration] Remove RemoveFinalFromEntityRector as used only to revert very old Rector bug (#3847)
2023-05-14 15:50:50 +00:00
Tomas Votruba
98e78b2b7c Updated Rector to commit ec61753f20dbabd4b4b350f9d7a994ac61315e82
ec61753f20 [PHP 8.0] Deprecate old UnionTypesRector that is dangerously moving docblocks, use type declaration rules instead (#3846)
2023-05-14 15:41:53 +00:00
Tomas Votruba
535f180737 Updated Rector to commit 37f0942c0976630ce9479c7499099a67d1f07bc4
37f0942c09 cs fix
2023-05-14 15:29:04 +00:00
Tomas Votruba
f844a1b873 Updated Rector to commit 8be7ac6830f0f7191af7118814c779da3ebd9b56
8be7ac6830 Remove unused offset correction (#3843)
2023-05-14 15:14:10 +00:00
Tomas Votruba
5d75a302b5 Updated Rector to commit f554fe1a836dc1b7015cda99e7e71f5dbe46d731
f554fe1a83 Fix nullable param in ClassPropertyAssignToConstructorPromotionRector (#3842)
2023-05-14 15:10:59 +00:00
Tomas Votruba
29b68cfe1e Updated Rector to commit 25d01632e1b6a3fd0b1b1e86c232079118828983
25d01632e1 Remove unused narrowArrayKeysUnionType() patch for PHPStan types (#3840)
2023-05-14 14:05:31 +00:00
Tomas Votruba
1c17924ff5 Updated Rector to commit f3b6bfa35f7509815cbc6f40473c1698d82f9a21
f3b6bfa35f Workaround fix for missing newline in attributes in ReadOnlyClassRector (#3839)
2023-05-14 13:52:56 +00:00
Tomas Votruba
33a05b3e73 Updated Rector to commit 07a7876d8a4c93097c966730acbc4aeb7d9e1765
07a7876d8a [CodingStyle] Remove OrderAttributesRector, as rather coding standard and does not have specific PSR example (#3838)
2023-05-14 13:22:44 +00:00
Tomas Votruba
b381887836 Updated Rector to commit ad7012054f92137311b202c0322a62dd480fe3bb
ad7012054f [Traverser] Add ScopeResolverNodeVisitorInterface (#3831)
2023-05-14 10:54:13 +00:00
Tomas Votruba
f613b7a98a Updated Rector to commit 499fdbc3af1779929444c170a778678e28be957a
499fdbc3af Drop AttributeKey::SCOPE in various classes (#3836)
2023-05-14 10:01:33 +00:00
Tomas Votruba
1c529e1b8f Updated Rector to commit 6482c594e4b554a814165d11baeece9498868caa
6482c594e4 Update test expectations (#3837)
2023-05-14 09:35:45 +00:00
Tomas Votruba
aceca9ea6e Updated Rector to commit 6322d7c7c5bf262524b254cb329644cd051f94b2
6322d7c7c5 [automated] Re-Generate Nodes/Rectors Documentation (#3832)
2023-05-14 00:32:54 +00:00
Tomas Votruba
6a4afec13c Updated Rector to commit 7b3612414201f08bb451d15ea3e1b94e4b61a0a8
7b36124142 Fix ChangeReadOnlyVariableWithDefaultValueToConstantRector for dupicated variable override (#3830)
2023-05-14 00:09:02 +00:00
Tomas Votruba
2ef8a4b237 Updated Rector to commit 39ae81f5b6477247c4345d8496ef368ff359aaa2
39ae81f5b6 Fix instanceof check (#3829)
2023-05-13 20:26:08 +00:00
Tomas Votruba
0ec9edd835 Updated Rector to commit 60cfcfc50f84d28c304bf332acd6268bb9175dc8
60cfcfc50f Remove useless clear cache (#3828)
2023-05-13 19:26:58 +00:00
Tomas Votruba
f59444dfd6 Updated Rector to commit 9c74d611dc8567de47658624f6f0d0d4792f21ee
9c74d611dc [Core] Change ChangedNodeScopeRefresher modifier to private on AbstractRector (#3827)
2023-05-13 18:59:47 +00:00
Tomas Votruba
722cf05380 Updated Rector to commit 2406dc813a3eba3e25522fcb69af879fbc4a60cd
2406dc813a [Traverser] Add ByRefReturnNodeVisitor (#3826)
2023-05-13 18:07:42 +00:00
Tomas Votruba
6eead6b8f7 Updated Rector to commit a74c640bc1043f19006c7403461108f61d8bf2a5
a74c640bc1 [Traverser] Add ByRefVariableNodeVisitor (#3821)
2023-05-13 17:37:31 +00:00
Tomas Votruba
c27fd387f2 Updated Rector to commit 623a0770e9f64738b6e88eb02691fc954b1e230b
623a0770e9 Fix integer range phpdoc types being treated as useless (#3825)
2023-05-13 17:31:00 +00:00
Tomas Votruba
42ce080a7a Updated Rector to commit 156d28cc16a35822d6739d8c5337efa6fddda1dc
156d28cc16 Remove unused PregMatchTypeCorrector, the 3rd param in preg_match_* is now handled natively by PHPStan (#3824)
2023-05-13 17:27:05 +00:00
Tomas Votruba
da149bb5b0 Updated Rector to commit 645071a650fc50d7e084378facaebcc868a52ba1
645071a650 Add test fixture for sprintf number + make use of getArgs() to get always an Arg type (#3822)
2023-05-13 17:20:02 +00:00
Tomas Votruba
900facbf32 Updated Rector to commit 6dea82deb1e64a47c0284a86b1b448dc8b1fc05f
6dea82deb1 Drop AttributeKey::SCOPE in Rector classes (#3791)
2023-05-13 16:50:14 +00:00
Tomas Votruba
af39f1cc41 Updated Rector to commit 56e13466c3ba3c23c0eb5e7e3af6908433c0c6af
56e13466c3 [CI] Enable zend.assertions=1 on CI (#3823)
2023-05-13 16:44:37 +00:00
Tomas Votruba
c8378bb7c9 Updated Rector to commit ed494161ee091037ea7cb791e569abb1bf2ff990
ed494161ee Drop AttributeKey::SCOPE in ClassRenamer (#3806)
2023-05-13 13:41:02 +00:00
Tomas Votruba
059ea469aa Updated Rector to commit 3f8cc390d07486978300abe3dea9f36eeb017c5a
3f8cc390d0 Define default test-suite (#3819)
2023-05-13 11:56:22 +00:00
Tomas Votruba
cd43839d2e Updated Rector to commit 1828db5f0f3b8424ac0183a5672f58c6689d3233
1828db5f0f [Traverser] Add StaticVariableNodeVisitor (#3817)
2023-05-13 10:37:59 +00:00
Tomas Votruba
41a479f910 Updated Rector to commit 0d3a9a263b6649548270dd503b8ac3bb0df107c4
0d3a9a263b [Traverser] Add GlobalVariableNodeVisitor (#3816)
2023-05-13 10:12:10 +00:00
Tomas Votruba
5249938e50 Updated Rector to commit 849459b441b76b62a57dfe227232b22695a0b4c2
849459b441 [CodingStyle] Refactor CatchExceptionNameMatchingTypeRector to use StmtsAwareInterface (#3788)
2023-05-13 10:10:59 +00:00