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

NewNowdocQuotedHeredoc: Add sniffing for quoted heredoc identifiers #390

Merged
merged 2 commits into from
Apr 26, 2017

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 3, 2017

As the logic needed is nearly the same - especially for the recognition of these tokens in PHP 5.2 -, I've added sniffing for quoted heredoc identifiers to the nowdoc sniff and renamed the sniff to match.

As the nowdoc sniff was only recently introduced and only contained in the most recent release, this should not cause a significant backward-compatibility break.

Includes unit tests.
Includes improved documentation.

Related: #48 (comment)

As the logic needed is nearly the same - especially for the recognition of these tokens in PHP 5.2 -, I've added sniffing for quoted heredoc identifiers to the nowdoc sniff and renamed the sniff to match.
As the nowdoc sniff was only recently introduced and only contained in the most recent release, this should not cause a significant backward-compatibility break.

Includes unit tests.
Includes improved documentation.
@coveralls
Copy link

coveralls commented Apr 3, 2017

Coverage Status

Coverage decreased (-0.4%) to 95.452% when pulling 7463ce1 on jrfnl:php5.3/quoted-heredoc-identifier into 043b66b on wimg:master.

@wimg wimg merged commit f61ac96 into PHPCompatibility:master Apr 26, 2017
@jrfnl jrfnl deleted the php5.3/quoted-heredoc-identifier branch April 26, 2017 15:25
@jrfnl jrfnl added this to the 7.1.4 milestone May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants