Tomas Votruba
f92c18514a
[DX] Forbid @required annotation ( #5869 )
2021-03-16 00:49:31 +00:00
Tomas Votruba
683f8319a8
[CI] simplify php linter ( #5867 )
...
* [CI] simplify php linter
* [CI] merge code analysis to one
* [docs] remove nodes overview, already in external repository
* remove unused ci job
* [CI] check annotation parser + sync
* [DeadCode] Remove RemoveEmptyAbstractClassRector, not reliable with static-reflection, opionated
* [CI] remove set validation, PHPStan handles this better with PHP
* remove dead-code-strict [skip ci]
2021-03-15 23:44:28 +01:00
Tomas Votruba
c1c6c9aaf2
[downgrade] remove extra configs, unite parameters ( #5861 )
2021-03-15 13:19:57 +00:00
Tomas Votruba
9beb1da3c0
Move fixture requirement from command line to a test case ( #5832 )
2021-03-13 15:07:31 +01:00
Tomas Votruba
ab1154f6c8
[CI] Drop fixture checks, that are now covered by static reflection ( #5831 )
2021-03-13 11:47:11 +01:00
Tomas Votruba
157c39aefc
[DX] move src/tests rules from micro-packages to single PSR-4 structure ( #5826 )
2021-03-12 23:20:25 +01:00
Tomas Votruba
c791f5ed60
[RectorGenerator] Decouple to external package ( #5825 )
2021-03-12 20:13:27 +01:00
Tomas Votruba
67670e70ad
[DX] move packages from src/tests to single PSR-4 directory ( #5824 )
2021-03-12 01:21:29 +00:00
TomasVotruba
9acb74fae5
fix scoped versions compoer
2021-03-11 21:25:51 +01:00
Tomas Votruba
382f146eaf
Merge CoreRectorInterface ( #5762 )
2021-03-03 22:28:27 +01:00
Tomas Votruba
9f96242e8a
[TypeDeclaration] Remove AbstractTypeDeclarationRector ( #5753 )
2021-03-03 13:27:16 +01:00
Tomas Votruba
98f4554ba2
[Symfony] Remove AbstractToConstructorInjectionRector ( #5749 )
2021-03-03 11:57:11 +01:00
Tomas Votruba
8cd5d86c03
[Nette] Remove AbstractWithFunctionToNetteUtilsStringsRector ( #5746 )
2021-03-03 11:30:17 +01:00
Tomas Votruba
92f2c5b3a6
[Nette] Remove AbstractWithFunctionToNetteUtilsStringsRector ( #5742 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-03 09:40:03 +00:00
Tomas Votruba
b7b6725364
remove abstract ( #5736 )
2021-03-03 08:49:57 +00:00
Tomas Votruba
11dab764e6
[PHPStanStaticTypeMapperChecker] Drop as very limited testing benefit, overly protective ( #5721 )
2021-03-02 11:22:49 +00:00
Tomas Votruba
05788745fd
[Downgrade] Remove excessive abstract class inheritance, use single service ( #5717 )
2021-03-01 12:10:50 +00:00
Tomas Votruba
47743269e8
Removing parent classes ( #5714 )
2021-03-01 02:28:35 +01:00
Tomas Votruba
da5f4a08c8
remove unmatched errors + require string in object types to avoid prefixing of generics objects ( #5713 )
2021-03-01 00:56:08 +00:00
Tomas Votruba
8c3443b036
[DX] Removing more parent abstract circular classes ( #5709 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-28 15:16:17 +00:00
Tomas Votruba
d737f82d3c
[DX] Add forbidden parent classes ( #5705 )
2021-02-28 13:53:28 +01:00
Tomas Votruba
4909e63a1d
Make use of static reflection from PHPStan ( #5665 )
...
* break test without autoload
* PHPStanServiceFactory - add tests directory as analysed paths
* use ReflectionProvider instead of class_exists
* use native reflections for annotation reader
* use native class and method reflections
* add RectorBetterReflectionSourceLocatorFactory
* add DynamicSourceLocator that is shared by PHPStan and Rector
* use ReflectoinProvider instead of class_exists()
* resolve native ClassMethodReflection
* make AnonymousFunctionFactory use reflection
* [DowngradePHP74] Improve DowngradeCovariantReturnTypeRector
* phsptan: avoid ClassReflection
* ProcessCommand: add file infos to source locator
* [DeadCode] Skip RemoveUnusedPublicMethodRector for test
* remove autolaod from tests
* misc
* remove is_a()
* [CI] enable only few dirs to avoid fails
* misc
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-28 08:47:48 +01:00
Tomas Votruba
c7b76c4983
[DX] Narrow wobly strings to strict ObjectType() #2 ( #5694 )
...
* use direct call on isObjectTypes()
* make use of ObjectType over strings
2021-02-27 02:13:22 +00:00
Tomas Votruba
a61a2c6e5e
use getNodeTypes() with class-string generic type ( #5692 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-27 00:06:15 +00:00
Tomas Votruba
9514a2531f
use RequireStringArgumentInConstructorRule ( #5656 )
...
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-02-22 22:15:33 +01:00
Tomas Votruba
5ba33240ca
Bump to Symplify 9.2.1 ( #5655 )
2021-02-22 20:05:33 +00:00
Tomas Votruba
72d6f1ab86
cleanup unneeded AbstractTemporaryRector methods ( #5648 )
2021-02-21 23:39:53 +00:00
Tomas Votruba
362ebbea46
[TypeDeclaration] Add ReturnTypeFromReturnNewRector ( #5624 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-19 12:01:23 +00: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
a8e1a97444
update regex Fixture path for Fixture Finder ( #5546 )
2021-02-14 17:12:52 +01:00
Tomas Votruba
f3b05c714c
[PHPUnit] Improve TryCatchToExpectExceptionRector complexity ( #5465 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 00:42:47 +01:00
Tomas Votruba
d7353baf2c
Misc cleanup ( #5456 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-08 12:33:17 +00:00
Tomas Votruba
e9cdf37d16
Decopule nodes docs generator ( #5453 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-08 02:04:48 +01:00
Tomas Votruba
8c4e6a32f9
[PHPStanExtensions] Drop RectorRuleAndValueObjectHaveSameStartsRule ( #5452 )
2021-02-07 21:57:07 +00:00
Tomas Votruba
fd8fc59ce1
[PHPStanExtensions] Move decoupled KeepRectorNamespaceForRectorRule ( #5451 )
2021-02-07 21:22:03 +00:00
Abdul Malik Ikhsan
ac3611698b
[EasyCI] Using symplify/easy-ci for validate-file-length ( #5431 )
2021-02-06 12:34:59 +01:00
Tomas Votruba
1f61ef7160
[Generic] specialize generic rules ( #5355 )
2021-01-29 00:29:12 +00:00
Tomas Votruba
e00106ee49
[phpstan] Make ComposerRectorInterface child classes respetc the "ComposerRector" suffix ( #5319 )
2021-01-26 01:32:23 +00:00
Tomas Votruba
94dedf4bb3
[PHP 7.0] Update self in final class ( #5304 )
2021-01-24 20:12:02 +00:00
Tomas Votruba
0dc20048ae
Cleanup too detailed order rules + add TypedPropertyFromStrictConstructorRector ( #5288 )
2021-01-22 18:47:02 +00:00
Tomas Votruba
87494ce3a6
Print only changed docblocks 🎉 🎉 🎉 ( #5251 )
2021-01-20 16:17:59 +00:00
Tomas Votruba
81eeb2771b
Various cherry-pick ( #5243 )
...
* [Transform] Add VariableMethodCallToServiceCallRector
* use direct phpdocinfo
* cleanup
* narrow DoctrinePropertyAnalyzer
* misc
2021-01-19 20:39:57 +00:00
Abdul Malik Ikhsan
2e911431e9
[PHPStan] Fix duplicate report PreventDuplicateClassMethodRule ( #5225 )
...
* [PHPStan] Fix duplicate report PreventDuplicateClassMethodRule
* reg
2021-01-18 17:46:10 +01:00
Tomas Votruba
ea1f7bd758
Lower class complexity ( #5208 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-17 15:43:47 +00:00
Tomas Votruba
024a97d019
[RemovingStatic] Decouple static ( #5207 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-16 22:45:18 +01:00
Tomas Votruba
c0105bde25
Change maximal Rector complexity to 35 to avoid hard coupling to Rector classes ( #5206 )
...
* complexity
* decopule GetSubscriberEventsClassMethodFactory and ListenerServiceDefinitionProvider
* decopule UnusedParameterResolver, AssertMethodCallFactory, PropertyFetchWithVariableReplacer
* decopule ParamAndArgFromArrayResolver
* decopule JsonArrayFactory and JsonEncodeStaticCallFactory
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-16 19:11:11 +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
c2999b5db2
[Composer] Fix value object inliner with Version ( #5196 )
...
Co-authored-by: Michal Lulco <lulco@efabrica.sk>
2021-01-15 23:07:52 +00:00
Tomas Votruba
56409c5a3a
[phpstan] Remove unreported errors and duplicated methods ( #5193 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-15 21:27:36 +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