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

fixed case of UNDEFINED constants namespaces #319

Closed
wants to merge 1 commit into from
Closed

Conversation

3mg
Copy link
Contributor

@3mg 3mg commented Jun 13, 2016

Hi! I changed namespace from uppercase to title case, because it causes strange errors like 'Use of undefined constant UNDEFINED - assumed 'UNDEFINED'' in my environment (hhvm 3.13)

Hi! I changed namespace from uppercase to title case, because it causes strange errors like 'Use of undefined constant UNDEFINED - assumed 'UNDEFINED'' in my environment (hhvm 3.13)
@3mg 3mg closed this Jun 14, 2016
@bfanger
Copy link
Collaborator

bfanger commented Jun 17, 2016

I also prefer define('Swagger\Annotations\UNDEFINED', UNDEFINED); over define('SWAGGER\PROCESSORS\UNDEFINED', UNDEFINED);

Sadly the PSR-2 style checker disagrees: "Constants must be uppercase" 😞

@dschniepp
Copy link

@bfanger can you reopen the pull request please? As soon as this pull request is merged squizlabs/PHP_CodeSniffer#1079 it should be possible to merge this request without any errors.

@bfanger bfanger reopened this Jul 19, 2016
@bfanger
Copy link
Collaborator

bfanger commented Sep 9, 2016

Merged as 202e4c8

@bfanger bfanger closed this Sep 9, 2016
bfanger added a commit that referenced this pull request Dec 16, 2016
 - Dynamic Definitions / partial support #301
 - By default only scan *.php files #350
 - Removed silence operator @, improves compatiblity custom errorhandlers #331
 - Additional datetime classes & interfaces #338
 - Fixed case of UNDEFINED constants namespaces, improves hhvm compatibility #319
 - Misc improvements to the docs
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