Skip to content

re-add mixed return type#4764

Merged
fabpot merged 1 commit intotwigphp:3.xfrom
xabbuh:json-serializable-return-type
Feb 7, 2026
Merged

re-add mixed return type#4764
fabpot merged 1 commit intotwigphp:3.xfrom
xabbuh:json-serializable-return-type

Conversation

@xabbuh
Copy link
Contributor

@xabbuh xabbuh commented Feb 7, 2026

@fabpot
Copy link
Contributor

fabpot commented Feb 7, 2026

Isn't it somehing that should be fixed in Symfony instead?

@xabbuh
Copy link
Contributor Author

xabbuh commented Feb 7, 2026

I think the CS fixer is wrong here. Not having a docblock from what I understand is equivalent to having void as the return type not mixed.

@fabpot
Copy link
Contributor

fabpot commented Feb 7, 2026

I think the CS fixer is wrong here. Not having a docblock from what I understand is equivalent to having void as the return type not mixed.

I would need to double-check, but I'm pretty sure that mixed is the default.

@fabpot
Copy link
Contributor

fabpot commented Feb 7, 2026

Apparently, we can do 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true]

@xabbuh xabbuh force-pushed the json-serializable-return-type branch from 18b934e to 3a90366 Compare February 7, 2026 12:41
@xabbuh
Copy link
Contributor Author

xabbuh commented Feb 7, 2026

Apparently, we can do 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true]

👍 added

@fabpot
Copy link
Contributor

fabpot commented Feb 7, 2026

Thank you @xabbuh.

@fabpot fabpot merged commit 5fabdd0 into twigphp:3.x Feb 7, 2026
41 checks passed
@xabbuh xabbuh deleted the json-serializable-return-type branch February 7, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants