Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
31b781e
IBX-8471: [Composer] Dropped obsolete symfony/proxy-manager-bridge
alongosz Mar 3, 2025
a9f329d
IBX-8471: [Composer] Bumped Symfony packages requirements to ^7.2
alongosz Mar 3, 2025
94aa769
IBX-8471: [Composer] Bumped 3rd party packages compatible with for Sy…
alongosz Mar 3, 2025
d53b100
[TMP] Switched to dev branch of ibexa packages
alongosz Mar 3, 2025
a7e8a51
Fixed incompatible Ibexa\Bundle\IO\IbexaIOBundle::$extension declaration
adamwojs May 3, 2025
0d302e8
Fixed incompatible Symfony\Component\HttpKernel\CacheWarmer\CacheWarm…
adamwojs May 3, 2025
2396731
[symfony/console] Fixed incompatible Symfony\Component\Console\Output…
adamwojs May 3, 2025
b852093
[doctrine/dbal] Fixed usage of deprecated \Doctrine\DBAL\Query\QueryB…
adamwojs May 3, 2025
3eb332c
fixup! [doctrine/dbal] Fixed usage of deprecated \Doctrine\DBAL\Query…
adamwojs May 3, 2025
353ddc0
[doctrine/dbal] Replaced usage of deprecated fetchColumn method with …
adamwojs May 3, 2025
afc0fde
IBX-8471: Upgraded SiteAccess Matcher serializers to Symfony 7
adamwojs May 3, 2025
8cd0448
fixup! [doctrine/dbal] Fixed usage of deprecated \Doctrine\DBAL\Query…
adamwojs May 3, 2025
fe19f70
IBX-8471: [Composer] Added doctrine/annotations to "require" section
alongosz Apr 22, 2025
466b239
[doctrine/dbal] Fixed references to removed Doctrine\DBAL\Platforms\{…
adamwojs May 3, 2025
f0419d2
[tests] Adapted Ibexa\Tests\Core\MVC\Symfony\Templating\Twig\Extensio…
adamwojs May 3, 2025
b6c252e
[tests] Fixed Ibexa\Tests\Bundle\IO\DependencyInjection\Configuration…
adamwojs May 3, 2025
7288248
[tests] Fixed incompatible \Ibexa\Tests\Integration\RepositoryInstall…
adamwojs May 3, 2025
b29733a
[doctrine/dbal] Replaced usage of removed Doctrine\DBAL\Driver\Result…
adamwojs May 3, 2025
78c43ef
[doctrine/dbal] Removed colons prefix from bound parameter names
adamwojs May 3, 2025
1e83d45
[doctrine/dbal] Fixed null passed to Doctrine\DBAL\Query\QueryBuilder…
adamwojs May 3, 2025
960c891
fixup! [doctrine/dbal] Fixed usage of deprecated \Doctrine\DBAL\Query…
adamwojs May 5, 2025
4daec81
IBX-9811: Refactored Location Doctrine Gateway getSubtreeContent met…
alongosz Apr 1, 2025
f5acb07
[doctrine/dbal] Replcated ->fetch(FetchMode::ASSOCIATIVE) with fetchA…
adamwojs May 5, 2025
68e5607
Adapted Ibexa\Tests\Integration\Core\Persistence\Filter\Doctrine\Filt…
adamwojs May 5, 2025
d7c6594
Added type declaration to \Ibexa\Contracts\Core\FieldType\GatewayBase…
adamwojs May 5, 2025
9f571e0
Added type declaration to Ibexa\Core\Search\Common\Indexer properties
adamwojs May 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
"ext-mbstring": "*",
"ext-xsl": "*",
"composer/package-versions-deprecated": "^1.11",
"doctrine/dbal": "^2.13.0",
"doctrine/doctrine-bundle": "^2.0",
"doctrine/annotations": "^2.0",
"doctrine/dbal": "^3.7.0",
"doctrine/doctrine-bundle": "^2.11.0",
"doctrine/orm": "^2.7",
"friendsofphp/proxy-manager-lts": "^1.0",
"friendsofsymfony/http-cache-bundle": "^2.8",
"friendsofsymfony/http-cache-bundle": "^3.0",
"friendsofsymfony/jsrouting-bundle": "^3.5",
"ibexa/doctrine-schema": "~5.0.x-dev",
"ibexa/doctrine-schema": "dev-ibx-8471-symfony-7 as 5.0.x-dev",
"jms/translation-bundle": "^2.4",
"league/flysystem-memory": "^2.0.6",
"liip/imagine-bundle": "^2.3",
Expand All @@ -35,44 +36,43 @@
"pagerfanta/pagerfanta": "^3.6.2",
"psr/event-dispatcher": "^1.0",
"symfony-cmf/routing": "^3.0",
"symfony/cache": "^6.4.0",
"symfony/console": "^6.4.0",
"symfony/dependency-injection": "^6.4.0",
"symfony/event-dispatcher": "^6.4.0",
"symfony/expression-language": "^6.4.0",
"symfony/framework-bundle": "^6.4.0",
"symfony/http-client": "^6.4.0",
"symfony/http-foundation": "^6.4.0",
"symfony/http-kernel": "^6.4.0",
"symfony/mime": "^6.4.0",
"symfony/cache": "^7.2",
"symfony/console": "^7.2",
"symfony/dependency-injection": "^7.2",
"symfony/event-dispatcher": "^7.2",
"symfony/expression-language": "^7.2",
"symfony/framework-bundle": "^7.2",
"symfony/http-client": "^7.2",
"symfony/http-foundation": "^7.2",
"symfony/http-kernel": "^7.2",
"symfony/mime": "^7.2",
"symfony/polyfill-php80": "^1.27",
"symfony/process": "^6.4.0",
"symfony/security-bundle": "^6.4.0",
"symfony/security-core": "^6.4.0",
"symfony/security-http": "^6.4.0",
"symfony/serializer": "^6.4.0",
"symfony/process": "^7.2",
"symfony/security-bundle": "^7.2",
"symfony/security-core": "^7.2",
"symfony/security-http": "^7.2",
"symfony/serializer": "^7.2",
"symfony/templating": "^6.4.0",
"symfony/translation": "^6.4.0",
"symfony/validator": "^6.4.0",
"symfony/var-dumper": "^6.4.0",
"symfony/yaml": "^6.4.0",
"symfony/translation": "^7.2",
"symfony/validator": "^7.2",
"symfony/var-dumper": "^7.2",
"symfony/yaml": "^7.2",
"twig/extra-bundle": "^3.0",
"twig/twig": ">=3.0 <3.16 || ^3.19.0"
},
"require-dev": {
"behat/behat": "^3.6.1",
"friends-of-behat/mink-extension": "^2.4",
"ibexa/code-style": "~2.0.0",
"ibexa/rector": "~5.0.x-dev",
"ibexa/rector": "dev-ibx-8471-symfony-7 as 5.0.x-dev",
"jenner/simple_fork": "^1.2",
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
"matthiasnoback/symfony-dependency-injection-test": "^5.0",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
"phpunit/phpunit": "^9.6",
"symfony/phpunit-bridge": "^5.4",
"symfony/proxy-manager-bridge": "^6.4",
"symfony/runtime": "^6.4.0"
"symfony/phpunit-bridge": "^7.2",
"symfony/runtime": "^7.2"
},
"conflict": {
"doctrine/dbal": "2.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Core/Cache/Warmer/ProxyCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function isOptional(): bool
return false;
}

public function warmUp($cacheDir): array
public function warmUp($cacheDir, ?string $buildDir = null): array
{
$this->proxyGenerator->warmUp(self::PROXY_CLASSES);

Expand Down
3 changes: 1 addition & 2 deletions src/bundle/Core/Command/CleanupVersionsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ protected function getObjectsIds($keep, $status, $excludedContentTypes = [])
)->setParameter('contentTypes', $excludedContentTypes, Connection::PARAM_STR_ARRAY);
}

/** @var \Doctrine\DBAL\ForwardCompatibility\Result<int> $stmt */
$stmt = $query->execute();
$stmt = $query->executeQuery();

return $stmt->fetchFirstColumn();
}
Expand Down
6 changes: 3 additions & 3 deletions src/bundle/Core/Command/UpdateTimestampsToUTCCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ protected function getTimestampBasedFields($offset, $limit)
->setParameter('toTimestamp', $this->to);
}

$statement = $query->execute();
$statement = $query->executeQuery();

return $statement->fetchAll(PDO::FETCH_ASSOC);
}
Expand Down Expand Up @@ -359,7 +359,7 @@ protected function countTimestampBasedFields(): int
->setParameter('toTimestamp', $this->to);
}

$statement = $query->execute();
$statement = $query->executeQuery();

return (int) $statement->fetchColumn();
}
Expand Down Expand Up @@ -471,7 +471,7 @@ protected function updateTimestampToUTC(
->setParameter('id', $contentAttributeId)
->setParameter('version', $contentAttributeVersion);

$query->execute();
$query->executeStatement();
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/bundle/Core/Command/VirtualFieldDuplicateFixCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private function getDuplicatedAttributeTotalCount(
->from('ezcontentobject_attribute', 'a')
->having('instances > 1');

$count = (int) $query->execute()->rowCount();
$count = (int) $query->executeQuery()->rowCount();

if ($count > 0) {
$style->warning(
Expand Down Expand Up @@ -200,7 +200,7 @@ private function getDuplicatedAttributesBatch(int $batchSize): array
->setFirstResult(0)
->setMaxResults($batchSize);

return $query->execute()->fetchAllAssociative();
return $query->executeQuery()->fetchAllAssociative();
}

/**
Expand Down Expand Up @@ -229,7 +229,7 @@ private function getDuplicatedAttributeIds(array $attribute): array
->setFirstResult(1);

$query->setParameters($attribute);
$result = $query->execute()->fetchFirstColumn();
$result = $query->executeQuery()->fetchFirstColumn();

return array_map('intval', $result);
}
Expand Down Expand Up @@ -259,6 +259,6 @@ private function deleteAttributes(array $ids): int
->delete('ezcontentobject_attribute')
->andWhere($query->expr()->in('id', array_map('strval', $ids)));

return (int)$query->execute();
return (int)$query->executeStatement();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function init()
{
$selectQuery = $this->connection->createQueryBuilder();
$selectQuery->select('filepath')->from('ezimagefile');
$this->statement = $selectQuery->execute();
$this->statement = $selectQuery->executeQuery();
}

public function getRow()
Expand Down
3 changes: 0 additions & 3 deletions src/bundle/IO/IbexaIOBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

class IbexaIOBundle extends Bundle
{
/** @var \Ibexa\Bundle\IO\DependencyInjection\IbexaIOExtension|null */
protected $extension;

public function build(ContainerBuilder $container): void
{
/** @var \Ibexa\Bundle\IO\DependencyInjection\IbexaIOExtension $extension */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final public function init()
$selectQuery
->select('filename', 'mime_type')
->from($this->getStorageTable());
$this->statement = $selectQuery->execute();
$this->statement = $selectQuery->executeQuery();
}

/**
Expand Down
4 changes: 1 addition & 3 deletions src/contracts/FieldType/GatewayBasedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ abstract class GatewayBasedStorage implements FieldStorage
/**
* Field Type External Storage Gateway.
*
* @var \Ibexa\Contracts\Core\FieldType\StorageGatewayInterface
*
* @phpstan-var T
*/
protected $gateway;
protected StorageGatewayInterface $gateway;

/**
* @param \Ibexa\Contracts\Core\FieldType\StorageGatewayInterface $gateway
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/Test/Persistence/Fixture/FixtureImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function truncateTables(array $tables): void
);
} catch (DBALException | PDOException $e) {
// Fallback to DELETE if TRUNCATE failed (because of FKs for instance)
$this->connection->createQueryBuilder()->delete($table)->execute();
$this->connection->createQueryBuilder()->delete($table)->executeStatement();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/FieldType/BinaryBase/BinaryBaseStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BinaryBaseStorage extends GatewayBasedStorage
protected PathGeneratorInterface $downloadUrlGenerator;

/** @var \Ibexa\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway */
protected $gateway;
protected StorageGatewayInterface $gateway;

/** @var \Ibexa\Core\FieldType\Validator\FileExtensionBlackListValidator */
protected $fileExtensionBlackListValidator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected function updateFieldData(VersionInfo $versionInfo, Field $field)
->setParameter('versionNo', $versionInfo->versionNo, ParameterType::INTEGER)
;

$updateQuery->execute();
$updateQuery->executeQuery();
}

/**
Expand All @@ -192,7 +192,7 @@ protected function storeNewFieldData(VersionInfo $versionInfo, Field $field)

$this->setInsertColumns($insertQuery, $versionInfo, $field);

$insertQuery->execute();
$insertQuery->executeStatement();
}

/**
Expand Down Expand Up @@ -241,7 +241,7 @@ public function getFileReferenceData($fieldId, $versionNo)
->setParameter('versionNo', $versionNo, PDO::PARAM_INT)
;

$statement = $selectQuery->execute();
$statement = $selectQuery->executeQuery();

$result = $statement->fetchAll(PDO::FETCH_ASSOC);

Expand Down Expand Up @@ -337,7 +337,7 @@ public function removeFileReferences(array $fieldIds, $versionNo)
->setParameter('versionNo', $versionNo, PDO::PARAM_INT)
;

$deleteQuery->execute();
$deleteQuery->executeStatement();
}

/**
Expand Down Expand Up @@ -367,7 +367,7 @@ public function removeFileReference($fieldId, $versionNo)
->setParameter('versionNo', $versionNo, PDO::PARAM_INT)
;

$deleteQuery->execute();
$deleteQuery->executeStatement();
}

/**
Expand Down Expand Up @@ -406,7 +406,7 @@ public function getReferencedFiles(array $fieldIds, $versionNo)
->setParameter('versionNo', $versionNo, PDO::PARAM_INT)
;

$statement = $selectQuery->execute();
$statement = $selectQuery->executeQuery();

return array_map(
function ($row) {
Expand Down Expand Up @@ -460,7 +460,7 @@ public function countFileReferences(array $files)
)
;

$statement = $selectQuery->execute();
$statement = $selectQuery->executeQuery();

$countMap = [];
foreach ($statement->fetchAll(PDO::FETCH_ASSOC) as $row) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/FieldType/Image/ImageStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ImageStorage extends GatewayBasedStorage
protected $aliasCleaner;

/** @var \Ibexa\Core\FieldType\Image\ImageStorage\Gateway */
protected $gateway;
protected StorageGatewayInterface $gateway;

/** @var \Ibexa\Core\IO\FilePathNormalizerInterface */
protected $filePathNormalizer;
Expand Down
Loading
Loading