Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change default ruleset to @PER-CS (only behind PHP_CS_FIXER_FUTURE_MODE=1) #7650

Merged
merged 4 commits into from
Jan 1, 2024

Conversation

keradus
Copy link
Member

@keradus keradus commented Dec 31, 2023

@keradus keradus marked this pull request as ready for review December 31, 2023 14:36
@keradus keradus changed the title feat: change default ruleset to PER-CS (only behind PHP_CS_FIXER_FUTURE_MODE=1) feat: change default ruleset to @PER-CS (only behind PHP_CS_FIXER_FUTURE_MODE=1) Dec 31, 2023
@coveralls
Copy link

coveralls commented Dec 31, 2023

Coverage Status

coverage: 94.769% (-0.007%) from 94.776%
when pulling fa55aa8 on keradus:default_ruleset
into 600e630 on PHP-CS-Fixer:master.

src/Config.php Outdated

private bool $usingCache = true;

public function __construct(string $name = 'default')
{
$this->name = $name;
// @TODO 4.0 cleanup
if (getenv('PHP_CS_FIXER_FUTURE_MODE')) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (getenv('PHP_CS_FIXER_FUTURE_MODE')) {
if (filter_var(getenv('PHP_CS_FIXER_FUTURE_MODE'), FILTER_VALIDATE_BOOL)) {

In order to handle several true-like values.

Copy link
Member Author

@keradus keradus Dec 31, 2023

Choose a reason for hiding this comment

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

good idea, but we need it in more places: #7651

@keradus keradus enabled auto-merge (squash) January 1, 2024 11:33
@keradus keradus merged commit 29d5159 into PHP-CS-Fixer:master Jan 1, 2024
25 checks passed
@keradus keradus deleted the default_ruleset branch January 1, 2024 12:23
danog pushed a commit to zoonru/PHP-CS-Fixer that referenced this pull request Feb 2, 2024
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.

None yet

3 participants