We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
new
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
As of PHP 8.1, it's possible to use new syntax as default value to functions params (rfc). However this doesn't seem to be supported in nette/di yet.
nette/di
For example with lcobucci/jwt configuration.
lcobucci/jwt
ref
public static function forSymmetricSigner( Signer $signer, Key $key, Encoder $encoder = new JoseEncoder(), // optional argument Decoder $decoder = new JoseEncoder(), // optional argument ): self { // ... }
- Configuration::forSymmetricSigner( signer: [instance of Signer] key: [instance of Key] # no $encoder or $decoder param passed )
Service of type Encoder required by $encoder in Configuration::forSymmetricSigner not found
When I pass JoseEncoder explicitly, it works.
JoseEncoder
Note: I removed FQNs for better readability.
The text was updated successfully, but these errors were encountered:
6c422d0
Thanks!
Sorry, something went wrong.
Resolver::autowireArgument() fixed handling of new-initializer with t…
075bc50
…ypehint [Closes #302]
No branches or pull requests
As of PHP 8.1, it's possible to use
new
syntax as default value to functions params (rfc). However this doesn't seem to be supported innette/di
yet.For example with
lcobucci/jwt
configuration.Method annotation
ref
DI config
Output
Service of type Encoder required by $encoder in Configuration::forSymmetricSigner not found
When I pass
JoseEncoder
explicitly, it works.Note: I removed FQNs for better readability.
The text was updated successfully, but these errors were encountered: