diff --git a/composer.json b/composer.json index d322cec..c835919 100644 --- a/composer.json +++ b/composer.json @@ -6,18 +6,18 @@ "require": { "php": ">=7.3", "hostnet/asset-lib": "^2.0.0", - "symfony/config": "^4.3 || ^5.0", - "symfony/console": "^4.3 || ^5.0", - "symfony/dependency-injection": "^4.3 || ^5.0", - "symfony/http-kernel": "^4.3 || ^5.0", - "symfony/process": "^4.3 || ^5.0" + "symfony/config": "^5.4", + "symfony/console": "^5.4", + "symfony/dependency-injection": "^5.4", + "symfony/http-kernel": "^5.4", + "symfony/process": "^5.4" }, "require-dev": { "hostnet/phpcs-tool": "^9.0.0", "phpspec/prophecy-phpunit": "^2.0.1", "phpunit/phpunit": "^9.5.5", - "symfony/framework-bundle": "^4.3 || ^5.0", - "symfony/yaml": "^4.3 || ^5.0", + "symfony/framework-bundle": "^5.4", + "symfony/yaml": "^5.4", "twig/twig": "^3.0.0" }, "autoload": { diff --git a/src/Command/CompileCommand.php b/src/Command/CompileCommand.php index 8bf2d05..ca3288d 100644 --- a/src/Command/CompileCommand.php +++ b/src/Command/CompileCommand.php @@ -37,7 +37,7 @@ public function __construct(ConfigInterface $config, BundlerInterface $bundler, /** * {@inheritdoc} */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { switch ($output->getVerbosity()) { case OutputInterface::VERBOSITY_DEBUG: diff --git a/src/Command/DebugCommand.php b/src/Command/DebugCommand.php index 2b640da..c0a73c8 100644 --- a/src/Command/DebugCommand.php +++ b/src/Command/DebugCommand.php @@ -38,7 +38,7 @@ protected function configure(): void /** * {@inheritdoc} */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { if ($input->getArgument('file')) { $this->checkFile($output, $input->getArgument('file')); diff --git a/src/EventListener/AssetsChangeListener.php b/src/EventListener/AssetsChangeListener.php index 86c0598..aa28c12 100644 --- a/src/EventListener/AssetsChangeListener.php +++ b/src/EventListener/AssetsChangeListener.php @@ -25,7 +25,7 @@ public function __construct(BundlerInterface $bundler, BuildConfig $build_config public function onKernelRequest(RequestEvent $e): void { // Only trigger on the master request. - if ($e->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) { + if ($e->getRequestType() !== HttpKernelInterface::MAIN_REQUEST) { return; } diff --git a/test/EventListener/AssetsChangeListenerTest.php b/test/EventListener/AssetsChangeListenerTest.php index bb822f7..d9efd27 100644 --- a/test/EventListener/AssetsChangeListenerTest.php +++ b/test/EventListener/AssetsChangeListenerTest.php @@ -47,7 +47,7 @@ public function testOnKernelRequest(): void $kernel = $this->prophesize(HttpKernelInterface::class); $request = new Request(); - $e = new RequestEvent($kernel->reveal(), $request, HttpKernelInterface::MASTER_REQUEST); + $e = new RequestEvent($kernel->reveal(), $request, HttpKernelInterface::MAIN_REQUEST); $this->assets_change_listener->onKernelRequest($e); }