Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
updated minimum version to symfony 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nutama committed Jul 11, 2022
1 parent f2ec23c commit 28be822
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/CompileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/AssetsChangeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion test/EventListener/AssetsChangeListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 28be822

Please sign in to comment.