-
Notifications
You must be signed in to change notification settings - Fork 438
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
[BUG] Declaration of Enqueue\Container\Container::has #1227
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am experience this error too |
I just checked and every version of "psr/container" except "1.0.0" has parameter typehints and since "2.0.0" it also has return type hints. So to solve the issue one of the following 4 options could be done:
Option 4 should be possible (and should also be preferred because it offers the best compatibility with other libraries/code bases) since (as far as I know) parameter typehints are required to follow the initial definition but if the original doesn't define a return typehint (as in the 1.* versions of |
Is the error with run command
PHP Fatal error: Declaration of Enqueue\Container\Container::has($id) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/wp-content/plugins/visualinmueble/vendor/enqueue/enqueue/Container/Container.php on line 28
The text was updated successfully, but these errors were encountered: