Skip to content

Commit

Permalink
Remove KnpDoctrineBehaviors (#11390)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano authored Jan 30, 2025
1 parent a27682d commit 298d7b7
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 171 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"google/cloud-recaptcha-enterprise": "^1.2",
"google/cloud-storage": "^1.23",
"google/cloud-vision": "^1.2",
"knplabs/doctrine-behaviors": "^2.6",
"knplabs/knp-time-bundle": "^2.0",
"kreait/firebase-bundle": "^5.0",
"league/commonmark": "^2.5",
Expand Down
94 changes: 1 addition & 93 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Bazinga\GeocoderBundle\BazingaGeocoderBundle::class => ['all' => true],
Cocur\Slugify\Bridge\Symfony\CocurSlugifyBundle::class => ['all' => true],
Endroid\QrCodeBundle\EndroidQrCodeBundle::class => ['all' => true],
Knp\DoctrineBehaviors\DoctrineBehaviorsBundle::class => ['all' => true],
A2lix\AutoFormBundle\A2lixAutoFormBundle::class => ['all' => true],
A2lix\TranslationFormBundle\A2lixTranslationFormBundle::class => ['all' => true],
Sonata\Exporter\Bridge\Symfony\SonataExporterBundle::class => ['all' => true],
Expand Down
1 change: 0 additions & 1 deletion config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ doctrine:
round: DoctrineExtensions\Query\Mysql\Round
string_functions:
json_contains: App\Query\Mysql\JsonContains
left: App\Query\Mysql\Left
find_in_set: DoctrineExtensions\Query\Mysql\FindInSet
substring_index: DoctrineExtensions\Query\Mysql\SubstringIndex
group_concat: DoctrineExtensions\Query\Mysql\GroupConcat
Expand Down
10 changes: 5 additions & 5 deletions src/Doctrine/DBAL/Types/GeoPointType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@

final class GeoPointType extends Type
{
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
{
if ($platform instanceof MySQLPlatform) {
return \sprintf('FLOAT (10,6)');
return 'FLOAT (10,6)';
}

return $platform->getFloatDeclarationSQL($fieldDeclaration);
return $platform->getFloatDeclarationSQL($column);
}

public function getName()
public function getName(): string
{
return 'geo_point';
}

public function requiresSQLCommentHint(AbstractPlatform $platform)
public function requiresSQLCommentHint(AbstractPlatform $platform): true
{
return true;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Doctrine/Hydrators/EventHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@

class EventHydrator extends AbstractHydrator
{
protected function hydrateAllData()
protected function hydrateAllData(): mixed
{
$result = [];
foreach ($this->_stmt->fetchAll(\PDO::FETCH_ASSOC) as $row) {
foreach ($this->_stmt->fetchAllAssociative() as $row) {
$this->hydrateRowData($row, $result);
}

return $result;
}

protected function hydrateRowData(array $row, array &$result)
protected function hydrateRowData(array $row, array &$result): void
{
if (!\count($row)) {
return false;
return;
}

if (AddressInterface::FRANCE === $row['event_address_country']) {
Expand Down
31 changes: 0 additions & 31 deletions src/Entity/AbstractTranslatableEntity.php

This file was deleted.

35 changes: 0 additions & 35 deletions src/Query/Mysql/Left.php

This file was deleted.

0 comments on commit 298d7b7

Please sign in to comment.