symfony icon indicating copy to clipboard operation
symfony copied to clipboard

[BC Break][7.4] ClassNotFoundError for optional interfaces

Open ro0NL opened this issue 3 months ago • 1 comments

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

ro0NL avatar Dec 01 '25 13:12 ro0NL

maybe related to #62545

will wait for a patch release 👍

ro0NL avatar Dec 01 '25 13:12 ro0NL