Skip to content

Commit

Permalink
Merge pull request #37 from stof/fix_deprecations
Browse files Browse the repository at this point in the history
Fix deprecations in the testsuite
  • Loading branch information
stof committed Jan 16, 2024
2 parents 45ccbc7 + 53b9db8 commit e01331a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/FixtureApp/TestKernel.php
Expand Up @@ -2,6 +2,7 @@

namespace Incenteev\TranslationCheckerBundle\Tests\FixtureApp;

use Composer\InstalledVersions;
use Incenteev\TranslationCheckerBundle\IncenteevTranslationCheckerBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
Expand All @@ -25,7 +26,13 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
'translator' => array('fallback' => 'en'),
'secret' => 'test',
'http_method_override' => false,
'php_errors' => ['log' => false],
));
if (version_compare(InstalledVersions::getVersion('symfony/framework-bundle') ?? '2.0.0', '6.2.0', '>=')) {
$container->loadFromExtension('framework', [
'handle_all_throwables' => true,
]);
}
// Register a NullLogger to avoid getting the stderr default logger of FrameworkBundle
$container->register('logger', 'Psr\Log\NullLogger');
});
Expand Down

0 comments on commit e01331a

Please sign in to comment.