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

override new phpcs rule #465

Merged
merged 1 commit into from
Nov 10, 2017
Merged

Conversation

mathroc
Copy link
Contributor

@mathroc mathroc commented Nov 10, 2017

No description provided.

.travis.yml Outdated
@@ -10,6 +10,7 @@ matrix:
fast_finish: true
include:
- php: 5.3
dist: precise
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

This is already fixed in 6.0.0-dev.

@mathroc mathroc changed the title override new phpcs rules override new phpcs rule Nov 10, 2017
@erayd
Copy link
Contributor

erayd commented Nov 10, 2017

Won't forcing this to post, rather than simply disabling it, potentially introduce logic errors in the future? Changing the order of an increment / decrement operation in any situation that assigns the result somewhere is asking for trouble, as they are not equivalent.

Can we turn this rule off completely so that it leaves increment / decrement alone? I don't trust php-cs-fixer to recognize assignment situations, and it's introduced problems with this kind of assumption in the past.

@erayd
Copy link
Contributor

erayd commented Nov 10, 2017

Note the comments above regarding assignment also include using the result as input to another logic operation, regardless of whether a variable is explicitly set.

@mathroc
Copy link
Contributor Author

mathroc commented Nov 10, 2017

that’s true, it disabled it now, unfortunately it seems there is issue when running composer install with some version of php. might be related to #463 ?

Copy link
Contributor

@erayd erayd left a comment

Choose a reason for hiding this comment

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

Looks good 👍

.php_cs.dist Outdated
@@ -24,6 +24,7 @@ $config
'pre_increment' => false,
'trailing_comma_in_multiline_array' => false,
'simplified_null_return' => false,
'increment_style' => false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks :-)

@erayd
Copy link
Contributor

erayd commented Nov 10, 2017

...unfortunately it seems there is issue when running composer install with some version of php. might be related to #463 ?

Hooray, more dependency issues! Will take a look, hang on.

Copy link
Contributor

@erayd erayd left a comment

Choose a reason for hiding this comment

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

Dependency issues are historic, and are a result of this PR being opened against the wrong branch.

Please change the base branch for this PR to 6.0.0-dev.

@mathroc mathroc changed the base branch from master to 6.0.0-dev November 10, 2017 01:06
Copy link
Contributor

@erayd erayd left a comment

Choose a reason for hiding this comment

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

Perfect - thanks 👍

@mathroc
Copy link
Contributor Author

mathroc commented Nov 10, 2017

my bad, I even saw the comment #390 (comment) a few days ago and didn’t remember…, so that’s much better now

I don’t have much time to help more so I just wanted to do this to get some work of your plate (even if it’s not much), thx for the all work ;)

@erayd
Copy link
Contributor

erayd commented Nov 10, 2017

All good - I appreciate your taking care of this :-).

@bighappyface bighappyface merged commit dcff3ad into jsonrainbow:6.0.0-dev Nov 10, 2017
@mathroc mathroc deleted the chore/phpcs-fix branch November 10, 2017 16:42
erayd pushed a commit to erayd/json-schema that referenced this pull request Feb 14, 2018
@erayd erayd mentioned this pull request Feb 14, 2018
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.

3 participants