Tomas Votruba
bc41ba2b2e
phpstan cleanup ( #4509 )
...
* move tag objects to ValueObject namespace
* [ci] temporarily disable weird broken monorepo split, wait for move to github actoins
2020-10-29 23:06:26 +01:00
Tomas Votruba
5d190a3d55
phpstan cleanup config ( #4507 )
2020-10-29 21:34:51 +00:00
Tomas Votruba
91a354c080
[NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure ( #4506 )
...
* [NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* fix name
* fix unknown mixed type on fluent
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 21:25:35 +00:00
Abdul Malik Ikhsan
a2ae659e0a
[CodeQualityStrict] Enable MoveOutMethodCallInsideIfConditionRector ( #4502 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 21:47:12 +01:00
Abdul Malik Ikhsan
449801e1f3
Add regex uri to regex constant ( #4504 )
...
Co-authored-by: Jan Lohage <j2L4e@users.noreply.github.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 19:04:33 +01: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
Raffael Comi
2e44469c94
Return also explicitly mixed types in IdentifierTypeMapper ( #4483 )
2020-10-28 21:51:56 +01:00
Raffael Comi
7bd20258bc
Map iterable in ScalarStringToTypeMapper ( #4482 )
...
* Map iterable in ScalarStringToTypeMapper
* Add test
2020-10-28 21:42:17 +01:00
Tomas Votruba
44b27f779e
[EarlyReturn] Decouple new set ( #4490 )
...
* [set] decouple new code-quality-strict
* decopule early-return set [closes #4464 ]
* [docker] drop prestissimo, as composer v2 does not need it
* [ci] move coding standard to ci_review
* [ci] try to run rector-ci on contributors
2020-10-27 13:47:37 +00:00
Abdul Malik Ikhsan
7a1ea1328b
[CodeQuality] Register MoveOutMethodCallInsideIfConditionRector to config code-quality set ( #4477 )
...
* [CodeQuality] Register MoveOutMethodCallInsideIfConditionRector to config code-quality set
* rename use string parameter
* phpstan
* fix false positive string param to be var === variable name
* fix false positive
* phpstan
* ensure not same variable
* phpstan
* add ucfirst after var
* add fixture failing test for variable exists to be skipped
* add fixture failing test for variable exists in previuos statement
* phpstan space
* add handling variable exists in previous statement and in ClassMethod/Functions args
* handle exists but inside if
* reduce complexity
* clean up
* clean up
* cs fix
* phpstan
* remove - in variable
* use fallback when first character is numeric
* using regex to check string start alpha for variable
* cs fix
* use ClassConstFetch name to set variable name
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* clean up
* fix
* [ci-review] Rector Rectify
* Update rules/code-quality/src/Rector/If_/MoveOutMethodCallInsideIfConditionRector.php
* Update rules/code-quality/src/Rector/If_/MoveOutMethodCallInsideIfConditionRector.php
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-10-26 14:03:26 +00:00
Tomas Votruba
20e95bee61
[CI] Run ECS only on match git diff ( #4487 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-26 12:28:32 +01:00
Tomas Votruba
6f56d0dfbe
[docs] apply correct standard on dumper Rector list + apply automated CI commit on propagate monorepo deps ( #4481 )
2020-10-26 00:22:53 +01:00
Tomas Votruba
0f2e6d407e
[DoctrineAnnotaitonGenerated] Update to doctrine/annotations 1.11 + fix static ( #4479 )
2020-10-25 14:43:05 +01:00
Tomas Votruba
6c51f3fb4f
[Restoration] Add InferParamFromClassMethodReturnRector ( #4471 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-21 23:06:24 +02:00
Tomas Votruba
75d25a1dcb
[CodeQuality] Decouple complete dynamic properties rector, add skip of Closure::bind() ( #4466 )
...
* [ci] temporarily hide split monorepo
* [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()
* [rector] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()
* [cs] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-20 20:27:12 +00:00
Tomas Votruba
5988584736
[CodeQuality] Improve missing property type resolution for array dim fetch ( #4462 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-20 20:35:35 +02:00
TomasVotruba
e59cb4c244
try chaing package
2020-10-19 17:30:57 +02:00
Tomas Votruba
9869678e4a
[DeadCode] Fix removal of if->cond ( #4450 )
2020-10-19 16:38:02 +02:00
Tomas Votruba
c18b06b474
[DeadCode] Cover array dim fetch assign ( #4446 )
2020-10-19 01:46:38 +02:00
Tomas Votruba
29594b63f4
[DeadCode] Count arg value as used ( #4445 )
2020-10-18 23:18:04 +00:00
Tomas Votruba
f96372e1c0
make use of Types of doc types ( #4444 )
2020-10-18 21:49:54 +02:00
Tomas Votruba
e845d7cea8
[DoctrineCodeQuality] Add ImproveDoctrineCollectionDocTypeInEntityRector ( #4442 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-18 18:29:35 +02:00
Tomas Votruba
fd9bd00713
[DoctrineCodeQuality] Fix oveCurrentDateTimeDefaultInEntityToConstructorRector for default value ( #4436 )
...
* [DoctrineCodeQuality] Fix oveCurrentDateTimeDefaultInEntityToConstructorRector for default value
* re-use local property method
* improve new_ nesting
* [rector] improve new_ nesting
* static fixes
* bump deps
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-18 08:45:56 +00:00
Tomas Votruba
af1928c64f
Decouple CachedFileInfoFilterAndReporter ( #4434 )
...
* decouple CachedFileInfoFilterAndReporter
* fix cs
2020-10-17 15:33:57 +00:00
Tomas Votruba
9f7073ada3
[NodeAnalyzer] Check property fetch for read ( #4431 )
...
* [NodeAnalyzer] Check property fetch for read
* [ReadWrite] Decopule new package for read/write/only analysis
* add property fetch
2020-10-16 20:16:36 +00:00
Tomas Votruba
b7e3dad887
add doctrine embedded php doc node ( #4424 )
...
* Add a tag value node for Doctrine Embedded tags
* fix getter name
Co-authored-by: Matthias Noback <matthiasnoback@gmail.com>
2020-10-15 20:48:23 +00:00
Tomas Votruba
16031da4b7
[DeadCode] Fix binary different nesting in RemoveOverriddenValuesRector ( #4422 )
...
* decopule NodeByTypeAndPositionCollector
* decouple VariableUseFinder
2020-10-15 20:23:25 +00:00
TomasVotruba
0fd311cb16
fix indent
2020-10-15 14:16:31 +02:00
Tomas Votruba
e085f52f86
[DeadCode] Improve parent and current type comparison on RemoveDelegatingParentCallRector ( #4409 )
...
* decouple CurrentAndParentClassMethodComparator
* fix param reflections
* [rector] fix param reflections
* [cs] fix param reflections
* composer: bump assert
* [rector] composer: bump assert
* [cs] composer: bump assert
* static fixes
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-14 17:14:55 +00:00
Tomas Votruba
8af70b5ac0
[Defluent] Refactoring to multiple rules ( #4400 )
...
* [Defluent] Refactoring to multiple rules
* [Defluent] Decouple defluent-only set, it deserved to have own domain
* cleanup
* [rector] cleanup
* [cs] cleanup
* fixup! cleanup
* static fixes
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-14 04:24:29 +00:00
TomasVotruba
59e1413b82
fix cs
2020-10-12 22:10:41 +02:00
TomasVotruba
81ac932ca5
remove duplicated services
2020-10-12 21:46:19 +02:00
TomasVotruba
202631d198
add missing services
2020-10-12 21:44:10 +02:00
Tomas Votruba
cb991af9c6
hotfix mysql connection resolving ( #4399 )
2020-10-12 21:06:24 +02:00
Tomas Votruba
a31837679d
[PHP 7.4] Add null on conditional type of property type ( #4394 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-12 16:34:28 +02:00
Tomas Votruba
01514ab9a8
[SimplePhpDocParser] Add README + getParam*() helper methods ( #4393 )
2020-10-11 16:17:43 +02:00
Tomas Votruba
a4b4b474cb
[SimplePhpDocParser] Init ( #4391 )
2020-10-11 12:40:45 +02:00
TomasVotruba
40db4ee347
static fixes
2020-10-11 00:55:28 +02:00
TomasVotruba
4e25eda078
[SymfonyPHPConfig] Add README
2020-10-11 00:09:54 +02:00
TomasVotruba
2635f174c9
bump symplify 8.3.33
2020-10-10 23:53:39 +02:00
Tomas Votruba
4a76cdaa82
[SymfonyPHPConfig] Add monorepo split for value objects function ( #4153 )
...
* add monorepo split for symfony-php-config
* [SOLID] Prevent replacing referenced parametes with inlined constnat value
* make Symfon 5.0- compatible
* add support for reference skip in constructor
* [rector] add support for reference skip in constructor
* [cs] add support for reference skip in constructor
* improve misisng rule feedback
* underscore
* Fix ChangeReadOnlyVariableWithDefaultValueToConstantRector for new
* add clear-cache to all commands
* colors
* [rector] colors
* [cs] colors
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-10 17:42:43 +00:00
Leonardo Losoviz
0b54ff3d97
[Downgrade PHP 7.4] Array spread - don't use ternary for arrays, or PHPStan complains ( #4380 )
2020-10-10 09:18:57 +02:00
Tomas Votruba
3808d1b941
[Nette 3.0] Set update ( #4381 )
2020-10-09 22:01:37 +02:00
Tomas Votruba
e47a806300
Remove AbstractFileSystemRector and move to AbstractRector ( #4378 )
2020-10-09 21:51:09 +02:00
Tomas Votruba
5cb49a2d5a
[PSR-4] Move from FileSystemRector to FileWithoutNamespace node ( #4372 )
2020-10-08 23:28:24 +02:00
Leonardo Losoviz
effa4d34d8
[Downgrade PHP 7.3] List reference assignment ( #4371 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-08 16:04:18 +02:00
TomasVotruba
44d6bc1195
update yaml params to php params
2020-10-07 15:41:19 +02:00
Tomas Votruba
7e124dffc0
[static] replace string attirbutes with contants + fix require rule ( #4354 )
...
* replace string attirbutes with contants
* static fixes
* composer: bump sypmlify
* composer: drop branch alias, not usedp
2020-10-04 22:19:25 +00:00
Tomas Votruba
5597e57e12
[PHP 8.0] Add importing of Route, fix name to Annotation\Route one ( #4352 )
2020-10-04 14:24:49 +00:00
Tomas Votruba
08cce4f9d3
[PHP 8.0] Add @route to #[Route] attribute in Symfony 5.2 ( #4350 )
...
* move regex link to annotaiton
* improve configs
* [PHP 8.0] Add @Route to #[Route] attribute in Symfony 5.2
* add fully class attribute option
* [rector] add fully class attribute option
* [cs] add fully class attribute option
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-04 12:53:01 +00:00