We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's a common extension and lots of their methods return false on failure, which is frustrating.
false
How would I go about adding it?
Great repo btw!
The text was updated successfully, but these errors were encountered:
The current implementation of Safe rewrite only functions, and could not cover the Imagick classes.
Unless refactoring Safe in order to take Class into account and generate something like:
namespace Safe; class Imagick extends \Imagick { public function fooBar(type $arg) { error_clear_last(); $result = parent::fooBar($arg); if ($result === false) { throw ApacheException::createFromPhpError(); } return $result; } }
ping @moufmouf what do you think?
edit: duplicate of #7
Sorry, something went wrong.
Exactly! Overloading classes is harder than overloading functions and I haven't had time to crack the issue yet.
If anyone is feeling up to the task, do not hesitate to give me a hand :)
No branches or pull requests
It's a common extension and lots of their methods return
false
on failure, which is frustrating.How would I go about adding it?
Great repo btw!
The text was updated successfully, but these errors were encountered: