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

Allow fully qualified global constants #12

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

asispts
Copy link
Owner

@asispts asispts commented Sep 15, 2023

This PR will add support to fully qualified global constant. For example

use const PHP_URL_QUERY;

// 
var_dump(explode(DIRECTORY_SEPARATOR, __DIR__));
echo parse_url('localhost', PHP_URL_QUERY);

will be formatted to

var_dump(explode(\DIRECTORY_SEPARATOR, __DIR__));
echo parse_url('localhost', \PHP_URL_QUERY);

@asispts asispts added the enhancement New feature or request label Sep 15, 2023
@asispts asispts force-pushed the feature/fully-qualified-global-const branch from 9082e85 to eb4c014 Compare September 15, 2023 09:30
@asispts
Copy link
Owner Author

asispts commented Sep 15, 2023

There is a bug in Slevomat coding standard. See slevomat/coding-standard#1621

@asispts asispts changed the title Support fully qualified global constants Allow fully qualified global constants Nov 3, 2023
@asispts asispts merged commit 3938baf into main Nov 3, 2023
13 checks passed
@asispts asispts deleted the feature/fully-qualified-global-const branch November 3, 2023 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant