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
Abdul Malik Ikhsan
de09409152
[mysql-to-mysqli] Handle second parameter on mysqli_query swap for sql - conn variable ( #5130 )
...
Co-authored-by: Martin <admin@phpcode.eu>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-11 12:12:46 +01:00
Tomas Votruba
d1df8f76cd
drop PHPStanAttributeTypeSyncer, handled by external package ( #5131 )
2021-01-10 14:51:27 +01:00
Tomas Votruba
074298d35c
static fixes ( #5127 )
...
* static fixes
* fix remove class rule for tests
2021-01-10 11:01:40 +00:00
Tomas Votruba
1850a2dcc2
[Renaming] Add test fixture for same-namespaced short class fail ( #5040 )
...
Co-authored-by: Tom Klingenberg <tklingenberg@lastflood.net>
2020-12-29 17:01:51 +00:00
Michal Lulco
fee81507bb
Do not prefix Symplify\SymfonyPhpConfig ( #5030 )
2020-12-29 01:17:46 +01:00
TomasVotruba
3f07620ef1
unprefix Symplify/RuleDocGeneator
2020-12-28 23:11:17 +01:00
Tomas Votruba
52e604c6dd
[scoper] unprefix string classes to match types ( #5025 )
2020-12-28 23:09:11 +01:00
Tomas Votruba
520335251d
[scoper] keep phpstan.phar to avoid conflict in install ( #5009 )
...
* fix scoping of Symfony autodiscovery namespace
* scoped: add along phpstan run
* wait longer, the old version is used
* keep phpstan.phar
2020-12-27 21:14:39 +00:00
Tomas Votruba
34a2a497b3
[scoper] symplify prefix pick ( #5011 )
...
* use local composer.json for scoped dir
* remove dead directory
* remove dynamic return type extension, not used
* [ci] add along phpstan install
* [scoper] add psr-4 prefixing
2020-12-27 20:31:30 +00:00
TomasVotruba
978fdcdfd8
try symplify scoping
2020-12-27 14:05:05 +01:00