-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fatal error on PHP 8.1 #12
Comments
+1 |
|
This error is obvious from the description, type of $id in the ContainerInterface not defined. |
I need permission to create a PR, |
this is not how this work. you create pr from your own fork, not push directly to upstream repo. also, still unclear what are your other dependencies. create gist reproducer. last i checked you should be able to use proper psr package depending on your environment. |
Submitted fix in #13 |
Still, no reproducer or environment info, as I see you have to install compatible dependency: |
I made a pr for it: #14, for strict type in function we should use PHP > 7, so I change the php version to 7. |
I experience this on PHP 7.3:
Somehow props contains:
But psr/container ContainerInterface contains:
|
It turns out that props-dic 3.0.0 requires psr/container ^1.0. You need to update the packagist. |
Here is my updated composer.json, which locks mrclay/props-dic to 3.0.0:
|
Please make it finally PHP8.1 and psr/container 2.0 compatible |
Hi Elan, I tried to run Props project and faced this issue:
Fatal error: Declaration of Props\Container::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /var/www/html/vendor/mrclay/props-dic/src/Props/Container.php on line 105
Could you fix it or can I send you a pull request to fix this?
The text was updated successfully, but these errors were encountered: