Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: proxying of classes that have tenative return types#962

Merged
nikophil merged 1 commit into
zenstruck:2.xfrom
BackEndTea:fix-proxy-tenative-return-types
Aug 6, 2025
Merged

fix: proxying of classes that have tenative return types#962
nikophil merged 1 commit into
zenstruck:2.xfrom
BackEndTea:fix-proxy-tenative-return-types

Conversation

@BackEndTea
Copy link
Copy Markdown
Contributor

The symfony Proxy Helper will add a ReturnTypeWillChange attribute to methods with tenative return types.
The regex wasn't able to handle attributes on methods so it wouldn't add the _autoRefresh.
The 'best' example of this is jsonSerialize

The symfony Proxy Helper will add a `ReturnTypeWillChange`
attribute to methods with tenative return types.

The regex wasn't able to handle attributes on methods
so it wouldn't add the `_autoRefresh`.

The 'best' example of this is jsonSerialize
@nikophil nikophil changed the title Fix proxying of classes that have tenative return types fix: proxying of classes that have tenative return types Aug 6, 2025
@nikophil
Copy link
Copy Markdown
Member

nikophil commented Aug 6, 2025

TIL the term of "tenative return types" 😅

thanks @BackEndTea

@nikophil nikophil merged commit 0a65872 into zenstruck:2.x Aug 6, 2025
72 checks passed
@BackEndTea
Copy link
Copy Markdown
Contributor Author

Thanks for the quick merge @nikophil !

@BackEndTea BackEndTea deleted the fix-proxy-tenative-return-types branch August 6, 2025 09:08
@nikophil nikophil added bug Something isn't working proxy labels Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working proxy

Development

Successfully merging this pull request may close these issues.

2 participants