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

add AsyncMysqlQueryErrorResult and SQLFakeAsyncMysqlException #110

Merged
merged 6 commits into from
Oct 6, 2023

Conversation

pbibra
Copy link
Contributor

@pbibra pbibra commented Sep 21, 2023

Introduce AsyncMysqlQueryErrorResult and SQLFakeAsyncMysqlException to help verify mysql errors in tests.

Issue: #109

public function __construct(private int $mysql_errno = 1105, private string $mysql_error = 'ERUnknownError') {}

<<__Override>>
// HHAST_IGNORE_ERROR[CamelCasedMethodsUnderscoredFunctions]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need this because the parent method is not camel cased

@pbibra pbibra requested a review from brirams October 4, 2023 20:26
@pbibra pbibra marked this pull request as ready for review October 4, 2023 20:27
Comment on lines +6 to +8
/* HH_IGNORE_ERROR[3012] I don't want to call parent::construct */
public function __construct(private int $mysql_errno = 1105, private string $mysql_error = 'ERUnknownError') {}

Copy link

Choose a reason for hiding this comment

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

think we can get away with calling the parent constructor here and removing the ignore:

parent::__construct();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't do that here because the parent constructor is a private method [FATAL] E_FATAL: Call to private method AsyncMysqlQueryErrorResult::__construct()

Copy link

Choose a reason for hiding this comment

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

😢

@pbibra pbibra merged commit da4bd2f into main Oct 6, 2023
2 checks passed
@pbibra pbibra deleted the pbibra-add-async-error-result branch October 6, 2023 20:08
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.

2 participants