Skip to content

Add the header_comment rule to the PHP-CS-Fixer's configuration#1125

Merged
dunglas merged 1 commit into
api-platform:2.0from
meyerbaptiste:add_header_php_cs_fixer
May 17, 2017
Merged

Add the header_comment rule to the PHP-CS-Fixer's configuration#1125
dunglas merged 1 commit into
api-platform:2.0from
meyerbaptiste:add_header_php_cs_fixer

Conversation

@meyerbaptiste

Copy link
Copy Markdown
Member
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets N/A
License MIT
Doc PR N/A

@dunglas

dunglas commented May 17, 2017

Copy link
Copy Markdown
Member

I wasn't aware of this option. Great!

@soyuka

soyuka commented May 17, 2017

Copy link
Copy Markdown
Member

IIRC we removed this because it was causing issues with declare(strict_types=1);. Anyway +1 for adding it back if this works!

@dunglas

dunglas commented May 17, 2017

Copy link
Copy Markdown
Member

The problem was with StyleCI.

@dunglas
dunglas merged commit ec40329 into api-platform:2.0 May 17, 2017
@dunglas

dunglas commented May 17, 2017

Copy link
Copy Markdown
Member

Thanks @meyerbaptiste

@soyuka

soyuka commented May 17, 2017

Copy link
Copy Markdown
Member

The problem was with StyleCI

Oh yes! Nice that we can add it through php-cs-fixer :) Thanks @meyerbaptiste !

@meyerbaptiste
meyerbaptiste deleted the add_header_php_cs_fixer branch May 17, 2017 12:44
@teohhanhui

Copy link
Copy Markdown
Contributor

You mean this is fixed? PHP-CS-Fixer/PHP-CS-Fixer#2590

@meyerbaptiste

Copy link
Copy Markdown
Member Author

Well I think after_declare_strict and after_open resolve this issue...

@soyuka

soyuka commented May 18, 2017

Copy link
Copy Markdown
Member

Okay so this was definitely related to php-cs-fixer :p. Nice workaround @meyerbaptiste!

@teohhanhui

Copy link
Copy Markdown
Contributor

Okay, I get it now. The way our CS is, we have never been affected by that bug. I just assumed we were... 😅

hoangnd25 pushed a commit to hoangnd25/core that referenced this pull request Feb 23, 2018
…p_cs_fixer

Add the header_comment rule to the PHP-CS-Fixer's configuration
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.

4 participants