symfony
symfony copied to clipboard
[BC Break][7.4] ClassNotFoundError for optional interfaces
Symfony version(s) affected
7.4.0
Description
Hi,
We're loading services using resource: '../vendor/path/to/src'
This breaks in 7.4 for classes which implement an unknown (ie. optional) interface.
How to reproduce
#[AsAlias(OptionalInterface::class)]
final class Some implements OptionalInterface {}
Possible Solution
No response
Additional Context
No response
maybe related to #62545
will wait for a patch release 👍