Handle library updates.

This commit is contained in:
Buster Neece 2023-02-20 07:49:23 -06:00
parent 831a49069a
commit a77bdedf61
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
3 changed files with 2 additions and 11 deletions

View File

@ -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,
) {

View File

@ -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

View File

@ -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)) {