5433 Commits

Author SHA1 Message Date
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
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
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
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
f844a1b873 Updated Rector to commit 8be7ac6830f0f7191af7118814c779da3ebd9b56
8be7ac6830 Remove unused offset correction (#3843)
2023-05-14 15:14:10 +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
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
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
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
c8378bb7c9 Updated Rector to commit ed494161ee091037ea7cb791e569abb1bf2ff990
ed494161ee Drop AttributeKey::SCOPE in ClassRenamer (#3806)
2023-05-13 13:41:02 +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
588cf413f9 Updated Rector to commit 55410904edd98b4a243c12b140cfda9ce171f919
55410904ed Prevent unnecessary IO in tests (#3814)
2023-05-12 11:55:32 +00:00
Tomas Votruba
b98616208b Updated Rector to commit 257395af44e623a0f3a8827ebab4c7d9afbeef36
257395af44 [Testing] Remove unnecessary iterator_to_array() on FixtureFileFinder (#3800)
2023-05-11 16:55:10 +00:00
Tomas Votruba
6da6d1d775 Updated Rector to commit 89bc4d80f5dd4c7e81a616c8b58a921a1470a47b
89bc4d80f5 Make use of StmtsAwareInterface (#3781)
2023-05-10 05:18:05 +00:00
Tomas Votruba
bf29cbeb9e Updated Rector to commit 376f6cbd4a51290c63a42d77ac9fc9a3a5d0ab67
376f6cbd4a De-duplicate isAnonymous check (#3782)
2023-05-09 19:13:23 +00:00
Tomas Votruba
7ec53f4a70 Updated Rector to commit e6fd26353fa114ac92ba4b0c9b572f508b850e7f
e6fd26353f Get rid of  in the (#3780)
2023-05-09 16:39:58 +00:00
Tomas Votruba
3f1ac1628e Updated Rector to commit 6655c2c4e3d72d513c38162da5087bbc2df25b83
6655c2c4e3 [PHPStanStaticTypeMapper] Reduce bool check on UnionTypeMapper (#3778)
2023-05-09 07:42:34 +00:00
Tomas Votruba
4bf474e653 Updated Rector to commit be53013ca3dff5b3eca8cdb3e688d744585e2557
be53013ca3 [CodeQuality] Remove SimplifyIfExactValueReturnValueRector, as overly defensive + InlineSimplePropertyAnnotationRector as purely coding standard area (#3764)
2023-05-07 19:35:01 +00:00
Tomas Votruba
da6f698ff7 Updated Rector to commit 14fa8c914b12bfc6a4112d77e03057dab9b90cd4
14fa8c914b Cleanup phpstan errors (#3748)
2023-05-06 22:11:26 +00:00
Tomas Votruba
b61a41bf01 Updated Rector to commit d13351c5b5800fdd9a25f1d8d9198749898ff2f6
d13351c5b5 Apply Rector + coding standard (#3745)
2023-05-06 18:23:35 +00:00
Tomas Votruba
b614e74d5b Updated Rector to commit dab0910a4e43f5ea999abb00bbb29041b2a66882
dab0910a4e Rename  to  (#3742)
2023-05-06 14:58:36 +00:00
Tomas Votruba
ab5dbb3f11 Updated Rector to commit 4c1544d2b44eb7ca65c2af2b034ed54da6b969d3
4c1544d2b4 Rename processFiles to processFile (#3741)
2023-05-06 14:57:55 +00:00
Tomas Votruba
5eeea8840a Updated Rector to commit 4179a87aac262d7f38daf79f8a2f530808d1cf8e
4179a87aac [Caching] Fix dependent files not yet exists on ChangedFilesDetector::cacheFileWithDependencies() (#3736)
2023-05-05 10:24:42 +00:00
Tomas Votruba
1e2a0a6217 Updated Rector to commit 8b48059c347d98d191478504da236c4c2ba1e667
8b48059c34 [NodeTypeResolver] Simplify NodeTypeResolver: remove IdentifierTypeResolver dependency (#3733)
2023-05-05 08:16:16 +00:00
Tomas Votruba
17b11d7934 Updated Rector to commit f6972de10fb2cee85fe3559c58f71b5e9fe4811e
f6972de10f Cache on successful file processing (#3614)
2023-05-01 21:32:35 +00:00
Tomas Votruba
65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba
4a2e921404 Updated Rector to commit c3aca95a7d1281beee8850ae001952760cce6658
c3aca95a7d Calculate diff only once per file after refactoring (#3711)
2023-04-30 02:34:57 +00:00
Tomas Votruba
1089ade96c Updated Rector to commit ed8e74e36b46076d1e4c8920b593b2dd43448049
ed8e74e36b [CodingStyle] Skip positive-int and negative-int over int on VarConstantCommentRector (#3709)
2023-04-29 15:37:29 +00:00
Tomas Votruba
bd3ec63267 Updated Rector to commit 2bb26e36611fdee67ead9fac0b7cc18ead0d923b
2bb26e3661 [PostRector] Improve performance NameImportingPostRector (#3708)
2023-04-29 14:12:48 +00:00
Tomas Votruba
b2bc547d46 Updated Rector to commit 0451834fd58ba9a7fddde47f47a60c4911388738
0451834fd5 [NodeTypeResolver] Improve ParametersAcceptorSelectorVariantsWrapper by directly use ParametersAcceptorSelector::combineAcceptors() (#3706)
2023-04-29 07:20:27 +00:00
Tomas Votruba
6773471488 Updated Rector to commit f19c86c993bb1fe1b487fce587d6582ef9f29a6a
f19c86c993 [NodeTypeResolver] Add AssignedToNodeVisitor (#3694)
2023-04-27 18:21:20 +00:00
Tomas Votruba
62693051ca Updated Rector to commit 31e22ff70699ac52c0cd4faee5b5f42291bb8ccb
31e22ff706 [PHPStanStaticTypeMapper] Improve performance of UnionTypeMapper take 3 (#3690)
2023-04-26 13:34:46 +00:00
Tomas Votruba
0284fe8f94 Updated Rector to commit 931e6e24502a70dd19cd93c0ef10510b23213f87
931e6e2450 [PHPStanStaticTypeMapper] Improve UnionTypeMapper performance take 2 (#3688)
2023-04-26 04:39:15 +00:00
Tomas Votruba
1084c94b7d Updated Rector to commit bd478cc1b2fa2934e980e3d92c97a66ad7b260bd
bd478cc1b2 [PHPStanStaticTypeMapper] Improve UnionTypeMapper performance (#3686)
2023-04-25 21:31:09 +00:00
Tomas Votruba
d4fe88d8f2 Updated Rector to commit 92d38cfba31d2a2811c19dd57810e296a725c91e
92d38cfba3 [TypeDeclaration] Refactor UnionTypeMapper::narrowBoolType() to allow bool|int|false converted to bool|int (#3685)
2023-04-25 21:01:30 +00:00
Tomas Votruba
701d429812 Updated Rector to commit 2efca7308210405e65198d44a7521f84940fdd21
2efca73082 [TypeDeclaration] Handle regression multiple params no longer working on AddMethodCallBasedStrictParamTypeRector (#3681)
2023-04-24 17:11:45 +00:00
Tomas Votruba
6becad5a83 Updated Rector to commit 26bd7485f3168e92e8e4dd7c7d81d816241454bf
26bd7485f3 [Test] Remove PropertyRenameFactoryTest.php (#3679)
2023-04-24 09:28:11 +00:00
Tomas Votruba
8f2079c8ca Updated Rector to commit 10c36b08fa0c980bd31b3059cafa12610852ebdd
10c36b08fa [Test] Rename fixture and refactor to solve random error (#3677)
2023-04-24 03:09:16 +00:00
Tomas Votruba
fea2d9c334 Updated Rector to commit 092fb226b9278a741b26bb9277c159c1be009f21
092fb226b9 [Testing] Reduce IO on AbstractRectorTestCase take 2 (#3671)
2023-04-23 16:02:01 +00:00
Tomas Votruba
73a34b3d2c Updated Rector to commit c6d11cdbd6ee41a8b4e072a8fa76864174164358
c6d11cdbd6 [Testing] Reduce IO on AbstractRectorTestCase::doTestFile() (#3670)
2023-04-23 15:24:02 +00:00