Commit Graph

742 Commits

Author SHA1 Message Date
Tomas Votruba
ac7a03f800
[php-parser] upgrade to 4.10.5 - add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode (#6325)
* add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode

* include preload in dev repository too

* include preload function
2021-05-04 14:21:34 +02:00
Tomas Votruba
e83b7f2538
[PHPStan] Resolve dependency juggling (#6258) 2021-04-28 09:33:25 +00:00
Tomas Votruba
baa26986f2
Remove AnnotatedPropertyInjectToConstructorInjectionRector by splitting to Nette and Symfony packages (#6250) 2021-04-26 10:39:42 +00:00
Tomas Votruba
5cda5de4ac
Decouple Rector PHPStan rules to own package (#6242) 2021-04-25 23:12:14 +00:00
Sebastian Schreiber
255b1fcbf7
[TASK] Add template type option for init command (#6233) 2021-04-25 21:43:59 +02:00
Tomas Votruba
793dd3fd2e
[Downgrade PHP 7.1] Fix empty item on SymmetricArrayDestructuringToListRector (#6222)
* [Downgrade PHP 7.1] Fix empty item on SymmetricArrayDestructuringToListRector

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 22:28:00 +02:00
Tomas Votruba
a3ec81fe1f
Add setter/getter factory (#6219) 2021-04-23 18:14:51 +00:00
Tomas Votruba
ab6580de35
[Downgrade PHP 7.2] Make covariant change local methods only (#6218) 2021-04-23 17:54:30 +00:00
Sebastian Schreiber
95b31d0ca3
[TASK] Add ExtensionConfigResolver for rector/rector-installer (#6150)
Relates: 6129
2021-04-16 17:29:04 +02:00
Tomas Votruba
e7e1b091d2
Simplify PropertyFetchByMethodAnalyzer (#6147)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 22:30:36 +00:00
TomasVotruba
c98e180be9 skip static error 2021-04-15 23:41:07 +02:00
Tomas Votruba
268b32ff7e
[DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector (#6151)
* [DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 23:38:44 +02:00
Michal Lulco
be2a54e0b9
Collect method call renames for future usage (#6149) 2021-04-15 22:44:58 +02:00
Tomas Votruba
1e24618a9e
File reports (#6130) 2021-04-14 02:15:10 +00:00
Tomas Votruba
8b402bfe02
Make use of File object instead of passing around provider of file info, tokens, stmts etc. (#6110)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-13 00:12:48 +00:00
Tomas Votruba
06f85e4a68
Refactor file processors towards universal collector (#6085)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 10:34:04 +00:00
Tomas Votruba
081da74716
cleanup phpstan (#6096) 2021-04-10 23:47:54 +00:00
Tomas Votruba
b121d8e10a
Remove mapToDocString() and use describe() instead (#6095) 2021-04-10 23:28:08 +00:00
Sebastian Schreiber
2b671a27d5
[FEATURE] Output changelog url in OutputFormatterInterface (#6073) 2021-04-10 16:54:24 +02:00
Tomas Votruba
0ef3b600e3
[PHPStanExtensions] Add NoClassReflectionStaticReflectionRule (#6078) 2021-04-10 14:17:21 +02:00
Tomas Votruba
9e6e3f7a92
Simplify set provider (#6077)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-10 11:38:25 +00:00
Tomas Votruba
31566dc869
Traverse phpdoc with use of PhpDocNodeVisitor (#6045)
* make use of new simple-php-doc-parser

* add ParamPhpDocNodeVisitor

* remove uneeded contracts

* skip bool instanceof

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-06 19:33:09 +02:00
Tomas Votruba
047045636f
comoser: bump package deps with static doctrine/annotation parser (#6040) 2021-04-05 14:22:24 +00:00
Tomas Votruba
28ebdf833c
Extract AbstractValuesAwareNode to improve working with values (#6036) 2021-04-05 10:40:13 +02:00
Abdul Malik Ikhsan
6fe05c462c
[DowngradePhp72] Add DowngradePregUnmatchedAsNullConstantRector (#6021)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 13:40:55 +02:00
Tomas Votruba
b2412ad62a
Refactor doctrine/annotation from dynamic to own static-reflection parser (#5974)
* remove doctrine/annotations

* Refactor doctrine/annotation parser to static reflection with phpdoc-parser

* remove doctirne-annotation-parser-syncer

* remove annotation stubs

* use nodes

* almost there

* [ci-review] Rector Rectify

* skip temporary

* phpstan: remove fixed messages

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-04 11:01:11 +02:00
Tomas Votruba
03c3a6310b
[BetterPhpDocParser] Improve TagValueNodeReprintTest (#6016)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-30 14:24:16 +00:00
Tomas Votruba
5fa858b072
[DoctrineAnnotationSyncer] Remove to move to static reflection (#6006) 2021-03-29 13:01:35 +00:00
Michal Lulco
2d469d3068
Added upgrade league/event to 3.0 (#5929) 2021-03-23 12:49:40 +01:00
Tomas Votruba
4f27f39e70
Remove dynamic type checks #3 (#5942) 2021-03-21 23:07:40 +00:00
Tomas Votruba
ae1c6b90f7
Remove dynamic type checks #2 (#5941) 2021-03-21 21:31:18 +00:00
Tomas Votruba
a781b3bd12
Remove dynamic type checks (#5939) 2021-03-21 19:41:17 +01:00
Tomas Votruba
4d760ddf44
[PHPStan] Add NoIsAStaticReflectionRule (#5937)
* [PHPStan] Add NoIsAStaticReflectionRule

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-21 15:12:38 +01:00
Tomas Votruba
89a7afb5a4
Merge DeadDocBlock to DeadCode (#5936) 2021-03-21 12:57:56 +00:00
Tomas Votruba
b28b8742fc
use rector-nette with tags (#5924)
* use rector-nette with tags

* redirect Kdyby sets

* use local ParamAnalyzer
2021-03-20 22:16:54 +01:00
Tomas Votruba
cfa61bc2dd
remove PhpDocNodeTransformerInterface overly abstraction; merge AttributeAwarePhpDoc to BetterPhpDocParser (#5920)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-20 16:27:18 +01:00
Tomas Votruba
025e6ed571
[PhpDocParser] Make use of native attributes (#5841)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 14:33:58 +00:00
Tomas Votruba
33daf1de2e
fixup (#5897) 2021-03-18 14:29:32 +01:00
TomasVotruba
8685a44ed0 BetterNodeFinder improvements 2021-03-18 12:27:34 +01:00
Tomas Votruba
a389839c5c
[CI] Downgrade Rector to PHP 7.1 + prefix it (#5880)
* [downgrade] simplify to 2 configs

* rename downgrade_packages.sh to downgrade_rector_to_php71.sh

* add test case stub

* [CI] add linter for php code

* [CI] update tagged workflow

* update for covariance

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-18 02:48:44 +01:00
Tomas Votruba
37eb07af6e
move stubs to composer-autoload (#5890)
* move stubs to composer-autoload

* remove duplicate classes

* apply Rector
2021-03-18 02:10:01 +01:00
Tomas Votruba
575131d0e2
[Compiler] Add downgrade-paths command (#5887) 2021-03-18 00:42:12 +01:00
Tomas Votruba
69e66cbf1f
Replace StaticRectorStrings with Stringy class, remove CamelCaseFunctionNamingToUnderscoreRector to avoid naming rules (#5882) 2021-03-17 19:59:18 +00:00
Tomas Votruba
2be6607854
[Reporting] Move missing rector services to single class (#5881) 2021-03-17 19:59:47 +01:00
Tomas Votruba
f92c18514a
[DX] Forbid @required annotation (#5869) 2021-03-16 00:49:31 +00:00
Tomas Votruba
751a7453dd
Apply new PHPStan rules from Symplify (#5843)
* apply new PHPStan rules from Symplify

* less directories to speedup CI
2021-03-14 14:11:24 +01:00
Tomas Votruba
da12199150
cleanup return docs (#5834) 2021-03-13 16:15:10 +01: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
721f619a1d
Post moving cleanup (#5827) 2021-03-12 23:52:38 +00: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