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

Value 1 provided is not a const in enum Cairo\Antialias #28

Closed
adamdyson opened this issue Jun 16, 2017 · 0 comments
Closed

Value 1 provided is not a const in enum Cairo\Antialias #28

adamdyson opened this issue Jun 16, 2017 · 0 comments

Comments

@adamdyson
Copy link

I'm in the process of working through the examples and re-factoring them to work with PHP 7. After updating the first example I believe I've encountered a bug.

The updated example can be found here and the error message after execution is:

PHP Fatal error:  Uncaught TypeError: Value 1 provided is not a const in enum Cairo\Antialias in /home/adam/cairo/examples/a1-image-sample.php:21
Stack trace:
#0 /home/adam/cairo/examples/a1-image-sample.php(21): Cairo\Context->setAntialias(1)
#1 {main}
  thrown in /home/adam/cairo/examples/a1-image-sample.php on line 21
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

No branches or pull requests

1 participant