Tomas Votruba
b604e1676c
[Privatization] Add ReplaceStringWithClassConstantRector ( #5156 )
...
* [Privatization] Add ReplaceStringWithClassConstantRector
* README: add to scoped
2021-01-12 13:41:47 +00:00
TomasVotruba
e71a107b1b
[SymfonyCodeQuality] Create value object in one step
2021-01-12 01:04:45 +01:00
Tomas Votruba
6c11a254aa
[SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector ( #5140 )
...
* [SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector
* optimizations
2021-01-11 20:12:10 +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
bc0113dbd7
use templates ( #5116 )
2021-01-08 23:30:33 +01:00
Tomas Votruba
014c019449
[fixtures] require skip prefix on skipped files ( #5079 )
...
* skip unnecesary test case
* namespace corrections, skip prefix corrections
* hide for now
* skip new phpstan cases
2021-01-03 15:54:27 +00:00
Tomas Votruba
0f221f92a4
Add template annotation resolving support ( #5019 )
...
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
2020-12-28 13:01:27 +00:00
Tomas Votruba
d4883d44d9
[Prefixed Rector] Add package-scoper approach ( #4559 )
2020-12-26 00:17:31 +01:00
Tomas Votruba
ed475a2e3c
[static] no nullable node ( #4995 )
...
* move phpstan.neon cusotm rules to rector-rules.neon, to cleanup main config
* enable forbidden rule on nullable nodes
* bump to Symplify 9.0.17
* make name non-nullable
* skip non-nullable
* skip null dim
2020-12-25 20:50:50 +00:00
Tomas Votruba
d256bbd8c0
change rector-ci.php to rector.php ( #4994 )
2020-12-25 19:11:33 +01:00
Tomas Votruba
db89b5eefa
[CodeQuality] Move MoveVariableDeclarationNearReferenceRector ( #4989 )
...
* [CodeQuality] Move MoveVariableDeclarationNearReferenceRector
* move code-quality-strict rules to own namespace
* move MoveVariableDeclarationNearReferenceRector to CodeQualityStrict
* add ClassConstFetchFactory
* static fixes
2020-12-25 16:22:19 +00:00
Tomas Votruba
cffd7ea0ac
[CodingStyle] Move PHPStormVarAnnotationRector ( #4985 )
...
* [CodingStyle] Move PHPStormVarAnnotationRector
* [ci-review] Rector Rectify
* [DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here (#4984 )
* [DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
* [ci-review] Rector Rectify
* cleanup docs
* static fixes
* [ci-review] Rector Rectify
* remove duplicated
* multi use case
* misc
* [ci-review] Rector Rectify
* fixes
* remove order set, slow
* move UseMessageVariableForSprintfInSymfonyStyleRector from solid set to coding-style
* make unique-named variables to prevent accidental override and improve readability
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 13:20:13 +00:00
Tomas Votruba
61b72a8d7c
[DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here ( #4984 )
...
* [DeadDocBlock] Move RemoveNonExistingVarAnnotationRector here
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 00:56:59 +00:00
TomasVotruba
0326aec71c
renames on regex
2020-12-25 00:28:36 +01:00
Tomas Votruba
5a47e36b72
Add Visibility consts ( #4981 )
2020-12-24 23:01:30 +01:00
Tomas Votruba
319d6bfca1
add phpstan-for-rector config path, consolidate return type extensions - re-use from Symplify ( #4973 )
...
* add phpstan-for-rector config path, to separate phpstan and extensions that help Rector with precise types
* move type value object to value object
* moving
* remove KernelGetContainerAfterBootReturnTypeExtension, use one from symplify
* remove ContainerGetDynamicMethodReturnTypeExtension to ContainerGetReturnTypeExtension
* remove nette extension
* add nette-extension
* removed delegated rule
* delegate implmenets + code sample PHPStan rule to symplify
2020-12-24 16:31:24 +00:00
Abdul Malik Ikhsan
9433616c63
[EarlyReturn] Add ChangeOrIfReturnToEarlyReturnRector ( #4974 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-24 14:20:16 +01:00
Tomas Votruba
f6900e687c
[PHP 8.0] Skip exception in match, must be expr ( #4971 )
...
* [PHP 8.0] Skip exception in match, must be expr
* add test case for var strings
* [ci-review] Rector Rectify
* skip universal
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-23 23:44:16 +00:00
Tomas Votruba
61e1ceaf5c
Cover ArrayShape type and other doc nodes ( #4967 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-23 22:11:37 +01:00
Tomas Votruba
a759f1ffbc
Static fixes 3 ( #4930 )
...
* cleanpu baseline
* static fixes
* staitc fixes
* [Naming] Remove dead classes UnderscoreCamelCaseParamRenamer and MatchTypeParamRenamer
* static fixes
* value object fixes
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-21 02:12:42 +00:00
Tomas Votruba
37b3cecda3
Upgrade to php-parser 4.10.4 and PHPStan 0.12.63 ( #4926 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-20 22:05:48 +01:00
Tomas Votruba
574c7cd174
[static] Narrow param types, remove duplicated methods ( #4921 )
...
* narrow types and other static fixes
* duplicates static fixes
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-20 13:50:55 +01:00
Tomas Votruba
5a1c7f2699
[phpstan] remove non-existing packages/file-system-rector/src/Rector/AbstractFileSystemRector.php ( #4886 )
2020-12-14 18:37:57 +01:00
Tomas Votruba
f197e25793
droping events ( #4865 )
...
* drop unused ReportCollector and releted avain chains
* update fixed comma trail downgrade in php-parser
* add post runner interface
* [CodingStyle] Enabe post-inc-dec
* [ci-review] Rector Rectify
* test ci
* bump phpunit
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 14:58:47 +00:00
Tomas Votruba
56dedb1786
static fixes ( #4864 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 14:53:10 +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
d27997197b
Static updates ( #4857 )
2020-12-11 18:25:42 +01:00
Leonardo Losoviz
ff2ea86176
Renamed NoParticularNodeRule to ForbiddenNodeRule ( #4848 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-11 09:58:51 +01:00
Tomas Votruba
2ea430b0ec
[PHP 8.0] Fix used variable rename in propperty promotion ( #4841 )
...
* [PHP 8.0] Add test case for used variable
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:40:38 +00:00
TomasVotruba
7db83da35d
[CI] check conflicting methods in tests
2020-12-09 23:35:48 +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
Tomas Votruba
eac130e705
[PHP 8.0] Make Attribute silent keys explicit, with named args ( #4834 )
...
* decouple TagName class
* remove attribute aware from data provider tag value node, as unique class
* add RequiredTagValueNode
* make Attributes explicit, to avoid confusiong
2020-12-09 17:16:36 +00:00
Tomas Votruba
c68fd43b65
Bump to Symplify 9 ( #4830 )
...
* composer: bump to Symplify 9
* fix cs
* update InputDetector to StaticInputDetector
* add missign symplify/ packages
* remove already included phpstan configs
* [CI] test lowest deps on PHP 7.3, as minimum for Symplify 9
* bump doctrine/inflector and sebastian/diff
* [CI] symplify PHP 7.3 testing
2020-12-09 15:41:23 +00:00
Tomas Votruba
1f56646989
PHPStan rule decouple to Symplify ( #4786 )
...
* use ForbiddenMethodCallOnTypeRule from symplify
* fixup! use ForbiddenMethodCallOnTypeRule from symplify
* merge CommentCombiner to CommentsMerger
2020-12-05 11:41:55 +00:00
Tomas Votruba
5201e949a1
[PHPStanExtensions] Add ForbiddenMethodCallOnTypeRule + move from docComment and Comments to PhpDocInfo ( #4780 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-05 00:22:12 +01:00
Tomas Votruba
ca5399b249
[Downgrade] Fix file matching for ChangePhpVersionInPlatformCheckRector ( #4763 )
2020-12-03 12:27:00 +00:00
Tomas Votruba
2030badc19
[PHP 8.0] Add nette utils strings replace, static fixes ( #4741 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-01 14:52:24 +01:00
Tomas Votruba
267989bb05
[Docs] Add docblock docs ( #4740 )
...
* skip getUser() as the method is final
* drop comment along with removed node, as in other removed nodes
* [docs] add doc block docs
2020-12-01 01:09:50 +00:00
Tomas Votruba
79f3611dc9
remove ci-detector, make no-progress-bar api compatible with other CI tools ( #4734 )
2020-11-29 18:37:13 +01:00
Tomas Votruba
499d452f99
Various improvements ( #4717 )
2020-11-27 21:39:42 +01:00
Tomas Votruba
377c734975
drop old compiler ( #4716 )
2020-11-27 17:54:14 +01:00
Tomas Votruba
0eb6e29176
drop MinimalVersionChecker, is checked by composer itself ( #4715 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-27 17:32:38 +01:00
Tomas Votruba
8e7c4bfc96
[CI] do not push to forks
2020-11-24 21:30:17 +00:00
Abdul Malik Ikhsan
a38debb672
[DX] Fixes #4205 Change phpversion from string to php constant int type ( #4679 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-24 16:32:49 +01:00
Tomas Votruba
da6d703687
Improve Blade class renames ( #4676 )
...
* [Console] Use single point of command naming
* use blade in process command
* filter out blade templates from PHP files
* make test process blade as non php file
* add failing test
* remove duplicated tests
* rename php to php.inc suffix to make it skip to CI tools
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-23 19:16:48 +00:00
Tomas Votruba
cb57430655
[Renaming] Add renaming support for blade.php templates in Laravel ( #4672 )
...
* [CI] fix monorepo split
* naming, add blade.php suffix
* [Renaming] Add class rename support for laravel blade templates
* skip test fixture
2020-11-23 11:35:42 +00:00
Abdul Malik Ikhsan
715b616ada
[Solid] use Variable node type for for MoveVariableDeclarationNearReferenceRector ( #4670 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-23 11:40:29 +01:00
Tomas Votruba
b770151159
fix static
2020-11-20 11:46:12 +00:00
Tomas Votruba
26b71cce1d
[Laravel] Improve static to DI set ( #4662 )
2020-11-20 01:26:04 +01:00
Tomas Votruba
a6bec3d07e
remove RequireClassTypeInClassMethodByTypeRule ( #4634 )
2020-11-17 12:22:53 +01:00