Commit Graph

177 Commits

Author SHA1 Message Date
TomasVotruba
37e21653d4 fix composer root path 2021-05-04 14:26:41 +02:00
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
Abdul Malik Ikhsan
a2bb65c272
[Preload] Fixes root path when rector installed as dependency (#6324)
* [Preload] Fixes root path when rector installed as dependency

* move to tests bootstrap

* check in prefixed only
2021-05-04 13:49:15 +02:00
TomasVotruba
73d25d57d8 fix preload.php position 2021-04-29 21:45:51 +02:00
TomasVotruba
f15648eb05 add preload in build 2021-04-29 19:55:03 +02:00
TomasVotruba
26d6fff51d preload local installed versions 2021-04-29 16:50:11 +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
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
2be6607854
[Reporting] Move missing rector services to single class (#5881) 2021-03-17 19:59:47 +01:00
Matthias Pigulla
a2e36d5a04
Use the autoloader from where Rector was installed, not started (#5772)
* Use the autoloader from where Rector was installed, not started

* Remove autoloader already covered in AutoloadIncluder::includeDependencyOrRepositoryVendorAutoloadIfExists()

* Fix path to project autoloader

When Rector is installed as a project dependency through composer,
this script it will be in {vendor}/rector/rectory/bin/rector.php,
so ../../.. is where autoload.php lives.
2021-03-04 15:02:07 +01:00
Abdul Malik Ikhsan
f3af24321a
[Bin] Handle possible PHPStan Stubs runtime locations (#5649) 2021-02-23 10:50:13 +00:00
Tomas Votruba
0e5a777b00
simplify input configs (#5632)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-20 19:48:04 +00:00
Abdul Malik Ikhsan
648bea9305
[Bin] Using file_exists() for check PHPStan stub ReflectionUnionType and Attribute exists (#5581) 2021-02-17 01:23:12 +07:00
Abdul Malik Ikhsan
5921571647
[Bin] Add PHPStan Stub ReflectionUnionType and Attribute to bin/rector (#5569) 2021-02-16 16:57:16 +01:00
Tomas Votruba
520335251d
[scoper] keep phpstan.phar to avoid conflict in install (#5009)
* fix scoping of Symfony autodiscovery namespace

* scoped: add along phpstan run

* wait longer, the old version is used

* keep phpstan.phar
2020-12-27 21:14:39 +00:00
Tomas Votruba
d4883d44d9
[Prefixed Rector] Add package-scoper approach (#4559) 2020-12-26 00:17:31 +01:00
Tomas Votruba
5a47e36b72
Add Visibility consts (#4981) 2020-12-24 23:01:30 +01:00
Tomas Votruba
5c66890e46 simplify autoload in bin/rector.php 2020-11-27 21:00:10 +00: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
0993088cda
[SymfonyPhpConfig] Use Symplify package instead + simplify set validation (#4694)
* [SymfonyPhpConfig] Use Symplify package instead

* [SymfonyPhpConfig] Drop forgotten custom-jobs Rectors

* [CI] simplify set validation

* from inline functions to Static class

* cleanup

* decouple rector.php to allow static analysis and coding standards
2020-11-26 16:44:27 +00: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
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
Marek Šimeček
66bf80f891
changed files detector test (#4256)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-18 12:06:01 +02:00
Julian Pollmann
bdb3750948
FixMissing Ruleset does not throw SetNotFoundException (#4117) 2020-09-03 15:55:13 +02:00
Tomas Votruba
042f08f71b
Drop YAML config support (#4081)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-30 23:29:39 +02:00
Tomas Votruba
4ef653976f
Fix invalid set reporting (#4006)
* do not use internal rectors

* report invalid set

* remove dashes before number in set name

* [rector] remove dashes before number in set name

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 19:27:41 +00:00
Tomas Votruba
ac4e73b72f
add ConfigShifter to make use of root config parameter override (#3994) 2020-08-20 15:37:13 +02:00
TomasVotruba
6cc9432fbc warn about YAML deprecation + load YAML sets 2020-07-22 22:42:56 +02:00
TomasVotruba
e5d7cee695 move RectorConfigsResolver to bootstrap, fix paths 2020-07-22 00:55:22 +02:00
TomasVotruba
2eb21e1087 make use of new set from symplify 2020-07-21 14:10:48 +02:00
TomasVotruba
3a9375007e decouple Set package 2020-07-21 01:39:24 +02:00
TomasVotruba
2f927842a7 move sets to single /set directory 2020-07-21 00:46:53 +02:00
TomasVotruba
aeb7937972 add set constants + command to generate them 2020-07-20 01:00:49 +02:00
TomasVotruba
bda3e5aa28 load rector.php config 2020-07-18 21:15:27 +02:00
TomasVotruba
78f830a6f7 add PHP support to FileHashComputer 2020-07-17 00:59:52 +02:00
dobryy
78e518c105 check minimal php version 2020-07-08 20:36:27 +02:00
Markus Staab
de81569417
Define __RECTOR_RUNNING__ constant at analysis time 2020-05-08 14:12:25 +02:00
TomasVotruba
f8c659a43d autoload reference file before creating container, so phpstan.neon extensions are loaded 2020-04-25 19:39:04 +02:00
TomasVotruba
c4dee7782f various fixes 2020-04-20 15:40:09 +02:00
TomasVotruba
5f4a2c1e3b Add changed files caching 2020-04-20 01:54:17 +02:00
Ondrej Mirtes
e8ea606e12
Fixed PHPStan issues 2020-02-08 20:00:10 +01:00
TomasVotruba
cc75b8b0af move stubs autoload after class autoload 2020-02-07 07:13:53 +01:00
TomasVotruba
607358a8e1 move src classes to Rector\Core namespace to prevent duplications 2020-02-07 00:57:45 +01:00
TomasVotruba
9e0ca0f234 skip doctrine for now, impossible to fix 2020-02-06 17:09:57 +01:00
TomasVotruba
3b2cfbf2c7 fix array expr 2020-02-06 17:04:12 +01:00
TomasVotruba
bace233ed4 load just once experiment 2019-12-09 00:57:44 +01:00
TomasVotruba
a17c90227c simplify autolaod in bin/rector 2019-12-08 18:01:41 +01:00
TomasVotruba
a1eb10be06 autoload tweaks 2019-12-08 18:01:41 +01:00
TomasVotruba
290d0b4ee5 fixup! Merge pull request #2409 from rectorphp/phalcon-round-2 2019-12-08 18:01:29 +01:00
TomasVotruba
53eda0bb8e use new Symplify 7 2019-11-23 18:49:27 +01:00