11200 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
fd6f48c576
[DeadCode] Add RemoveDeadLoopRector (#5600)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 14:18:34 +01:00
Tomas Votruba
c609697f14
[TypeDeclarationStrict] Add AddMethodCallBasedStrictParamTypeRector (#5580) 2021-02-17 16:40:29 +01:00
Ruud Kamphuis
a75fee8395
[RemoveFuncCallArgRector] Use getName instead of isName to fix closure call (#5591)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-02-17 15:17:16 +01:00
Ruud Kamphuis
73bdede5ec
Pass string to FullyQualified instead of ::class (#5597)
Fixes #5596
2021-02-17 14:56:13 +01:00
Ruud Kamphuis
1561e108c0
Readme > Explain print_node (#5595) 2021-02-17 18:48:35 +07:00
Matthias Pigulla
242c6371d3
Specify an explicit Composer version (#5589)
... to not rely on a possibly outdated local image.
2021-02-17 12:12:53 +01:00
Tomas Votruba
1d0feb11ee
[CodeQuality] Skip typed property on isset rule (#5592)
Co-authored-by: vladyslavstartsev <17382248+vladyslavstartsev@users.noreply.github.com>
2021-02-17 10:51:32 +00:00
Abdul Malik Ikhsan
8e9b7b39fe
[NodeCollector] Apply NodeRepository::collect() on Name node (#5585)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-17 11:29:39 +01:00
Abdul Malik Ikhsan
cb9fd31016
[Renaming] Skip RenameMethodRector when target method is __invoke with private/protected modifier (#5586) 2021-02-17 09:21:50 +01:00
Abdul Malik Ikhsan
9e731713b6
[Naming] Fixes #5587 Skip RenameParamToMatchTypeRector when used in ClassMethod stmts (#5588) 2021-02-17 08:09:31 +01:00
Abdul Malik Ikhsan
8e915ebe9b
[DeadCode] Register RemoveEmptyAbstractClassRector to dead-code config set (#5583) 2021-02-16 21:16:21 +01:00
Abdul Malik Ikhsan
4fc4e7f52e
[CodeQuality] Improve InlineIfToExplicitIfRector : Allow AssignOp as well (#5582) 2021-02-16 20:16:37 +01:00
Abdul Malik Ikhsan
7475c7f025
[DeadCode] Add RemoveEmptyAbstractClassRector (#5558)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-16 20:15:45 +01:00
Abdul Malik Ikhsan
06906a0659
[CodeQuality] Improve InlineIfToExplicitIfRector : allow change BooleanOr to explicit if as well (#5579) 2021-02-16 19:36:50 +01:00
Abdul Malik Ikhsan
648bea9305
[Bin] Using file_exists() for check PHPStan stub ReflectionUnionType and Attribute exists (#5581) 2021-02-17 01:23:12 +07:00
TomasVotruba
3cbc3ef94b cs 2021-02-16 17:27:07 +01:00
TomasVotruba
904a4af497 drop arrow function from stmts type completion 2021-02-16 17:27:02 +01:00
Tomas Votruba
651573a58f
[TypeDeclaration] Add ReturnTypeFromStrictTypedCallRector (#5573) 2021-02-16 16:12:37 +00:00
addshore
a3f3b0e7d2
[DeadCode] Fix RemoveUnreachableStatementRector issue with global function declarations (#5575) 2021-02-16 17:03:52 +01:00
Abdul Malik Ikhsan
5921571647
[Bin] Add PHPStan Stub ReflectionUnionType and Attribute to bin/rector (#5569) 2021-02-16 16:57:16 +01:00
Ruud Kamphuis
8d58a6dd87
Fix merging of multiple calls to configure in sets (#5523) 2021-02-16 09:00:06 +01:00
Jan Mikeš
e9a16265ea
Prepared xdebug Docker image with instructions (#5544) 2021-02-16 08:52:34 +01:00
Abdul Malik Ikhsan
59e1063b50
[EearlyReturn] Improve ReturnAfterToEarlyOnBreakRector: skip when parent assign is not Expression (#5568)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-16 01:24:08 +01:00
TomasVotruba
c25c67887e more spaces 0.9.29 2021-02-15 22:40:45 +01:00
TomasVotruba
c5ae6b5a8f misc 2021-02-15 22:40:33 +01:00
TomasVotruba
8dfb338479 less spaces 2021-02-15 22:40:28 +01:00
Tomas Votruba
f03cfa767a
[Output] Drop checkstyle to avoid manual fixes in PRs (#5566) 2021-02-15 21:27:07 +00:00
TomasVotruba
662fa900c5 Merge branch 'higher-phpstan' 2021-02-15 22:16:16 +01:00
TomasVotruba
56b9e721e4 try to fix downgrade script with missing ReflectionUnionType 2021-02-15 22:16:05 +01:00
Tomas Votruba
30ec07b6ac
include stubs in tests (#5565) 2021-02-15 20:50:26 +00:00
TomasVotruba
ac6acfa6a4 include stubs in tests 2021-02-15 21:44:28 +01:00
TomasVotruba
5976af5b01 lock to last working phpstan 2021-02-15 20:42:36 +01:00
Abdul Malik Ikhsan
4674e57a9f
Revert "[PHP 7.1 Scoped] Use PHP 7.1 for build php 7.1 (#5562)" (#5563)
This reverts commit 642110750f6a39e6d6483d103e49aedb78d6f444.
2021-02-15 19:34:21 +00:00
Tomas Votruba
1d80ef3df6
[TypeDeclaration] Add external types to ParamTypeFromStrictTypedPropertyRector (#5560) 2021-02-15 19:31:53 +00:00
Abdul Malik Ikhsan
642110750f
[PHP 7.1 Scoped] Use PHP 7.1 for build php 7.1 (#5562) 2021-02-15 19:20:20 +00:00
Abdul Malik Ikhsan
4fa3573dff
[PHP 7.1 Scoped] install dev dependency as well to allow run phpunit (#5561)
* [PHP 7.1 Scoped] install dev dependency as well to allow run phpunit
2021-02-15 18:51:26 +00:00
Tomas Votruba
3bebb682a2
remove useless local hasClassProperty method (#5556)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-15 16:45:56 +00:00
Tomas Votruba
9d8b88e359
[TypeDeclaration] Add ParamTypeFromStrictTypedPropertyRector, add TYPE_DECLARATION_STRICT set (#5559) 2021-02-15 16:38:30 +00:00
Abdul Malik Ikhsan
cbebb9a4de
[Renaming] Skip RenameMethodRector when class implements interface method (#5557)
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-02-15 17:21:29 +01:00
Ruud Kamphuis
19c876f01e
Use Class_::getProperty() (#5555)
* Use `Class_::getProperty()`

* Update src/NodeManipulator/ClassInsertManipulator.php

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2021-02-15 14:06:35 +00:00
Abdul Malik Ikhsan
c0240e8bfd
[[PHP 7.1 Scoped] Run phpunit on root directory [part 2] (#5552) 2021-02-15 09:29:11 +00:00
Abdul Malik Ikhsan
103e0f2e41
[[PHP 7.1 Scoped] Run phpunit on root directory (#5551) 2021-02-15 09:09:18 +00:00
Abdul Malik Ikhsan
1fce3e00f8
[PHP 7.1 Scoped] Replace composer.json with autoload/require with the base composer.json (#5550) 2021-02-15 08:52:24 +00:00
Tomas Votruba
7e10245fa1
[Nette] Add double render use case to TemplateMagicAssignToExplicitVariableArrayRector (#5549)
* add double case

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-15 01:23:19 +00:00
Tomas Votruba
de8fa30257
[cs] apply indent of call in configs (#5547) 2021-02-14 21:28:21 +00:00
Tomas Votruba
054de822ed
[DoctrineCodeQuality] Add tests (#5540)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-14 19:51:04 +00:00
Abdul Malik Ikhsan
a8e1a97444
update regex Fixture path for Fixture Finder (#5546) 2021-02-14 17:12:52 +01:00
Abdul Malik Ikhsan
206df09020
[EarlyReturn] Register ReturnAfterToEarlyOnBreakRector to early-return config set (#5542) 2021-02-14 14:40:31 +01:00
Abdul Malik Ikhsan
01360925b2
[EarlyReturn] Add ReturnAfterToEarlyBreakRector (#5529)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-14 10:53:04 +01:00
github-actions[bot]
981e437bb7
[automated] Re-Generate Nodes/Rectors Documentation (#5539)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-02-14 10:46:15 +01:00