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

PHP 8 syntax error #742

Closed
brandonfarber opened this issue Nov 30, 2020 · 1 comment · Fixed by #743
Closed

PHP 8 syntax error #742

brandonfarber opened this issue Nov 30, 2020 · 1 comment · Fixed by #743
Labels

Comments

@brandonfarber
Copy link
Contributor

https://php.watch/versions/8.0/deprecate-required-param-after-optional

Required parameters declared after optional parameters now throw a deprecation notice.

https://github.com/webonyx/graphql-php/blob/master/src/Error/FormattedError.php#L280

You can just get rid of the = null in the argument list. callable is already nullable via the ? mark

@spawnia
Copy link
Collaborator

spawnia commented Nov 30, 2020

Can you create a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants