DoctrineExtensions icon indicating copy to clipboard operation
DoctrineExtensions copied to clipboard

Fix "Using ArrayAccess is deprecated"

Open Seb33300 opened this issue 1 year ago • 3 comments

Seb33300 avatar Aug 27 '24 15:08 Seb33300

Related to #2856.

phansys avatar Aug 27 '24 15:08 phansys

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.

thommyhh avatar Sep 09 '24 08:09 thommyhh

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
);

mbabker avatar Sep 09 '24 13:09 mbabker

Closing in favor of #2889.

Thank you @Seb33300!

phansys avatar Jan 14 '25 02:01 phansys