Skip to content

Commit 635ee33

Browse files
committed
require php >= 8.1
1 parent c68a1cf commit 635ee33

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.4.0|^8.0",
16-
"psr/container": "^1.0.0",
17-
"symfony/console": "^4.2 || ^5.0"
15+
"php": "~8.1.0 || ~8.2.0",
16+
"psr/container": "^2.0",
17+
"symfony/console": "^5.0 || ^6.0"
1818
},
1919
"require-dev": {
20-
"phpro/grumphp": "~0.17 || ~1.0",
21-
"phpstan/phpstan": "^0.11.5 || ^0.12.0",
22-
"phpunit/phpunit": "^8.0 || ^9.0",
20+
"phpro/grumphp": "~1.0",
21+
"phpstan/phpstan": "^1.10",
22+
"phpunit/phpunit": "^9.0",
2323
"squizlabs/php_codesniffer": "^3.4",
24-
"symfony/var-dumper": "^4.2 || ^5.0"
24+
"symfony/var-dumper": "^5.0 || ^6.0"
2525
},
2626
"autoload": {
2727
"psr-4": {
@@ -45,7 +45,10 @@
4545
"test": "phpunit --colors=always"
4646
},
4747
"config": {
48-
"sort-packages": true
48+
"sort-packages": true,
49+
"allow-plugins": {
50+
"phpro/grumphp": true
51+
}
4952
},
5053
"extra": {
5154
"zf": {

src/Application/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(string $name = self::NAME, string $version = self::V
2222
parent::__construct($name, $version);
2323
}
2424

25-
public function run(InputInterface $input = null, OutputInterface $output = null)
25+
public function run(InputInterface $input = null, OutputInterface $output = null): int
2626
{
2727
return parent::run($input ?? $this->input, $output);
2828
}

test/Container/ConsoleFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use PHPUnit\Framework\TestCase;
1111
use Psr\Container\ContainerInterface;
1212
use Symfony\Component\Console\Command\Command;
13+
use Symfony\Component\Console\Helper\HelperInterface;
1314
use Symfony\Component\Console\Helper\HelperSet;
1415

1516
class ConsoleFactoryTest extends TestCase
@@ -29,7 +30,7 @@ public function testItShouldCreateNewConsoleInstances(): void
2930
private function givenDependencyInjectionContainer(): void
3031
{
3132
$helper = $this->createMock(HelperSet::class);
32-
$helper->method('get')->willReturn('question');
33+
$helper->method('get')->willReturn($this->createMock(HelperInterface::class));
3334
$command = $this->createMock(Command::class);
3435
$command->method('getName')->willReturn('some:command');
3536
$this->container = $this->createMock(ContainerInterface::class);

0 commit comments

Comments
 (0)