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

Define explicit return type #289

Merged
merged 1 commit into from
Dec 2, 2022
Merged

Conversation

franmomu
Copy link
Contributor

When using Symfony >= 5.4 if the return type is not explicit, there is a deprecation message:

Method "Symfony\Component\Validator\Constraint::getTargets()" might add "string|array" as a native return type declaration in the future. Do the same in child class "EWZ\Bundle\RecaptchaBundle\Validator\Constraints\IsTrue" now to avoid errors or add an explicit @return annotation to suppress this message.

@pedropalmero
Copy link

@excelwebzone Could you please check this PR? Thanks a lot.

@excelwebzone excelwebzone merged commit 05ee477 into excelwebzone:master Dec 2, 2022
@franmomu franmomu deleted the patch-1 branch December 2, 2022 17:34
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

Successfully merging this pull request may close these issues.

3 participants