DoctrineExtensions
DoctrineExtensions copied to clipboard
Fix "Using ArrayAccess is deprecated"
Related to #2856.
Would be nice to see this merged. I just started a project with Symfony 7 and I'm trying to reduce the number of deprecations.
Would be nice to see this merged. I just started a project with Symfony 7 and I'm trying to reduce the number of deprecations.
You can use the Doctrine Deprecations library's API to silence these unfixable (from your application's perspective) notices.
use Doctrine\Deprecations\Deprecation;
// Ignore unfixable Doctrine deprecations
Deprecation::ignoreDeprecations(
'https://github.com/doctrine/orm/pull/11211', // The ORM changed from arrays to named data objects in 3.x, some packages still use array access for B/C
);
Closing in favor of #2889.
Thank you @Seb33300!