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
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
Tomas Votruba
7f8d0d5af8
misc ( #5805 )
2021-03-09 00:29:10 +00:00
Tomas Votruba
80c4fc8aab
[TypeDeclarationg] Add Tokens iterator to AddArrayReturnDocTypeRector and AddArrayParamDocTypeRector ( #5796 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-08 14:52:36 +00:00
Tomas Votruba
896ca733dc
cherry-pick downgrade update ( #5794 )
2021-03-07 21:25:43 +00:00
Tomas Votruba
8d79b4fb9e
[TypeDeclaration] Improve param by caller type #4 ( #5793 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-07 21:07:50 +00:00
Tomas Votruba
ba1444959d
[TypeDeclaration] Improve param by caller type #2 ( #5787 )
2021-03-07 14:27:17 +00:00
Tomas Votruba
031deda881
[TypeDeclaration] Add AddParamTypeFromCallersRector ( #5782 )
2021-03-06 21:16:18 +00:00
Tomas Votruba
a63b232eca
cleanup ( #5763 )
2021-03-03 21:51:04 +00:00
Tomas Votruba
382f146eaf
Merge CoreRectorInterface ( #5762 )
2021-03-03 22:28:27 +01:00
Tomas Votruba
bfa5416077
drop AbstactCommand, inline ( #5761 )
2021-03-03 19:34:32 +00:00
Tomas Votruba
0a7ce80f4f
[Renaming] Fix importing of just renamed function ( #5755 )
...
Co-authored-by: Michal Lulco <lulco@efabrica.sk>
2021-03-03 12:54:03 +00:00
Tomas Votruba
516b4b94fa
[Defluent] Remove AbstractFluentChainMethodCallRector ( #5751 )
2021-03-03 12:57:04 +01:00
Tomas Votruba
d5bf66f9cd
[CI] run rules dir by dir to identify static reflection weak sposts ( #5720 )
...
* [CI] run rules dir by dir to identify static reflection weak sposts
* [ci-review] Rector Rectify
* consistency
* remove unused property
* add data provider test fixture
* add InvertedIfFactory to lower complexity
* [DeadCode] Skip unused public method if data provider
* misc
* [DeadCode] Do not remove class method if required by parent ocntract
* make use of ContextAnalyzer to find the loop
* narrow dirs one level
* narrow packages
* narrow
* use directly
* narrow
* correct constant name to keep BC
* bump deps
* add version_compare to removed extra params, just to be sure
* do not return function node on unchanged name
* narrow
* add support for multiple variants
* widen
* remove double check [skip ci]
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-02 14:43:36 +01:00
Tomas Votruba
11dab764e6
[PHPStanStaticTypeMapperChecker] Drop as very limited testing benefit, overly protective ( #5721 )
2021-03-02 11:22:49 +00:00
Tomas Votruba
47743269e8
Removing parent classes ( #5714 )
2021-03-01 02:28:35 +01:00