Stop Scattering String Statuses: Use PHP 8.1 Backed Enums
PHP 8.1 backed enums replace magic strings with type-safe domain values that still serialize to primitives for databases and APIs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
PHP 8.1 backed enums replace magic strings with type-safe domain values that still serialize to primitives for databases and APIs.
Problem Description When a Contao 4.9 LTS site is executed under PHP 8.1+ the console and web logs contain deprecation notices such as: Return type of Contao\CoreBundle\Framework\ContaoFramework::getContainer() should either be compatible with Symfony\Component\DependencyInjection\ContainerInterface::getContainer(): ?Psr\Container\ContainerInterface, or the