Skip to content

Conversation

@annexus254
Copy link
Contributor

In case an error occurs during loading of a context, let the Context::load()
method return a boolean value indicating whether the context was successfully
loaded or not.
Throwing an Exception causes a false positive in debuggers,since the Context::load()
method does the correct thing anyway

@williamdes williamdes changed the base branch from master to 6.0.x August 8, 2022 15:21
williamdes added a commit to annexus254/sql-parser that referenced this pull request Aug 8, 2022
Pull-request: phpmyadmin#384

Signed-off-by: William Desportes <[email protected]>
williamdes added a commit to annexus254/sql-parser that referenced this pull request Aug 8, 2022
annexus254 and others added 3 commits August 8, 2022 17:38
In case an error occurs during loading of a context, let the Context::load()
method return a boolean value indicating whether the context was successfully
loaded or not.
Throwing an Exception causes a false positive in debuggers,since the Context::load()
method does the correct thing anyway
Pull-request: phpmyadmin#384

Signed-off-by: William Desportes <[email protected]>
@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #384 (233788b) into 6.0.x (9b6be66) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##              6.0.x     #384      +/-   ##
============================================
- Coverage     95.20%   95.20%   -0.01%     
+ Complexity     2162     2161       -1     
============================================
  Files            66       65       -1     
  Lines          4591     4588       -3     
============================================
- Hits           4371     4368       -3     
  Misses          220      220              
Impacted Files Coverage Δ
src/Context.php 97.68% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution !
I rebased it onto 6.0.x that will be the next major version to be released, since this change may be a breaking change for some users.
I also fixed the test for this and added a CHANGELOG.md entry

@williamdes williamdes added this to the 6.0.0 milestone Aug 8, 2022
@williamdes williamdes self-assigned this Sep 9, 2022
@williamdes williamdes merged commit feb6a86 into phpmyadmin:6.0.x Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants