-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
public function __construct(private int $mysql_errno = 1105, private string $mysql_error = 'ERUnknownError') {} | ||
|
||
<<__Override>> | ||
// HHAST_IGNORE_ERROR[CamelCasedMethodsUnderscoredFunctions] |
There was a problem hiding this comment.
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
/* 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') {} | ||
|
There was a problem hiding this comment.
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();
There was a problem hiding this comment.
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()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😢
Introduce
AsyncMysqlQueryErrorResult
andSQLFakeAsyncMysqlException
to help verify mysql errors in tests.Issue: #109