You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading to SF 7.3, I encountred an error with a service having a property typed as an enum in its constructor.
To isolate the problem, I have created a new SF 7.3 project and it is clear that the container consider enum as a service as it tries to instiate it by doing new EnumName().
How to reproduce
Create an enum
<?phpdeclare(strict_types=1);
namespaceApp\Enum;
enum DummyEnum
{
case First;
case Second;
case Third;
}
Symfony version(s) affected
7.3.0
Description
Hello :)
When upgrading to SF 7.3, I encountred an error with a service having a property typed as an enum in its constructor.
To isolate the problem, I have created a new SF 7.3 project and it is clear that the container consider enum as a service as it tries to instiate it by doing
new EnumName()
.How to reproduce
Create an enum
Create a service with that enum as a dependency
Use that service in order to trigger its compilation in the conainter
Observe the compilation result in
Container1Y0gEYe\getDummyControllerService
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: