4706 Commits

Author SHA1 Message Date
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