Tomas Votruba
3eeae8f598
fix parent class
2021-07-10 02:06:43 +02:00
Tomas Votruba
a39515b627
bump typo3 rector
2021-07-10 02:06:30 +02:00
Tomas Votruba
5255783267
skip Standard printer from widening
2021-07-10 01:48:26 +02:00
Tomas Votruba
a9ed924cdb
[CodeQuality] Fix array_keys on object in UnusedForeachValueToArrayKeysRector ( #411 )
2021-07-10 01:47:32 +02:00
Abdul Malik Ikhsan
cf0284b075
[DowngradePhp80] Handle Attribute in DowngradePropertyPromotionRector ( #410 )
...
* add failing test case for attribute downgrade
* Fixes #376 Closes https://github.com/rectorphp/rector/issues/6546
* cs fix
* clean up
* default comments attribute value is null
* final touch: normal comment should be deleted instead
* normal comment on parameter be kept
* normal comment on parameter be kept
* refactor move normal comment on property promotion moved to assign
* Final touch: phpstan
* normal comment on property promotion with Attribute will be kept and moved to assign as well
* Finally 🎉 🎉 🎉 , for both attribute and comment, the comment will be moved to aproperty assign
* process one liner attribute + property definition
* comment on one liner attribute
Co-authored-by: Dominik Chrastecky <dominik@chrastecky.cz>
2021-07-10 01:47:23 +02:00
Tomas Votruba
61823152cf
skip 2 more from docs generator
2021-07-10 01:00:13 +02:00
Tomas Votruba
b5d553fe94
add one more
2021-07-10 00:59:27 +02:00
Tomas Votruba
6f1f047087
add RenameParamValueObjectInterface to trusted downgrade widening types
2021-07-10 00:51:10 +02:00
Abdul Malik Ikhsan
c7b96e07d9
[Defluent] Skip DefluentReturnMethodCallRector on return clone object ( #404 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-07-08 23:22:45 +02:00
Abdul Malik Ikhsan
4202862935
[CodeQuality] Allow any Expr on InlineIfToExplicitIfRector ( #406 )
...
* allow method call right on InlineIfToExplicitIfRector
* Fixed 🎉
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2021-07-08 19:27:48 +02:00
Tomas Votruba
c0eea3fd11
Use PhpDocNodeTraverser to remove useless param tag value nodes ( #409 )
...
* use php doc node traverser for removing useless parma tags
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2021-07-08 17:01:54 +00:00
Tomas Votruba
c1d18043fe
Avoid attr groups override ( #408 )
2021-07-08 16:24:13 +00:00
Tomas Votruba
0293296974
extract UseImportNameMatcher ( #407 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-07-08 15:49:48 +00:00
Tomas Votruba
0c709dfac7
Refactor node removing to phpdoc node traverser ( #405 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-07-08 15:28:06 +00:00
Tomas Votruba
e066024702
[PHP 8.0] Add annotation removal in case of nested ( #403 )
...
* cleanup
* cleanup empty annotation with just remove children
* handle removing of parent
* decouple AttrGroupsFactory
2021-07-08 14:27:19 +02:00
Abdul Malik Ikhsan
32c0d7d1b7
[DeadCode][Naming] Handle null start token on use RemoveOverriddenValuesRector & RenameVariableToMatchNewTypeRector ( #398 )
...
Co-authored-by: zingimmick <zingimmick@outlook.com>
2021-07-08 02:08:45 +02:00
Tomas Votruba
311a96fbf8
bump php-parser to 4.11, phpstan to 0.12.91 ( #402 )
2021-07-08 01:58:23 +02:00
Tomas Votruba
42a16eaf52
fix cs
2021-07-07 23:45:13 +02:00
Tomas Votruba
3392cdf6f7
note complementary rector in missing rector reportre
2021-07-07 23:45:05 +02:00
Tomas Votruba
bf37d5f0ee
[DX] Add complemetary marker interface to warn about no registered rules ( #400 )
2021-07-07 21:26:32 +00:00
Abdul Malik Ikhsan
5a863f6548
[CodeQuality] Handle Nested Ternary on SwitchNegatedTernaryRector to have parenthesis ( #397 )
...
* [CodeQuality] Handle Nested Ternary on SwitchNegatedTernaryRector to have parenthesis
* Fixed 🎉 with new Name() with Print
* phpstan
* [ci-review] Rector Rectify
* better using ConstFetch
* move to TernaryBracketWrapper service
* move to TernaryBracketWrapper service
* eol
* phpstan
* use pExpr_Ternary
* phpstan
* phpstan
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2021-07-07 16:19:25 +02:00
rajyan
d5cd2bcc35
[Php80] feat: str_ends_with with hardcoded string ( #399 )
...
* add falling test fixture
* refactor UnaryMinusStrlenFuncCallArgValue
* add isHardCodedLNumberAndString to handle hardcoded strings with LNumber
* add tests for substr_compare
Co-authored-by: yota-kimura <yota.kimura@gree.net>
2021-07-07 16:17:19 +02:00
Abdul Malik Ikhsan
9e231f1e13
Add test for Fix key 1 TypeNormalizer::isUnionMixedArrayNeverType() ( #395 )
2021-07-07 01:28:57 +00:00
Abdul Malik Ikhsan
0beb20af74
Fix key 1 TypeNormalizer::isUnionMixedArrayNeverType() ( #394 )
2021-07-07 01:19:14 +00:00
Abdul Malik Ikhsan
20153a915b
[TypeDeclaration] Skip mixed union return on ReturnTypeDeclarationRector ( #393 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-07-07 02:10:47 +02:00
Steve
36ac7ab284
Add support for phpstan/phpstan 0.12.91 ( #379 )
2021-07-06 16:01:43 +02:00
Tomas Votruba
49a3c8d467
fix static
2021-07-06 15:57:26 +02:00
Tomas Votruba
dd75546704
misc
2021-07-06 15:41:35 +02:00
Tomas Votruba
246de784d7
[Downgrade 7.2] Allow to exclude method names
2021-07-06 15:37:43 +02:00
Tomas Votruba
4d47429708
fix attribute access
2021-07-06 15:04:58 +02:00
Tomas Votruba
ba9579a262
[Downgrade 7.2] Make DowngradeParameterTypeWideningRector skip autowired methods ( #392 )
2021-07-06 12:59:46 +00:00
Tomas Votruba
ca44648a7a
refletc json output formatter in fatal error on container creationg
2021-07-06 14:20:54 +02:00
Abdul Malik Ikhsan
95e6a5e628
[CodingStyle] Handle FuncGetArgsToVariadicParamRector in Method/Static Call ( #389 )
2021-07-06 13:31:16 +02:00
Tomas Votruba
dc78a3e7a8
add phpstan doc nodes
2021-07-06 13:27:17 +02:00
Tomas Votruba
292e82e117
Fix ArrayCallableMethodMatcher to accept only strings ( #391 )
2021-07-06 09:37:37 +00:00
Tomas Votruba
eb4ccfbeec
add node
2021-07-06 11:17:50 +02:00
Tomas Votruba
bce3b96be1
add source locator
2021-07-06 10:56:44 +02:00
Tomas Votruba
d3c949f5a9
add node visitor contract to skip
2021-07-06 10:40:56 +02:00
Tomas Votruba
48e89b5bd2
add configurable trait interface there
2021-07-06 10:27:13 +02:00
Tomas Votruba
150da023db
include standalone traits in downgrade too
2021-07-06 10:09:55 +02:00
Tomas Votruba
8f4ff2a20a
extract skip safe type method
2021-07-06 01:28:09 +02:00
Tomas Votruba
a9130e1825
skip output interface too
2021-07-06 01:26:14 +02:00
Alexander Janssen
9c133815fd
Added failing test for symfony validator ( #387 )
2021-07-06 01:18:51 +02:00
Tomas Votruba
c002efe1d9
skip self type
2021-07-06 01:10:55 +02:00
Tomas Votruba
97ca45aade
skip private method
2021-07-06 00:57:20 +02:00
Tomas Votruba
e93a102b99
widen downgrade types
2021-07-06 00:43:48 +02:00
Tomas Votruba
2da49992cc
[Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type ( #390 )
2021-07-05 22:40:42 +00:00
Tomas Votruba
2c62019c50
add resource type
2021-07-05 21:44:17 +02:00
Tomas Votruba
b07a9cc1ba
add symfony/dependency-injectoin wiht completed types
2021-07-05 21:29:59 +02:00
Tomas Votruba
708bf7e879
add container bag patching
2021-07-05 21:26:30 +02:00