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

Introduce the TokenType enum #507

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

MauricioFauth
Copy link
Member

Used to replace the Token::TYPE_* constants.

The TokenType::cases() method replaces the Token::TYPE_ALL constant.

Adds the Token::FLAG_NONE constant with the same value as Token::TYPE_NONE.

Used to replace the Token::TYPE_* constants.

The TokenType::cases() method replaces the Token::TYPE_ALL constant.

Adds the Token::FLAG_NONE constant with the same value as Token::TYPE_NONE.

Signed-off-by: Maurício Meneghini Fauth <[email protected]>
@MauricioFauth MauricioFauth marked this pull request as ready for review September 26, 2023 12:39
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Attention: 39 lines in your changes are missing coverage. Please review.

Comparison is base (ec459f7) 97.03% compared to head (e9edd4c) 96.43%.
Report is 184 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #507      +/-   ##
============================================
- Coverage     97.03%   96.43%   -0.61%     
+ Complexity     2240     2148      -92     
============================================
  Files            69       65       -4     
  Lines          5153     5014     -139     
============================================
- Hits           5000     4835     -165     
- Misses          153      179      +26     
Files Coverage Δ
src/Components/ArrayObj.php 100.00% <100.00%> (ø)
src/Components/Condition.php 100.00% <100.00%> (ø)
src/Components/CreateDefinition.php 100.00% <100.00%> (ø)
src/Components/DataType.php 100.00% <100.00%> (ø)
src/Components/Expression.php 100.00% <100.00%> (ø)
src/Components/GroupKeyword.php 100.00% <100.00%> (ø)
src/Components/IndexHint.php 100.00% <100.00%> (ø)
src/Components/IntoKeyword.php 100.00% <100.00%> (ø)
src/Components/Key.php 100.00% <100.00%> (ø)
src/Components/Limit.php 100.00% <100.00%> (ø)
... and 54 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MauricioFauth MauricioFauth merged commit 61baa39 into phpmyadmin:master Sep 26, 2023
9 of 12 checks passed
@MauricioFauth MauricioFauth deleted the token-type-enum branch September 26, 2023 13:18
@MauricioFauth MauricioFauth self-assigned this Sep 26, 2023
@MauricioFauth MauricioFauth added this to the 6.0.0 milestone Sep 26, 2023
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.

2 participants