5610 Commits

Author SHA1 Message Date
Tomas Votruba
5204cbee25 Updated Rector to commit 8ff0cdb8fc3126614ff9f039387218b75dc4733d
8ff0cdb8fc [DeadCode] Skip with Else and ElseIf on SimplifyIfNotNullReturnRector (#6365)
2024-10-09 04:03:40 +00:00
Tomas Votruba
40e206a694 Updated Rector to commit f6858b86e32291df09751597abc8164fdd5a81c9
f6858b86e3 [DeadCode] Clean up double private method filtering on RemoveUnusedPrivateMethodRector (#6364)
2024-10-08 12:45:03 +00:00
Tomas Votruba
842acb42c9 Updated Rector to commit a44e8351e20e9ad994cd0ff130575b9c3def45c5
a44e8351e2 [Privatization] Allow privatize protected promoted property on PrivatizeFinalClassPropertyRector (#6360)
2024-10-08 08:58:13 +00:00
Tomas Votruba
91ba9919c7 Updated Rector to commit 4c84d6c8fc7e8e2ceece04be14e196816b0ed99b
4c84d6c8fc [TypeDeclaration] Closure Param Types from Iterator Source (#6345)
2024-10-07 19:57:11 +00:00
Tomas Votruba
68910d28af Updated Rector to commit 8e96b1b9dbd4a5fdf8da8d863aa9e153298d7427
8e96b1b9db [DeadCode] Skip from call with return docblock on ReduceAlwaysFalseIfOrRector (#6361)
2024-10-07 18:58:59 +00:00
Tomas Votruba
782255339e Updated Rector to commit 748330a01994017fded43807745d77366fe3bff9
748330a019 [Php80] Cast string/int for int vs string condition and case condition on ChangeSwitchToMatchRector (#6359)
2024-10-06 12:27:29 +00:00
Tomas Votruba
0e95783298 Updated Rector to commit cff2ed2c163411da65e896f050ebc8c3a5444bd1
cff2ed2c16 [Php70] More delimiter case in the middle fix on EregToPregMatchRector (#6357)
2024-10-05 18:18:41 +00:00
Tomas Votruba
88855ff38b Updated Rector to commit 3d76a1a73bfd7220b23d2beaa5c1e4d94c0fea7b
3d76a1a73b [Php70] Fix delimiter in the middle on EregToPregMatchRector (#6356)
2024-10-05 18:04:52 +00:00
Tomas Votruba
c15442414c Updated Rector to commit c0c7502f55a3884f67a5885ed05ae2443ff53802
c0c7502f55 [DeadCode] Skip indirect next line definition of @var on RemoveNonExistingVarAnnotationRector (#6348)
2024-10-03 08:21:08 +00:00
Tomas Votruba
a3f6293c8b Updated Rector to commit 0c9edebe4e1ca753d5bbe99e5109378155e87dde
0c9edebe4e [TypeDeclaration] Add NativeMethodReflection support on ReturnStrictTypeAnalyzer (#6344)
2024-10-01 13:54:55 +00:00
Tomas Votruba
b555bd2c5e Updated Rector to commit d17d3e814eada2fa3ada3601034407df01d84568
d17d3e814e [TypeDeclaration] Better approach for native type check on ReturnStrictTypeAnalyzer (#6343)
2024-10-01 13:05:02 +00:00
Tomas Votruba
cdbdb1bd14 Updated Rector to commit 697b37b340c3b4c73ad6f8e4cea26b7bf60ddf62
697b37b340 Around PHPStan 1.12.4 handling on ParametersAcceptors with non-native return type (by docblock) (#6341)
2024-10-01 11:13:08 +00:00
Tomas Votruba
b86f33859b Updated Rector to commit a11fc615d18396cef284c18de269711114630676
a11fc615d1 [TypeDeclaration] Remove only void type on ReturnedNodesReturnTypeInfererTypeInferer (#6340)
2024-10-01 09:55:40 +00:00
Tomas Votruba
a5a5200e52 Updated Rector to commit 54a66206986e685787d7e038929618a66e98ec42
54a6620698 [TypeDeclaration] Add isset(), empty(), and negation support on BoolReturnTypeFromBooleanStrictReturnsRector (#6339)
2024-10-01 05:27:50 +00:00
Tomas Votruba
a264d32c28 Updated Rector to commit 319e244ed574585d8de4333b042aa034b81c028d
319e244ed5 [DeadCode] Skip extension load append variable on RemoveAlwaysTrueIfConditionRector (#6332)
2024-09-28 02:53:36 +00:00
Tomas Votruba
3c7157c142 Updated Rector to commit f619d8670e85d0bd2859c475ca31178bc0e02254
f619d8670e Bump to PHPStan 1.12.5 and Fix deprecated ParametersAcceptorSelector::selectSingle() (#6329)
2024-09-26 16:51:04 +00:00
Tomas Votruba
569cb9f7eb Updated Rector to commit e74ecfb6599f75dbd1463a6ac0b43d99c6dad466
e74ecfb659 [TypeDeclaration] Handle crash on func call not found on BoolReturnTypeFromBooleanStrictReturnsRector (#6327)
2024-09-26 08:25:20 +00:00
Tomas Votruba
5095dcdca5 Updated Rector to commit 398b04db9fe8df75fd3b9d32805425a0b8a5ef6b
398b04db9f [CodingStyle] Use double quote to escape quotes in EncapsedStringsToSprintfRector (#6326)
2024-09-23 14:15:11 +00:00
Tomas Votruba
426bac90a3 Updated Rector to commit c5940d2cc1adbe39945e0a0f9029823a883671e6
c5940d2cc1 [TypeDeclaration] Reduce double traverse on StrictReturnNewAnalyzer ReturnTypeFromStrictNewArrayRector (#6321)
2024-09-21 14:32:39 +00:00
Tomas Votruba
ebc5937a0e Updated Rector to commit 92f64ffc17e7ad969edf8e48cf02ba68f72b2efc
92f64ffc17 [Performance] Reduce double traverse on StrictNativeFunctionReturnTypeAnalyzer (#6320)
2024-09-21 13:09:46 +00:00
Tomas Votruba
466f5a7cd9 Updated Rector to commit d2bbed9da2189dbbac2376e053a66e22ebb50ac3
d2bbed9da2 Fix LocallyCalledStaticMethodToNonStaticRector when static function is called using the class name (#6310)
2024-09-17 00:18:46 +00:00
Tomas Votruba
6006052f4b Updated Rector to commit bbdeb0ffaa2307b0271801a031f139c11ada52f8
bbdeb0ffaa [DeadCode] Add fixture to remove already known more specific type (#6309)
2024-09-16 07:10:12 +00:00
Tomas Votruba
a210f202ea Updated Rector to commit 5c30f2491c3fb03ff38fbc524a02b9baa2e3f96c
5c30f2491c [Performance] Reduce double traverse on AddNeverReturnType (#6305)
2024-09-15 01:23:46 +00:00
Tomas Votruba
056f7047c7 Updated Rector to commit 5da2f3302522508e64b7b74e649f06e45f7b70db
5da2f33025 [TypeDeclaration] Clean up never type check on AddNeverReturnType (#6304)
2024-09-15 01:15:15 +00:00
Tomas Votruba
eb623ce3a0 Updated Rector to commit 7f9c6b0f0a2f6093c3da6b7d1326c4add4e7040f
7f9c6b0f0a [TypeDeclaration] Convert inline @var tag to assert() (#6300)
2024-09-13 07:50:10 +00:00
Tomas Votruba
7d52cf2cdd Updated Rector to commit 1ebb7aa29bfff54059d455ee6f908fa47a7416c3
1ebb7aa29b [CodeQuality] Allow transform static to self on final class on ConvertStaticPrivateConstantToSelfRector (#6295)
2024-09-08 10:53:32 +00:00
Tomas Votruba
4cbb79dc5f Updated Rector to commit feaf6eae6b9a765fe229d65a9ba07c5715649dee
feaf6eae6b Update incorrect configuration example (#6294)
2024-09-06 12:11:39 +00:00
Tomas Votruba
1e876747d5 Updated Rector to commit cb96062f3cd5891fd89b419eebdd762061e82f85
cb96062f3c Clean up UseImportsTraverser (#6291)
2024-09-05 22:11:12 +00:00
Tomas Votruba
41a5fd7eb0 Updated Rector to commit e2b96d4f6efda2db3bf6a1074b67fcf2439e848d
e2b96d4f6e Ensure same behaviour as before on UseImportsTraverser (#6290)
2024-09-05 21:45:45 +00:00
Tomas Votruba
93c6ecf140 Updated Rector to commit 246de2dd9f7ce39e4ff94de0d36307e4fc8067b5
246de2dd9f [Performance] Remove unnecessary usage of SimpleCallableNodeTraverser on UseImportsTraverser (#6288)
2024-09-05 21:19:51 +00:00
Tomas Votruba
9fd26b514b Updated Rector to commit 1c20d81c56a0ec9cb7663421add2bd1004278370
1c20d81c56 Bump to PHPStan 1.12.2 and Fix test (#6289)
2024-09-05 21:15:47 +00:00
Tomas Votruba
e7b61135b9 Updated Rector to commit 340e5226000cba351cc282ca572af6f76418e1bd
340e522600 [deprecated] Remove deprecated closure return rules, return type from strict bool/scalar returns (#6287)
2024-09-04 08:17:49 +00:00
Tomas Votruba
f5ea40a973 Updated Rector to commit 97eb222b6b3954419bc6e22d9640859e97934c4d
97eb222b6b [DX] Type of class method/class const cannot be checked, use Class_ instead (#6281)
2024-09-02 11:00:48 +00:00
Tomas Votruba
86066d948c Updated Rector to commit 9da99ea4370a4c11d5df2aa7af7de4cde129c626
9da99ea437 [deprecations] Remove deprecated GetClassToInstanceOfRector, UseIncrementAssignRector, DetectNodeCommand (#6278)
2024-09-02 09:55:41 +00:00
Tomas Votruba
3936c30c7e Updated Rector to commit 3aa886f88d54d440d107577996d65cd968c0c8b0
3aa886f88d [deprecated] Remove deprecated ChangeAndIfToEarlyReturnRector, CallableThisArrayToAnonymousFunctionRector + casting rules (#6276)
2024-09-02 08:07:01 +00:00
Tomas Votruba
ddcb4cdfc9 Updated Rector to commit 96b585bd2640cb09ef79271907f444f3218c42b2
96b585bd26 Adds AddClosureParamTypeFromObjectRector (#6265)
2024-09-01 12:00:53 +00:00
Tomas Votruba
1bad941971 Updated Rector to commit 03ea9b2c4e823b6b9800c2de052193326ebb2027
03ea9b2c4e [ReturnTypeInferer] Drop this/static docblock type check on ReturnTypeInferer (#6270)
2024-09-01 06:42:32 +00:00
Tomas Votruba
17e003bf59 Updated Rector to commit 1eb04d6fae817aa0bd79d8606724d5eddd2f54df
1eb04d6fae [automated] Apply Coding Standard (#6269)
2024-09-01 00:38:01 +00:00
Tomas Votruba
71850def81 Updated Rector to commit 4eacb1ccc94f378eec0f3a08dbd8c90935d8d248
4eacb1ccc9 [automated] Re-Generate preload.php (#6268)
2024-09-01 00:37:22 +00:00
Tomas Votruba
2d115a2c54 Updated Rector to commit b2213fdb4431413ab027e9f83ffb97e0cb8d838f
b2213fdb44 [Refactor] Move bloated logic on NameImportingPostRector into ClassNameImportSkipper and NameImporter (#6267)
2024-08-31 11:36:27 +00:00
Tomas Votruba
f85eb3d810 Updated Rector to commit fd4f6d037b20c9b02fa83c98c4fb1524c7374196
fd4f6d037b [AutoImport] Skip auto import conflict aliased on no namespace (#6266)
2024-08-30 06:37:33 +00:00
Tomas Votruba
6d509ddbaa Updated Rector to commit 8073ee7922196df0941dafa3a90542776d710f5a
8073ee7922 remove arg positoin from AddClosureParamTypeFromArg, to ease configuration (#6260)
2024-08-27 19:33:04 +00:00
Tomas Votruba
c68e300f06 Updated Rector to commit b2b18abd7e5896611ba96130bcc8372d7e91a784
b2b18abd7e Tidy up (#6259)
2024-08-27 11:18:26 +00:00
Tomas Votruba
78795796cc Updated Rector to commit dc3850fead456e00bfe3fcbffb42beee70cc2893
dc3850fead [TypeDeclaration] Adds AddClosureParamTypeFromArgRector (#6258)
2024-08-27 10:29:31 +00:00
Tomas Votruba
39f50ae035 Updated Rector to commit db11aa556ff2cd07f2c63bbbe42441b273f99cda
db11aa556f [Performance] [TypeDeclaration] Reduce double traverse on SilentVoidResolver::hasExclusiveVoid() (#6255)
2024-08-25 12:10:32 +00:00
Tomas Votruba
5ffac169d7 Updated Rector to commit 1884cdd170c8a1f9580dea448fc79ede3e7e9802
1884cdd170 Skip Columns from TypedPropertyFromAssignsRector, as handled better in doctrine rules (#6254)
2024-08-23 08:38:17 +00:00
Tomas Votruba
85974b8979 Updated Rector to commit c9470e4aa3fe841a40b4b92e3c351a84ad9d7dc4
c9470e4aa3 Skip Doctrine collections in TypedPropertyFromAssignsRector (#6253)
2024-08-23 08:00:31 +00:00
Tomas Votruba
e2ba97a9f4 Updated Rector to commit 2891d15d933ec11f741a1c88139165b42987c940
2891d15d93 [Php84] Do not reprint node type on ExplicitNullableParamTypeRector (#6250)
2024-08-22 16:55:11 +00:00
Tomas Votruba
dc2d69aa43 Updated Rector to commit 4f89b7498e7bfb7dccc8872e042fcbc3a687a7f1
4f89b7498e [AttributeKey] Drop virtual_node attribute (#6239)
2024-08-22 08:56:01 +00:00
Tomas Votruba
082c3ba4ca Updated Rector to commit c3f5cbca9f9c79f66f2a35accdd480875e62cf20
c3f5cbca9f [Php70] Fix with \r\n on EregToPregMatchRector (#6246)
2024-08-21 07:42:47 +00:00