894 Commits

Author SHA1 Message Date
Tomas Votruba
3f3811ab21
add dump_node() helper functoin (#6229) 2021-04-24 14:22:36 +00:00
Tomas Votruba
ba2d96c583
[composer] remove uuid package (#6228) 2021-04-24 16:04:10 +02:00
TomasVotruba
ee9ed46d43 composer: bump rector split package 2021-04-24 14:32:02 +02:00
Tomas Votruba
1d0ba2a439
Add AbstractTestCase (#6205) 2021-04-22 21:36:50 +00:00
Sebastian Schreiber
5cab6367fb
[TASK] Use rector-installer to load config of extensions (#6174) 2021-04-22 10:30:18 +02:00
Ruud Kamphuis
c87f5d7217
Allow composer/xdebug-handler v2 (#6179)
Hopefully this fixes:

```
  Problem 1
    - friendsofphp/php-cs-fixer is locked to version v3.0.0-rc.1 and an update of this package was not requested.
    - rector/rector 0.10.6 requires composer/xdebug-handler ^1.4 -> satisfiable by composer/xdebug-handler[1.4.0, ..., 1.4.6].
    - You can only install one version of a package, so only one of these can be installed: composer/xdebug-handler[1.4.0, ..., 1.4.6, 2.0.0].
    - friendsofphp/php-cs-fixer v3.0.0-rc.1 requires composer/xdebug-handler ^2.0 -> satisfiable by composer/xdebug-handler[2.0.0].
    - Root composer.json requires rector/rector ^0.10.6 -> satisfiable by rector/rector[0.10.6].
```
2021-04-20 19:09:06 +02:00
Tomas Votruba
101041d6ae
[DeadCode] Remove RemoveDefaultArgumentValueRector (#6148) 2021-04-16 00:11:58 +02:00
Tomas Votruba
a07e49c43b
bump Symplify packages (#6134) 2021-04-14 14:29:15 +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
TomasVotruba
3e4e9387c6 bump package rector deps 2021-04-09 18:27:12 +02:00
TomasVotruba
fae4a7512e composer: bump retcor phpunit 2021-04-09 17:15:27 +02:00
Tomas Votruba
e85dbf0422
[PHP 7.0] Cover named ctor with for (#6064) 2021-04-09 15:07:21 +00:00
Tomas Votruba
6ced3bd32a
Add upgrade path to Rector 0.10 - upgrade set included (#6061)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-09 01:12:42 +00:00
Tomas Votruba
8624cec9e5
use Symplify stable (#6054) 2021-04-08 12:23:34 +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
047045636f
comoser: bump package deps with static doctrine/annotation parser (#6040) 2021-04-05 14:22:24 +00: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
5fa858b072
[DoctrineAnnotationSyncer] Remove to move to static reflection (#6006) 2021-03-29 13:01:35 +00:00
TomasVotruba
c13d234e7d bump deps 2021-03-23 21:59:28 +01:00
TomasVotruba
2df54ae634 use self alias for deps 2021-03-23 21:51:49 +01:00
TomasVotruba
63dadb0888 composer: bump alias to 11-dev 2021-03-23 21:42:47 +01:00
TomasVotruba
29215c4d86 composer: bump to phpdoc-parser 0.5.2 2021-03-23 21:33:50 +01:00
TomasVotruba
3b81a2ac1a composer: lock to doctrine package 2021-03-22 03:00:15 +01:00
Tomas Votruba
6ba046ef2b
add Doctrine configs (#5945) 2021-03-22 02:55:01 +01:00
TomasVotruba
e7117092bf update to doctrine package 2021-03-22 02:31:22 +01:00
TomasVotruba
2526139e4d use DoctrineSetList 2021-03-22 02:03:56 +01:00
TomasVotruba
56b5ac0610 composer: require 0.10 dector deps 2021-03-22 00:23:46 +01:00
Tomas Votruba
44375f6637
Post Nette tags split cleanup (#5925)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-20 21:47:40 +00:00
TomasVotruba
944c5e6bc1 dev-main 2021-03-20 20:35:19 +01:00
TomasVotruba
6f8d61a6bc composer: add branch alias 2021-03-20 20:32:54 +01:00
TomasVotruba
49c81bec47 composer: remove replace-self 2021-03-20 19:28:36 +01:00
Tomas Votruba
c9df17990b
[CakePHP] Decouple to own package (#5918) 2021-03-20 10:40:50 +01:00
Tomas Votruba
163b37a30a
[Testing] Use single config-based testing to isolate scope unite testing for core + community packages (#5837) 2021-03-19 21:29:10 +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
TomasVotruba
abed1ff280 composer: allow phpstan 0.12.82 2021-03-19 11:30:21 +01:00
Tomas Votruba
16b2b0376c
[PHPUnit] Decouple to own package (#5905) 2021-03-19 10:52:08 +01:00
Tomas Votruba
3aa1f86778
[Laravel] Decouple to own package (#5904) 2021-03-19 02:09:51 +01:00
Tomas Votruba
21db1e9e38
[Nette] Decouple to own package (#5903)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-19 01:33:30 +01:00
TomasVotruba
9d5e99cf74 bump deps 2021-03-19 00:36:11 +01:00
TomasVotruba
69471cb59e use stable version 2021-03-18 23:52:44 +01:00
Tomas Votruba
8304d70f67
[Symfony] Decouple to own package (#5900) 2021-03-18 22:03:54 +00:00
TomasVotruba
e61f80bd21 cleanup 2021-03-18 12:21:20 +01:00
TomasVotruba
6ca687a213 remove duplicated findFirstAncestorInstanceOf method 2021-03-18 12:09:26 +01:00
Tomas Votruba
6af2805a1c
Move symfony/cache to simpler nette/caching (#5889)
* composer: remove symfony/cache

* [Caching] Add nette/cache, lighter

* make sure cache directory exists
2021-03-18 02:11:54 +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
69e66cbf1f
Replace StaticRectorStrings with Stringy class, remove CamelCaseFunctionNamingToUnderscoreRector to avoid naming rules (#5882) 2021-03-17 19:59:18 +00:00
Tomas Votruba
683f8319a8
[CI] simplify php linter (#5867)
* [CI] simplify php linter

* [CI] merge code analysis to one

* [docs] remove nodes overview, already in external repository

* remove unused ci job

* [CI] check annotation parser + sync

* [DeadCode] Remove RemoveEmptyAbstractClassRector, not reliable with static-reflection, opionated

* [CI] remove set validation, PHPStan handles this better with PHP

* remove dead-code-strict [skip ci]
2021-03-15 23:44:28 +01:00
Tomas Votruba
c1c6c9aaf2
[downgrade] remove extra configs, unite parameters (#5861) 2021-03-15 13:19:57 +00:00
TomasVotruba
09f7d76368 fix namespace autoload 2021-03-14 14:22:25 +01: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