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

Autowiring exception on TYPO3 11.5 with PHP 8.1 #455

Closed
akiessling opened this issue Dec 14, 2021 · 2 comments
Closed

Autowiring exception on TYPO3 11.5 with PHP 8.1 #455

akiessling opened this issue Dec 14, 2021 · 2 comments

Comments

@akiessling
Copy link

public function __construct(string $name = null, LoaderRegistry $loaderRegistry)

The constructor injection creates an exception for me on TYP3 11.5 with PHP 8.1 - even when i only try to load the backend login.

Cannot autowire service "MASK\Mask\Command\ConvertFormatCommand": argument "$name" of method "__construct()" is type-hinted "string", you should configure its value explicitly.

Is the $name param really optional? Shouldn't the order then be switched around? The error seems to go away when i change that, but i'm not really sure what the command expects here.

nhovratov added a commit that referenced this issue Dec 14, 2021
Fixes: #455
(cherry picked from commit e46f3a1)
@nhovratov
Copy link
Collaborator

Thanks for testing the new version and reporting the issue!

@akiessling
Copy link
Author

Thanks for fixing it so fast :)

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

No branches or pull requests

2 participants