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
8e8446a909
remove METHOD_NAME attribute to promote single source of node ( #6063 )
2021-04-09 12:45:07 +02:00
Tomas Votruba
b03536c0f5
Improve token iterator usage ( #6046 )
...
* use token iterator
* add spaceless tag
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-06 20:36:50 +02: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
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
TomasVotruba
08f9c545a1
remove FirstLevelNodeVisitor
2021-03-18 02:24:39 +01:00
TomasVotruba
3746f24cf4
remove FUNCTION_NODE attribute
2021-03-18 00:00:16 +01:00
TomasVotruba
de02a85e3f
remove parent class
2021-03-18 00:00:16 +01:00
Tomas Votruba
09a3adb696
Less attributes ( #5884 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-17 23:03:49 +01:00
Tomas Votruba
72d6f1ab86
cleanup unneeded AbstractTemporaryRector methods ( #5648 )
2021-02-21 23:39:53 +00:00
Tomas Votruba
e04d820bc5
[CodeQuality] Improve CompactToVariablesRector to cover previously defined array ( #5424 )
2021-02-05 12:40:28 +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
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node ( #4522 )
...
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node
* update DecoupleClassMethodToOwnClassRector
* [ci] add rebase jobp
* disable fail fast for unit tests
* misc
2020-10-31 12:59:40 +00:00
Tomas Votruba
0f2e6d407e
[DoctrineAnnotaitonGenerated] Update to doctrine/annotations 1.11 + fix static ( #4479 )
2020-10-25 14:43:05 +01:00
Tomas Votruba
a31837679d
[PHP 7.4] Add null on conditional type of property type ( #4394 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-12 16:34:28 +02:00
Tomas Votruba
4a76cdaa82
[SymfonyPHPConfig] Add monorepo split for value objects function ( #4153 )
...
* add monorepo split for symfony-php-config
* [SOLID] Prevent replacing referenced parametes with inlined constnat value
* make Symfon 5.0- compatible
* add support for reference skip in constructor
* [rector] add support for reference skip in constructor
* [cs] add support for reference skip in constructor
* improve misisng rule feedback
* underscore
* Fix ChangeReadOnlyVariableWithDefaultValueToConstantRector for new
* add clear-cache to all commands
* colors
* [rector] colors
* [cs] colors
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-10 17:42:43 +00:00
Tomas Votruba
1c4b510513
PHPStan: require iterable types ( #3936 )
...
* phpstan: require iterable types
* add link on relative path and line
* fix missing class type
* typed array in Rector code + add data provide support resolver
* remove duplicated set
* drop unused yaml ecs config
* add out-of-the-box directory for 3rd party packages
* static fixes
* [rector] static fixes
* [cs] static fixes
* [rector] [cs] static fixes
* generic types
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
TomasVotruba
990dab6196
add CLOSURE_NODE to attributes, move closure use name conflicting to BreakingVariableRenameGuard
2020-07-19 13:29:18 +02:00
TomasVotruba
34c40428f3
add VIRTUAL_NODE constant, prevent double post traversing nodes
2020-06-19 01:35:11 +02:00
TomasVotruba
e3463b1073
add comments constant to prevent typos
2020-05-25 17:03:48 +02:00
TomasVotruba
ffeb6c9f53
[PSR-4] Add test for NormalizeNamespaceByPSR4ComposerAutoloadRector
2020-05-14 00:35:00 +02:00
TomasVotruba
81f00b2366
add IS_REGULAR_PATTERN constant
2020-04-25 16:41:02 +02:00
TomasVotruba
f5d8804c20
improve PhpVersionFeature autocomplete by PHPStorm
2020-03-24 23:49:19 +01:00
TomasVotruba
c1417eada6
[CakePHPToSymfony] Add CakePHPBeforeFilterToRequestEventSubscriberRector
2020-02-03 01:42:33 +01:00
TomasVotruba
1dda9804f5
apply property and method order
2020-02-02 12:14:43 +01:00
TomasVotruba
b32ab6c01e
doc block manipulator refactoring to object
2020-01-30 22:45:28 +01:00
Jeroen Smit
10391ae7f2
Rewrite of expression to previous statement
2019-10-27 17:50:26 +01:00
Tomas Votruba
557ec94cd7
improve screen file command
2019-10-14 15:22:14 +02:00
Tomas Votruba
acfd930f54
apply PSR-12
2019-10-13 08:09:08 +02:00
Tomas Votruba
6a56bf2a8d
[DeadCode] Add RemoveUnreachableStatementRector
2019-10-03 11:59:58 +02:00
Tomas Votruba
a833ca1366
fqnize freshly namespaced class
2019-09-25 18:15:31 +02:00
Tomas Votruba
e4be05d01a
make getByType() return nullable
2019-09-12 11:32:06 +02:00
Tomas Votruba
72bb8d6ec0
remove getDoctrine*() methods from PhpDocInfo, use getByType() instead
2019-08-31 13:46:48 +02:00
Tomas Votruba
7c9df2cefe
rename Attribute to AttributeKey to prevent duplicated names with similar classes in 3rd party project
2019-04-13 14:21:36 +02:00
Tomas Votruba
f7043f956a
add get/set attribute constant name complete to .phpstorm.meta.php
2019-03-31 19:06:53 +02:00
Tomas Votruba
81493d3cae
add .phpstorm.meta.php
2019-02-02 01:33:39 +01:00