Skip to content

[CI] run all sets check#2043

Merged
TomasVotruba merged 4 commits intomasterfrom
invalid-config
Sep 26, 2019
Merged

[CI] run all sets check#2043
TomasVotruba merged 4 commits intomasterfrom
invalid-config

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Sep 26, 2019

Will prevent issues like: #2041

Closes #2042

# class { var $value; } → class { public $value; }
Rector\Php52\Rector\Property\VarToPublicPropertyRector: ~pu

Rector\Php52\Rector\Property\VarToPublicPropertyRector: ~
Copy link
Copy Markdown
Member Author

@TomasVotruba TomasVotruba Sep 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gnutix This was the issue :D slow PHPStorm + my hasty hands to run pu as phpunit

Copy link
Copy Markdown
Contributor

@gnutix gnutix Sep 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahahah that's a nice one xD Too bad it's still "valid YAML"... can't catch this with a linter.
I confirm that disabling the celebrity import works.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed :D

But now it's not valid for the configuration - it will throw exception here now: https://github.com/rectorphp/rector/pull/2043/files#diff-4b356c6550ab7f23c4b4d17595032977R69

@TomasVotruba TomasVotruba merged commit 25c83cc into master Sep 26, 2019
@TomasVotruba TomasVotruba deleted the invalid-config branch September 26, 2019 11:38
TomasVotruba added a commit that referenced this pull request Apr 10, 2022
rectorphp/rector-src@b9a912b [DX] RectorConfig - add ruleWithConfiguration() and other methods (#2043)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DX] Improve error message about invalid config - indent path

2 participants