-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
[php] PHP 8 compatibility #9964
Comments
Another important issue with PHP 8: Haxe allows required parameters to be after optional ones. So this: public function new(method:Method, url:Url, protocol:Protocol = HTTP1_1, fields) Is compiled to that: public function __construct ($method, $url, $protocol = null, $fields) And it raises the following exception:
More info: https://php.watch/versions/8.0/deprecate-required-param-after-optional @RealyUniqueName How can we customize the error handler? Setting |
This is already fixed in development and 4.1_bugfix branches. Error reporting is forced here: Line 62 in 6d3fef0
You can redefine it in static function main or in the static function __init__ of your main class.
|
@RealyUniqueName Thanks for all your efforts! |
\Socket
and\AddressInfo
classes instead of related resource types (details). This creates a conflict between extern definitions for PHP7 & PHP8The text was updated successfully, but these errors were encountered: