Update PHP dependencies (including several Symfony libraries to 7.x).

Changelogs summary:

 - symfony/filesystem updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/filesystem/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/filesystem/releases/tag/v7.0.0

 - symfony/intl updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/intl/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/intl/releases/tag/v7.0.0

 - symfony/lock updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/lock/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/lock/releases/tag/v7.0.0

 - symfony/mailer updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/mailer/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/mailer/releases/tag/v7.0.0

 - symfony/property-access updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/property-access/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/property-access/releases/tag/v7.0.0

 - symfony/rate-limiter updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/rate-limiter/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/rate-limiter/releases/tag/v7.0.0

 - symfony/messenger updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/messenger/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/messenger/releases/tag/v7.0.0

 - symfony/redis-messenger updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/redis-messenger/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/redis-messenger/releases/tag/v7.0.0

 - symfony/serializer updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/serializer/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/serializer/releases/tag/v7.0.0

 - symfony/validator updated from v6.4.0 to v7.0.0 major
   See changes: https://github.com/symfony/validator/compare/v6.4.0...v7.0.0
   Release notes: https://github.com/symfony/validator/releases/tag/v7.0.0

No security vulnerability advisories found.
This commit is contained in:
Buster Neece 2023-12-01 00:38:16 -06:00
parent 7b3eafbb99
commit 6fbb9b0165
No known key found for this signature in database
6 changed files with 387 additions and 406 deletions

View File

@ -32,7 +32,6 @@
"br33f/php-ga4-mp": "^0.1.2",
"brick/math": "^0.11",
"composer/ca-bundle": "^1.2",
"doctrine/annotations": "^2",
"doctrine/data-fixtures": "^1.3",
"doctrine/dbal": "^3",
"doctrine/migrations": "^3.0",
@ -76,18 +75,18 @@
"symfony/cache": "^6",
"symfony/console": "^6",
"symfony/event-dispatcher": "^6",
"symfony/filesystem": "^6.0",
"symfony/filesystem": "^7",
"symfony/finder": "^6",
"symfony/intl": "^6",
"symfony/lock": "^6",
"symfony/mailer": "^6",
"symfony/messenger": "^6",
"symfony/intl": "^7",
"symfony/lock": "^7",
"symfony/mailer": "^7",
"symfony/messenger": "^7",
"symfony/process": "^6",
"symfony/property-access": "^6",
"symfony/rate-limiter": "^6",
"symfony/redis-messenger": "^6",
"symfony/serializer": "^6",
"symfony/validator": "^6",
"symfony/property-access": "^7",
"symfony/rate-limiter": "^7",
"symfony/redis-messenger": "^7",
"symfony/serializer": "^7",
"symfony/validator": "^7",
"symfony/yaml": "^6",
"vlucas/phpdotenv": "^5.3",
"voku/portable-utf8": "^6.0",

727
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -266,27 +266,12 @@ return [
Psr\Log\LoggerInterface::class => DI\get(Monolog\Logger::class),
// Doctrine annotations reader
Doctrine\Common\Annotations\Reader::class => static function (
Psr\Cache\CacheItemPoolInterface $psr6Cache,
Environment $settings
) {
$proxyCache = new Symfony\Component\Cache\Adapter\ProxyAdapter($psr6Cache, 'annotations.');
return new Doctrine\Common\Annotations\PsrCachedReader(
new Doctrine\Common\Annotations\AnnotationReader(),
$proxyCache,
!$settings->isProduction()
);
},
// Symfony Serializer
Symfony\Component\Serializer\Serializer::class => static function (
Doctrine\Common\Annotations\Reader $reader,
App\Doctrine\ReloadableEntityManagerInterface $em,
App\Doctrine\ReloadableEntityManagerInterface $em
) {
$classMetaFactory = new Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory(
new Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader($reader)
new Symfony\Component\Serializer\Mapping\Loader\AttributeLoader()
);
$normalizers = [
@ -309,13 +294,11 @@ return [
// Symfony Validator
Symfony\Component\Validator\Validator\ValidatorInterface::class => static function (
Doctrine\Common\Annotations\Reader $reader,
Symfony\Component\Validator\ContainerConstraintValidatorFactory $constraintValidatorFactory
) {
$builder = new Symfony\Component\Validator\ValidatorBuilder();
$builder->setConstraintValidatorFactory($constraintValidatorFactory);
$builder->enableAnnotationMapping();
$builder->setDoctrineAnnotationReader($reader);
$builder->enableAttributeMapping();
return $builder->getValidator();
},

View File

@ -25,11 +25,6 @@ parameters:
count: 1
path: src/Entity/Migration/Version20201204043539.php
-
message: "#^Cannot cast Symfony\\\\Component\\\\Validator\\\\ConstraintViolationListInterface to string\\.$#"
count: 1
path: src/Exception/ValidationException.php
-
message: "#^Method App\\\\Normalizer\\\\DoctrineEntityNormalizer\\:\\:getAllowedAttributes\\(\\) should return array\\|false but returns array\\<string\\|Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\AttributeMetadataInterface\\>\\|bool\\.$#"
count: 1

View File

@ -8,8 +8,8 @@ use Exception;
use Psr\Log\LoggerInterface;
use Symfony\Component\Lock\BlockingStoreInterface;
use Symfony\Component\Lock\LockFactory as SymfonyLockFactory;
use Symfony\Component\Lock\LockInterface;
use Symfony\Component\Lock\PersistingStoreInterface;
use Symfony\Component\Lock\SharedLockInterface;
final class LockFactory extends SymfonyLockFactory
{
@ -26,7 +26,7 @@ final class LockFactory extends SymfonyLockFactory
$this->setLogger($logger);
}
public function createLock(string $resource, ?float $ttl = 300.0, bool $autoRelease = true): LockInterface
public function createLock(string $resource, ?float $ttl = 300.0, bool $autoRelease = true): SharedLockInterface
{
return parent::createLock($this->getPrefixedResourceName($resource), $ttl, $autoRelease);
}
@ -36,7 +36,7 @@ final class LockFactory extends SymfonyLockFactory
?float $ttl = 300.0,
bool $autoRelease = true,
bool $force = false
): LockInterface|false {
): SharedLockInterface|false {
$lock = $this->createLock($resource, $ttl, $autoRelease);
if ($force) {

View File

@ -45,8 +45,11 @@ final class DoctrineEntityNormalizer extends AbstractObjectNormalizer
*
* @return array|string|int|float|bool|ArrayObject<int, mixed>|null
*/
public function normalize(mixed $object, ?string $format = null, array $context = []): mixed
{
public function normalize(
mixed $object,
?string $format = null,
array $context = []
): array|string|int|float|bool|ArrayObject|null {
if (!is_object($object)) {
throw new InvalidArgumentException('Cannot normalize non-object.');
}
@ -113,12 +116,12 @@ final class DoctrineEntityNormalizer extends AbstractObjectNormalizer
return $context;
}
public function supportsNormalization($data, string $format = null): bool
public function supportsNormalization(mixed $data, string $format = null, array $context = []): bool
{
return $this->isEntity($data);
}
public function supportsDenormalization($data, $type, string $format = null): bool
public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool
{
return $this->isEntity($type);
}