Tomas Votruba
94dedf4bb3
[PHP 7.0] Update self in final class ( #5304 )
2021-01-24 20:12:02 +00:00
Tomas Votruba
87072b597d
PHP 7.4 8 typo ( #5290 )
2021-01-22 23:11:10 +00:00
Tomas Votruba
0dc20048ae
Cleanup too detailed order rules + add TypedPropertyFromStrictConstructorRector ( #5288 )
2021-01-22 18:47:02 +00:00
Abdul Malik Ikhsan
c2c5228199
[TypeDeclaration] Improve FlipTypeControlToUseExclusiveTypeRector : add Nullable support for Assign expr ( #5254 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-20 11:41:35 +00:00
Tomas Votruba
34168ff9d8
various cherry picks ( #5248 )
2021-01-19 23:29:52 +00:00
Abdul Malik Ikhsan
6b196a96ea
[TypeDeclaration] Register FlipTypeControlToUseExclusiveTypeRector to type-declaration set ( #5223 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-01-19 12:24:48 +01:00
Tomas Votruba
ad9448018c
[PhpDocInfo Decouple] Use php doc info from factories, not from attribute ( #5229 )
...
* use single method to create docs
* use phpDocInfoFactory instead of getAttribte php doc info in Rectors
* move callig to phpDocInfoFactory
* misc
2021-01-18 21:45:13 +00:00
Abdul Malik Ikhsan
35e83f75c6
[Utils] Add validate-fixture-filename command ( #5199 )
...
* [Utils] Add validate-fixture-filename command
* register command
* fix existing fixture filename with -
* clean up
2021-01-16 13:19:40 +01:00
Tomas Votruba
713915d1b2
Polishing composer rules ( #5170 )
...
* [Composer] Add check for existing compsore.json
* update composer package
* coding style
* various static fixes
2021-01-13 13:02:14 +00:00
Abdul Malik Ikhsan
e1c89d17f6
[fixtures] Enable validate-fixture-skip-naming check ( #5081 )
...
* [fixtures] Enable validate-fixture-skip-naming check
* full path vendor vendor/symplify/easy-testing/bin/easy-testing validate-fixture-skip-naming rules tests
* 21 files
* more fixture
* various fix
* various fix
* more fixtures
* apply to packages rules tests utils
* more fixtures
* more fixtures
* more fixtures
* more fixtures
* more fixtures
* more fixtures
* more fixtures
* fixture fix
* done
* fixture fix
2021-01-04 14:18:27 +01:00
Tomas Votruba
c7140076ec
use clone const ( #5029 )
2020-12-28 23:38:05 +00:00
Tomas Votruba
d465ec83e2
[DeadCode] Move RecastingRemovalRector from PHPStan set ( #4983 )
...
* [DeadCode] Move RecastingRemovalRector from PHPStan set
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 00:22:45 +00:00
Tomas Votruba
5a47e36b72
Add Visibility consts ( #4981 )
2020-12-24 23:01:30 +01:00
Tomas Votruba
d03fb14c3f
fix parent visilibty ( #4980 )
2020-12-24 21:58:07 +01:00
Abdul Malik Ikhsan
ca0b4cfdc7
[EarlyReturn] Register ChangeOrIfReturnToEarlyReturnRector to early-return set ( #4975 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-24 17:28:56 +01:00
Tomas Votruba
aa35633c66
use getService() API call over static ( #4970 )
2020-12-23 21:40:46 +01:00
Abdul Malik Ikhsan
24e17588c1
[Utils] Run validate-fixture-namespace/classname to rules/ directories ( #4935 )
2020-12-22 18:12:20 +01:00
Tomas Votruba
db5e02e724
static fixes ( #4860 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 13:08:34 +01:00
Tomas Votruba
d131d804d9
Bump min PHP version to 7.3 ( #4838 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:25:53 +01:00
Krystian Marcisz
c85ee2df8d
[DX] Use MethodName const instead of string for __set_state ( #4797 )
2020-12-05 22:39:06 +01:00
Tomas Votruba
09f17a7b64
[Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector ( #4762 )
...
* [Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector
* fix parent
* various fixes for PHP 8.0 tests
* [ci-review] Rector Rectify
* Update rules/downgrade-php80/tests/Rector/Class_/DowngradePropertyPromotionToConstructorPropertyAssignRector/DowngradePropertyPromotionToConstructorPropertyAssignRectorTest.php
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-03 13:27:24 +00:00
Tomas Votruba
a7705ed0a5
[Symplify 9] First update + switch to RuleDocGenerator ( #4616 )
...
* [composer] bump to Symplify 9
* [Symplify 9] Update phpstan rules
* bump to Symplify 9 BETA2
* update AbstractKernel from Tests to Testing namespace
* decoupling removing node trait
* remove fluent calls
* removing variadic
* [CodingStyle] Improve AnnotateThrowablesRector
* bump deps
* Make use of RuleDocGenerator
* first short
* [DocumentationGenerator] Drop deprecated package, RuleSetGenerator now handles it
* import namespace
* update docs
2020-11-16 17:50:38 +00:00
Tomas Votruba
7e3f8bdafc
[Laravel] Add AddMockConsoleOutputFalseToConsoleTestsRector ( #4589 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-12 21:47:25 +01:00
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node ( #4522 )
...
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node
* update DecoupleClassMethodToOwnClassRector
* [ci] add rebase jobp
* disable fail fast for unit tests
* misc
2020-10-31 12:59:40 +00:00
Tomas Votruba
252f17821e
fix non-existing method trying to get method reflection ( #4505 )
2020-10-29 16:45:13 +00:00
Abdul Malik Ikhsan
9e0b632e4e
[CodeQualityStrict] Add CountArrayToEmptyArrayComparisonRector to CodeQualityStrict ( #4496 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-10-29 09:59:39 +01:00
Tomas Votruba
2116630748
[ci] remove old merageable file ( #4497 )
...
* [ci] remove old merageable file
* updat ecs
2020-10-28 23:26:17 +00:00
Tomas Votruba
9314c4b173
fix cs
2020-10-28 23:03:13 +01:00
Abdul Malik Ikhsan
c54377da25
[Performance] Add CountArrayToEmptyArrayComparisonRector ( #4489 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-28 22:59:21 +01:00
Tomas Votruba
a1e50263d2
[cs] improve configured rules types ( #4491 )
...
* [cs] improve configured rules types
* [ci] update env variable
2020-10-27 14:00:39 +00:00
Tomas Votruba
0f2e6d407e
[DoctrineAnnotaitonGenerated] Update to doctrine/annotations 1.11 + fix static ( #4479 )
2020-10-25 14:43:05 +01:00
Tomas Votruba
01514ab9a8
[SimplePhpDocParser] Add README + getParam*() helper methods ( #4393 )
2020-10-11 16:17:43 +02:00
Tomas Votruba
d7f90774ee
allow php-parser 4.10 + fixes of args merge change ( #4277 )
...
* allow php-parser 4.10 + fixes of args merge change
* use fixed php-parser 4.10.1
2020-09-23 20:22:35 +00:00
Igor
f2ecdeb0b1
[Naming] Foreach over "data", renames to "datum" ( #4221 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-15 10:23:13 +02:00
dobryy
a6444fb801
[DX] Configurable rule must have configure code sample, and vice versa ( #4174 )
...
* [DX] Configurable rule must have configure code sample, and vice versa
* Add ConfiguredCodeSample
* heredocs
* code sample
* fix class
* drop AbstractConfigurableMatchTypeRector
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-11 11:21:48 +02:00
Tomas Votruba
1a2e9cbb33
static fixes ( #4140 )
2020-09-07 17:40:46 +02:00
Tomas Votruba
7ac228c638
[CI] Add type-declaration set ( #4089 )
...
* [CI] Add type-declaration set
* [rector] [CI] Add type-declaration set
* [cs] [CI] Add type-declaration set
* skip nullable void
* add anonymous parent/interface support
* refactor MultiExceptionCatchRector to use Catch_ over integers
* type fixes
* fix unoin array type override
* remove unused test cases
* drop overcomplicated InlineValidationRulesToArrayDefinitionRector
* skip assign on var
* [rector] skip assign on var
* [cs] skip assign on var
* [rector] [cs] skip assign on var
* skip assign on var
* fixes
* [rector] fixes
* [cs] fixes
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Tomas Votruba
3226d2d36c
naming ( #4070 )
2020-08-30 14:56:39 +02:00
Tomas Votruba
ff6d6571e6
[Order] Add abstract class, check for changed order and move category to Class_, to prevent minus types ( #4069 )
...
* [Order] report applied rule only on change
* add AbstractConstantPropertyMethodOrderRector, use explicit Class_ and Trait_ over minus
* update docs
* add PropertyNameRankAndPosition value object
* static fixes
* add ClassMethodRankeable and RankeableInterface, to get rid of arrays
* add PropertyRankeable
* add ClassConstRankeable
* add sortByRanksAndGetNames()
* [rector] add sortByRanksAndGetNames()
* [cs] add sortByRanksAndGetNames()
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-30 12:45:03 +00:00
Tomas Votruba
41b679cb2a
[DX] Replacing arrays with objects ( #4008 )
...
* [phpstan] Add forbidden array destruct to prevent array mess
* use ArrayCallable value object
* add OpeningAndClosingSpace
* drop ConstructorInjectionToActionInjectionRector, antipattern
* use value objects
* [rector] use value objects
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-23 09:39:09 +00:00
Tomas Votruba
9164d46a3b
[Naming] Add MakeGetterClassMethodNameStartWithGetRector ( #4003 )
...
* [Naming] Add MakeGetterClassMethodNameStartWithGetRector
* [rector] [Naming] Add MakeGetterClassMethodNameStartWithGetRector
* [cs] [Naming] Add MakeGetterClassMethodNameStartWithGetRector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 15:46:09 +00:00
dobryy
003afc1435
[Order] Move ClassLike and Class_ rules into correct namespaces ( #3969 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 13:42:22 +02:00
dobryy
d893ee7209
[Order] Order first level class statements ( #3968 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 12:08:37 +02:00
Tomas Votruba
1c4b510513
PHPStan: require iterable types ( #3936 )
...
* phpstan: require iterable types
* add link on relative path and line
* fix missing class type
* typed array in Rector code + add data provide support resolver
* remove duplicated set
* drop unused yaml ecs config
* add out-of-the-box directory for 3rd party packages
* static fixes
* [rector] static fixes
* [cs] static fixes
* [rector] [cs] static fixes
* generic types
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
dobryy
e4af8cc721
[Order] Order constants by visibility ( #3934 )
...
* [Order] Order constants by visibility
* phpstan iterable types fixes
* Fix PHPStan issue (unrelated to PR)
* Doc Update
2020-08-10 21:59:40 +00:00
Tomas Votruba
172653b606
drop EnsureDataProviderInDocBlockRector, job for coding standards ( #3938 )
2020-08-10 10:40:22 +02:00
dobryy
0f63ef4b1c
[Order] Visibility rules refactoring ( #3933 )
...
* [Order] Visibility rules refactoring
* [Order] Import missed FQCN
* phpstan iterable types fixes
2020-08-09 19:21:31 +02:00
dobryy
05ece4e8d1
[Order] Order properties by visibility ( #3929 )
2020-08-08 00:21:17 +02:00
dobryy
29d44284cc
[Order] Order class methods by visibility ( #3923 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-07 18:23:40 +02:00
Tomas Votruba
6b0249a025
drop slevomat cs to prevent breaking build for last months ( #3917 )
2020-08-05 22:57:39 +00:00