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 Fatal error #161

Closed
dionx opened this issue Feb 21, 2021 · 3 comments
Closed

PHP Fatal error #161

dionx opened this issue Feb 21, 2021 · 3 comments

Comments

@dionx
Copy link

dionx commented Feb 21, 2021

PHP Fatal error: Declaration of Fixtures\ProviderMock::getOptions(Symfony\Component\HttpFoundation\Request $request): void must be compatible with Nelmio\CorsBundle\Options\ProviderInterface::getOptions(Symfony\Component\HttpFoundation\Request $request): array in vendor/nelmio/cors-bundle/Tests/Fixtures/ProviderMock.php on line 14

@fd6130
Copy link

fd6130 commented Feb 22, 2021

Do you have extra information about this error?

Like php version and Symfony version you are using now?

@dionx
Copy link
Author

dionx commented Feb 22, 2021

Yes, I have. php 7.4.12, symfony 4.4. I got this error while getting acquainted with the hautelook/alice-bundle. But it seems to me that these nuances are not particularly needed to understand the error. Take a closer look at declaration these methods:

  1. public function getOptions(Request $request): void {}
  2. public function getOptions(Request $request): array;

@Seldaek
Copy link
Member

Seldaek commented Feb 15, 2023

Fixed by #169

@Seldaek Seldaek closed this as completed Feb 15, 2023
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

3 participants