Skip to content

Commit

Permalink
bump to php >=8.1 everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavies authored and weaverryan committed Jun 19, 2023
1 parent 23cd521 commit d562b80
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,21 @@
}
},
"require": {
"php": ">=8.0",
"php": ">=8.1",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/http-foundation": "^5.4|^6.0",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/property-access": "^5.4|^6.0",
"symfony/string": "^5.4|^6.0"
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.4",
"doctrine/orm": "^2.9",
"doctrine/collections": "^1.6.8|^2.0",
"doctrine/doctrine-bundle": "^2.4.3",
"doctrine/orm": "^2.9.4",
"fakerphp/faker": "^1.22",
"mtdowling/jmespath.php": "^2.6",
"symfony/form": "^5.4|^6.0",
"symfony/options-resolver": "^5.4|^6.0",
"symfony/framework-bundle": "^5.4|^6.0",
"symfony/maker-bundle": "^1.40",
"symfony/phpunit-bridge": "^5.4|^6.0",
Expand All @@ -45,8 +47,9 @@
"symfony/security-csrf": "^5.4|^6.0",
"symfony/twig-bundle": "^5.4|^6.0",
"symfony/uid": "^5.4|^6.0",
"twig/twig": "^2.14.7|^3.0.4",
"zenstruck/browser": "^1.1",
"zenstruck/foundry": "^1.32"
"zenstruck/foundry": "^1.33"
},
"conflict": {
"doctrine/orm": "2.9.0 || 2.9.1"
Expand Down
14 changes: 14 additions & 0 deletions tests/Fixtures/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Bundle\MakerBundle\MakerBundle;
use Symfony\Bundle\SecurityBundle\SecurityBundle;
use Symfony\Bundle\TwigBundle\TwigBundle;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\Form\FormFactoryInterface;
Expand Down Expand Up @@ -66,6 +69,17 @@ public function registerBundles(): iterable
yield new ZenstruckFoundryBundle();
}

protected function build(ContainerBuilder $container): void
{
// workaround https://github.com/symfony/symfony/issues/50322
$container->addCompilerPass(new class() implements CompilerPassInterface {
public function process(ContainerBuilder $container): void
{
$container->removeDefinition('doctrine.orm.listeners.pdo_session_handler_schema_listener');
}
}, PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
}

protected function configureContainer(ContainerConfigurator $c): void
{
$c->extension('framework', [
Expand Down

0 comments on commit d562b80

Please sign in to comment.