We could call you also a sofa troop :man_shrugging:
Add libgraphicsmagick1-dev
Fix Dockerfile syntax
Add gmagick
Upgrade composer
Before 1d6af34643fe00d870da7469da9a968b021003bf it was not called if the context did not have LiveComponentHydrator::LIVE_CONTEXT
, but now it is always called and therefore fails.
Our app uses api-platform along with symfony/ux, so when now when api endpoints are called and serializer tries to do it's job it fails
Also this is stacktrace just from calling $this->serializer->deserialize(..)
in a console command:
In ConversionException.php line 39:
[Doctrine\DBAL\Types\ConversionException]
Could not convert database value "/api/lead-pipeline-s..." to Doctrine Type
uuid
Exception trace:
at /var/www/html/vendor/doctrine/dbal/src/Types/ConversionException.php:39
Doctrine\DBAL\Types\ConversionException::conversionFailed() at /var/www/html/vendor/symfony/doctrine-bridge/Types/AbstractUidType.php:80
Symfony\Bridge\Doctrine\Types\AbstractUidType->convertToDatabaseValue() at /var/www/html/vendor/doctrine/dbal/src/Connection.php:1843
Doctrine\DBAL\Connection->getBindingInfo() at /var/www/html/vendor/doctrine/dbal/src/Connection.php:1784
Doctrine\DBAL\Connection->bindParameters() at /var/www/html/vendor/doctrine/dbal/src/Connection.php:1090
Doctrine\DBAL\Connection->executeQuery() at /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:750
Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() at /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:768
Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() at /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:521
Doctrine\ORM\EntityManager->find() at /var/www/html/vendor/symfony/ux-live-component/src/Normalizer/DoctrineObjectNormalizer.php:90
Symfony\UX\LiveComponent\Normalizer\DoctrineObjectNormalizer->denormalize() at /var/www/html/vendor/symfony/serializer/Debug/TraceableNormalizer.php:71
Symfony\Component\Serializer\Debug\TraceableNormalizer->denormalize() at /var/www/html/vendor/symfony/serializer/Serializer.php:227
Symfony\Component\Serializer\Serializer->denormalize() at /var/www/html/vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:537
Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->validateAndDenormalize() at /var/www/html/vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:369
Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->denormalize() at /var/www/html/vendor/symfony/serializer/Debug/TraceableNormalizer.php:71
Symfony\Component\Serializer\Debug\TraceableNormalizer->denormalize() at /var/www/html/vendor/symfony/serializer/Serializer.php:227
Symfony\Component\Serializer\Serializer->denormalize() at /var/www/html/vendor/symfony/serializer/Serializer.php:145
Symfony\Component\Serializer\Serializer->deserialize() at /var/www/html/vendor/symfony/serializer/Debug/TraceableSerializer.php:61
Symfony\Component\Serializer\Debug\TraceableSerializer->deserialize() at /var/www/html/src/App/Command/TestCommand.php:109
App\Command\TestCommand->execute() at /var/www/html/vendor/symfony/console/Command/Command.php:312
Symfony\Component\Console\Command\Command->run() at /var/www/html/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/framework-bundle/Console/Application.php:88
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/console/Application.php:314
Symfony\Component\Console\Application->doRun() at /var/www/html/vendor/symfony/framework-bundle/Console/Application.php:77
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/html/vendor/symfony/console/Application.php:168
Symfony\Component\Console\Application->run() at /var/www/html/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:54
Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /var/www/html/vendor/autoload_runtime.php:29
require_once() at /var/www/html/bin/console:15
Just to make sure I get it right... After PHP 8 doctrine supports the
#[...]
notation in the PHP classes instead of making comments?This will be the default soon?
Not sure when the support for annotations will be dropped, but when this bundle will drop support for php 7.4 then the annotations from tests could be removed because I think most people who use php8 are already migrated to attributes or easily can migrate with rector. But those who don't then they will rely on annotations support in ORM itself
Use PHP attributes in tests for PHP8+
Use PHP attributes in tests for PHP8+
Fixes #<issue_number>
Please check if your PR fulfills the following requirements: