Skip to content

Conversation

kbond
Copy link
Member

@kbond kbond commented Mar 8, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

is_callable(['parent', __FUNCTION__]) is true if the parent has magic __call()/__callStatic methods. Discovered this when trying to use ServiceSubscriberTrait with a Doctrine ServiceEntityRepository.

@carsonbot carsonbot added this to the 4.4 milestone Mar 8, 2022
@kbond kbond force-pushed the bug/service-locator-magic-parent branch 2 times, most recently from e586e37 to b79dfce Compare March 8, 2022 18:26
@kbond kbond force-pushed the bug/service-locator-magic-parent branch from b79dfce to 4b8cd52 Compare March 9, 2022 13:39
@fabpot
Copy link
Member

fabpot commented Mar 9, 2022

Thank you @kbond.

@fabpot fabpot merged commit ab136f0 into symfony:4.4 Mar 9, 2022
@kbond kbond deleted the bug/service-locator-magic-parent branch March 9, 2022 18:28
This was referenced Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants