299 Commits

Author SHA1 Message Date
Tomas Votruba
47d722993a Updated Rector to commit ae96c1a30812389737385b63ca9c79f8ab1d876e
ae96c1a308 Skip FormatPerservingPrinterTest on windows (#109)
2021-05-26 10:17:03 +00:00
Tomas Votruba
9b5515a16d Updated Rector to commit 4f4c416041047f60b03ffeae4fb7235a01f65873
4f4c416041 [CodeQuality] Skip UnusedForeachValueToArrayKeysRector when value used in compact (#100)
2021-05-25 11:50:23 +00:00
Tomas Votruba
89eee6ea29 Updated Rector to commit 5b74ac7ae62b7fc1a7c094eb052b5f3a822f9852
5b74ac7ae6 [PhpDocInfoPrinter] fix running tests on windows (#98)
2021-05-24 16:18:32 +00:00
Tomas Votruba
8ef1dfb7af Updated Rector to commit ed8191fb64939954cb7352265ca5a09b809fca44
ed8191fb64 [Docs] Fixes rector_rules_overview.md docs link in each rules (#92)
2021-05-23 09:33:26 +00:00
Tomas Votruba
90a746a8cf Updated Rector to commit 617c04a9be1cef77fb23805109a9023fbc09b59d
617c04a9be [TypeDeclaration] Separated inferred and no types (#90)
2021-05-22 20:37:33 +00:00
Tomas Votruba
3689a516db Updated Rector to commit db00e23b5e487443b74e612069af9e9a178e45f1
db00e23b5e [PHP 8.0] Downgrade  (#85)
2021-05-21 16:44:29 +00:00
Tomas Votruba
91a82e9ca5 Updated Rector to commit b5c00cbf1ca13a2cdfa040d78a97b098c6b5b3cf
b5c00cbf1c [BUGFIX] Respect indent_size for tabs (#81)
2021-05-20 14:35:36 +00:00
Tomas Votruba
1fc5dba0b1 Updated Rector to commit 7a712ba445b2cb2ae13d07b89ff354ef52b2df1f
e2bd8de348 resolve version on release 7a712ba445 date time
2021-05-19 00:12:47 +00:00
Tomas Votruba
270eaef34d Rector 0.11.5 2021-05-18 13:45:09 +00:00
Tomas Votruba
9987c84c58 Rector 0.11.3 2021-05-17 07:55:27 +00:00
Tomas Votruba
10b65060a2 Updated Rector to commit cefe13feab65ddabdce51fc21d7d1effd5896287
cefe13feab fix rector rules overview dump location (#49)
2021-05-16 08:19:51 +00:00
Tomas Votruba
80c6cbecea Updated Rector to commit fa8e59708b7c6c2916f5afeefef80ba90346152f
fa8e59708b Use local version resolver (#36)
2021-05-15 01:39:19 +00:00
Tomas Votruba
4c713c78de Updated Rector to commit fa8e59708b7c6c2916f5afeefef80ba90346152f
fa8e59708b Use local version resolver (#36)
2021-05-14 21:57:41 +00:00
Tomas Votruba
146dc7d680 Updated Rector to commit f2c0023dad9a6a955c0af1553148adedc7bdb011
f2c0023dad [PHP 8.1] Add MyClabs enum to native ENUM (#30)
2021-05-14 09:53:43 +00:00
Tomas Votruba
693ce44ea9 Updated Rector to commit 9305fdf4f4708e2687a55d44d3aa663a1fd8cb5c
9305fdf4f4 typo
2021-05-13 00:24:58 +00:00
Tomas Votruba
758a350d87 Updated Rector to commit 6af13d7b76234edf43dbb0b4c533912cec19f971 2021-05-12 13:15:45 +00:00
Tomas Votruba
436fcb7505 Updated Rector to commit 0684911cdf88b424d6e2a9ba0689f0e35e94ebd6
0684911cdf [PHP 8.0] Promoted property fixes (#8)
2021-05-11 10:40:34 +00:00
Tomas Votruba
7d36c3b0b9 Updated Rector to commit a80cf5292d6df5e83b7d17c78630506e361bede9
a80cf5292d revert to working scoper 0.14
2021-05-10 22:23:08 +00:00
Tomas Votruba
363a910cf7 Updated Rector to commit a7db1ad94df4879885b9106773d2f8335cb40e49
a7db1ad94d use scoper 0.15
2021-05-10 22:10:16 +00:00
Tomas Votruba
345a89a7e2 Updated Rector to commit a657258f317da1f6fd42069bf3b09198d3cfd635
a657258f31 cleanup CHANGELOG, is part of GitHub releases now (#2)
2021-05-10 00:23:30 +00:00
Tomas Votruba
d56e7982d0 Updated Rector to commit dedd4b55fe3e03cae9bd5ac822cfdccd8deb3fb6
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
Tomas Votruba
d225be28d8
[scoped on PHP 7.0] bin/rector run with extracted phpstan (#6371) 2021-05-06 23:43:45 +02:00
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