Skip to content
32 changes: 16 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
"doctrine/deprecations": "^1.0",
"doctrine/persistence": "^3.1 || ^4",
"doctrine/sql-formatter": "^1.0.1",
"symfony/cache": "^6.4 || ^7.0",
"symfony/config": "^6.4 || ^7.0",
"symfony/cache": "^6.4 || ^7.0 || ^8.0",
"symfony/config": "^6.4 || ^7.0 || ^8.0",
"symfony/console": "^6.4 || ^7.0",
"symfony/dependency-injection": "^6.4 || ^7.0",
"symfony/doctrine-bridge": "^6.4.3 || ^7.0.3",
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/doctrine-bridge": "^6.4.3 || ^7.0.3 || ^8.0",
"symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0",
"symfony/service-contracts": "^2.5 || ^3"
},
"require-dev": {
Expand All @@ -53,18 +53,18 @@
"phpstan/phpstan-strict-rules": "^2",
"phpunit/phpunit": "^10.5.53 || ^12.3.10",
"psr/log": "^1.1.4 || ^2.0 || ^3.0",
"symfony/doctrine-messenger": "^6.4 || ^7.0",
"symfony/expression-language": "^6.4 || ^7.0",
"symfony/messenger": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0",
"symfony/security-bundle": "^6.4 || ^7.0",
"symfony/stopwatch": "^6.4 || ^7.0",
"symfony/string": "^6.4 || ^7.0",
"symfony/twig-bridge": "^6.4 || ^7.0",
"symfony/validator": "^6.4 || ^7.0",
"symfony/var-exporter": "^6.4.1 || ^7.0.1",
"symfony/web-profiler-bundle": "^6.4 || ^7.0",
"symfony/yaml": "^6.4 || ^7.0",
"symfony/doctrine-messenger": "^6.4 || ^7.0 || ^8.0",
"symfony/expression-language": "^6.4 || ^7.0 || ^8.0",
"symfony/messenger": "^6.4 || ^7.0 || ^8.0",
"symfony/property-info": "^6.4 || ^7.0 || ^8.0",
"symfony/security-bundle": "^6.4 || ^7.0 || ^8.0",
"symfony/stopwatch": "^6.4 || ^7.0 || ^8.0",
"symfony/string": "^6.4 || ^7.0 || ^8.0",
"symfony/twig-bridge": "^6.4 || ^7.0 || ^8.0",
"symfony/validator": "^6.4 || ^7.0 || ^8.0",
"symfony/var-exporter": "^6.4.1 || ^7.0.1 || ^8.0",
"symfony/web-profiler-bundle": "^6.4 || ^7.0 || ^8.0",
"symfony/yaml": "^6.4 || ^7.0 || ^8.0",
"twig/twig": "^2.14.7 || ^3.0.4"
},
"conflict": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use PDO;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\IgnoreDeprecations;
use PHPUnit\Framework\Attributes\RequiresMethod;
use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterEventListenersAndSubscribersPass;
use Symfony\Bundle\DoctrineBundle\Tests\DependencyInjection\TestHydrator;
Expand All @@ -47,6 +48,7 @@
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ServiceLocator;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\VarExporter\ProxyHelper;

use function array_filter;
use function array_intersect_key;
Expand Down Expand Up @@ -1494,6 +1496,7 @@ public function testDisableSchemaValidation(): void
}

#[IgnoreDeprecations]
#[RequiresMethod(ProxyHelper::class, 'generateLazyGhost')]
public function testNativeLazyObjectsWithoutConfig(): void
{
if (! interface_exists(EntityManagerInterface::class)) {
Expand Down Expand Up @@ -1538,6 +1541,7 @@ public function testNativeLazyObjectsWithConfigTrue(): void
}

#[IgnoreDeprecations]
#[RequiresMethod(ProxyHelper::class, 'generateLazyGhost')]
public function testNativeLazyObjectsWithConfigFalse(): void
{
if (! interface_exists(EntityManagerInterface::class)) {
Expand Down
1 change: 0 additions & 1 deletion tests/DependencyInjection/Compiler/IdGeneratorPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public function testRepositoryServiceWiring(): void
$extension->load([
'framework' => [
'http_method_override' => false,
'annotations' => ['enabled' => false],
'php_errors' => ['log' => true],
'handle_all_throwables' => true,
],
Expand Down
9 changes: 6 additions & 3 deletions tests/DependencyInjection/Fixtures/DbalTestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@
$container->loadFromExtension('framework', [
'secret' => 'F00',
'http_method_override' => false,
'annotations' => [
'enabled' => version_compare(Kernel::VERSION, '7.0.0', '<'),
],
]);

if (version_compare(Kernel::VERSION, '7.0.0', '<')) {

Check failure on line 49 in tests/DependencyInjection/Fixtures/DbalTestKernel.php

View workflow job for this annotation

GitHub Actions / Static Analysis / PHPStan (PHP: 8.4)

If condition is always false.
$container->loadFromExtension('framework', [
'annotations' => ['enabled' => true],
]);
}

$container->loadFromExtension('doctrine', [
'dbal' => $this->dbalConfig,
]);
Expand Down
1 change: 0 additions & 1 deletion tests/DependencyInjection/Fixtures/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
$container->loadFromExtension('framework', [
'secret' => 'F00',
'http_method_override' => false,
'annotations' => false,
'php_errors' => ['log' => true],
'handle_all_throwables' => true,
]);
Expand Down
2 changes: 2 additions & 0 deletions tests/DependencyInjection/XmlDoctrineExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

namespace Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection;

use PHPUnit\Framework\Attributes\IgnoreDeprecations;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

#[IgnoreDeprecations]
class XmlDoctrineExtensionTest extends AbstractDoctrineExtensionTestCase
{
protected function loadFromFile(
Expand Down
1 change: 0 additions & 1 deletion tests/ServiceRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public function testRepositoryServiceWiring(): void
'framework' => [
'http_method_override' => false,
'php_errors' => ['log' => true],
'annotations' => ['enabled' => false],
'handle_all_throwables' => true,
],
], $container);
Expand Down
Loading