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

Constants uppercase report regression #2050

Closed
dereuromark opened this issue Jun 7, 2018 · 2 comments
Closed

Constants uppercase report regression #2050

dereuromark opened this issue Jun 7, 2018 · 2 comments

Comments

@dereuromark
Copy link
Contributor

dereuromark commented Jun 7, 2018

protected function getTableReflection(): ClassReflection

Invalid report:

Constants must be uppercase; expected CLASSREFLECTION

See https://travis-ci.org/cakephp/cakephp/jobs/389179510#L646

@dereuromark
Copy link
Contributor Author

Seems like a small regression that we can however fix on our end just removing the old sniff that used to work up until now: cakephp/cakephp-codesniffer#207

So if you think there is nothing else that should/can be done for BC, then you can also close.

@gsherwood
Copy link
Member

This is probably because that string used to be a T_RETURN_TYPE token but is now T_STRING, so the sniff would need a small change to ensure the string does not come after a colon. You might have had the same problem before if you ever used a namespace for a return type because tokenizing them was such a mess, so there were T_STRING tokens in there as well.

I'll close this as the break is expected and you've found another sniff to replace your one as well.

For more info, have a read of issue #1527

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

No branches or pull requests

2 participants