Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions tests/Integration/MartinGeorgiev/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
$configuration->setProxyDir(self::FIXTURES_DIRECTORY.'/Proxies');
$configuration->setProxyNamespace(self::FIXTURE_NAMESPACE.'\Proxy');
$configuration->setAutoGenerateProxyClasses(true);
if (\PHP_VERSION_ID >= 80400 && \method_exists($configuration, 'enableNativeLazyObjects')) {

Check failure on line 80 in tests/Integration/MartinGeorgiev/TestCase.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 + Doctrine ORM 3.0 + Doctrine Lexer 3.0

Call to function method_exists() with Doctrine\ORM\Configuration and 'enableNativeLazyObj…' will always evaluate to true.

Check failure on line 80 in tests/Integration/MartinGeorgiev/TestCase.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 + Doctrine ORM latest + Doctrine Lexer 3.0

Call to function method_exists() with Doctrine\ORM\Configuration and 'enableNativeLazyObj…' will always evaluate to true.
// @phpstan-ignore-next-line
$configuration->enableNativeLazyObjects(true);
}
$this->setConfigurationCache($configuration);

// Register the entity namespace for DQL short aliases
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
$configuration->setProxyDir(static::FIXTURES_DIRECTORY.'/Proxies');
$configuration->setProxyNamespace('Fixtures\MartinGeorgiev\Doctrine\Entity\Proxy');
$configuration->setAutoGenerateProxyClasses(true);
if (\PHP_VERSION_ID >= 80400 && \method_exists($configuration, 'enableNativeLazyObjects')) {

Check failure on line 31 in tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/TestCase.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 + Doctrine ORM 3.0 + Doctrine Lexer 3.0

Call to function method_exists() with Doctrine\ORM\Configuration and 'enableNativeLazyObj…' will always evaluate to true.

Check failure on line 31 in tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/TestCase.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 + Doctrine ORM latest + Doctrine Lexer 3.0

Call to function method_exists() with Doctrine\ORM\Configuration and 'enableNativeLazyObj…' will always evaluate to true.
// @phpstan-ignore-next-line
$configuration->enableNativeLazyObjects(true);
}
$this->setConfigurationCache($configuration);

$this->configuration = $configuration;
Expand Down
Loading