Handle library updates.
This commit is contained in:
parent
831a49069a
commit
a77bdedf61
|
@ -305,8 +305,6 @@ return [
|
|||
return $builder->getValidator();
|
||||
},
|
||||
|
||||
Pheanstalk\Pheanstalk::class => static fn() => Pheanstalk\Pheanstalk::create('127.0.0.1', 11300),
|
||||
|
||||
App\MessageQueue\QueueManagerInterface::class => static function (
|
||||
App\Service\RedisFactory $redisFactory,
|
||||
) {
|
||||
|
|
|
@ -35,11 +35,6 @@ parameters:
|
|||
count: 1
|
||||
path: src/Validator/Constraints/UniqueEntityValidator.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$callback of method League\\\\Plates\\\\Engine\\:\\:registerFunction\\(\\) expects League\\\\Plates\\\\callback, Closure given\\.$#"
|
||||
count: 4
|
||||
path: src/View.php
|
||||
|
||||
-
|
||||
message: "#^Access to an undefined property XMLReader\\:\\:\\$depth\\.$#"
|
||||
count: 1
|
||||
|
|
|
@ -8,12 +8,12 @@ use App\Entity;
|
|||
use App\Entity\Attributes\Auditable;
|
||||
use App\Entity\Attributes\AuditIgnore;
|
||||
use Doctrine\Common\EventSubscriber;
|
||||
use Doctrine\Common\Util\ClassUtils;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\Event\OnFlushEventArgs;
|
||||
use Doctrine\ORM\Events;
|
||||
use Doctrine\ORM\Mapping\ClassMetadataInfo;
|
||||
use Doctrine\ORM\PersistentCollection;
|
||||
use Doctrine\ORM\Proxy\Proxy;
|
||||
use Doctrine\ORM\UnitOfWork;
|
||||
use ProxyManager\Proxy\GhostObjectInterface;
|
||||
use ReflectionClass;
|
||||
|
@ -243,9 +243,7 @@ final class AuditLog implements EventSubscriber
|
|||
private function isEntity(EntityManagerInterface $em, mixed $class): bool
|
||||
{
|
||||
if (is_object($class)) {
|
||||
$class = ($class instanceof Proxy || $class instanceof GhostObjectInterface)
|
||||
? get_parent_class($class)
|
||||
: get_class($class);
|
||||
$class = ClassUtils::getClass($class);
|
||||
}
|
||||
|
||||
if (!is_string($class)) {
|
||||
|
|
Loading…
Reference in New Issue