norkunas
Repos
60
Followers
48
Following
31

OneSignal API for PHP

230
83

Youtube-dl wrapper for PHP

369
131

Integration of the Geocoder library into Symfony.

298
102

Events

issue comment
There is no policy in programming

We could call you also a sofa troop :man_shrugging:

Created at 6 hours ago
push

Add libgraphicsmagick1-dev

Created at 1 day ago
push

Fix Dockerfile syntax

Created at 1 day ago
push

Add gmagick

Created at 1 day ago
push

Upgrade composer

Created at 2 days ago
opened issue
[LiveComponent] DoctrineObjectNormalizer became too greedy

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

Created at 3 days ago
norkunas delete branch php-attributes
Created at 5 days ago
Use PHP attributes in tests for PHP8+

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

Created at 1 week ago
delete branch
norkunas delete branch patch-1
Created at 1 week ago

Use PHP attributes in tests for PHP8+

Created at 1 week ago

Use PHP attributes in tests for PHP8+

Created at 1 week ago
pull request opened
Use PHP attributes in tests for PHP8+

Pull Request

Related issue

Fixes #<issue_number>

What does this PR do?

  • Configures PHP attributes to be used in tests for PHP8+

PR checklist

Please check if your PR fulfills the following requirements:

  • [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • [x] Have you read the contributing guidelines?
  • [x] Have you made sure that the title is accurate and descriptive of the changes?
Created at 1 week ago