Skip to content

Commit 4423c17

Browse files
committed
Fix code style after PHP CS Fixer upgrade
1 parent a675624 commit 4423c17

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
"twig/twig": "^3.0"
4141
},
4242
"require-dev": {
43-
"friendsofphp/php-cs-fixer": "^3.40.2",
43+
"friendsofphp/php-cs-fixer": "^3.49.0",
4444
"mikey179/vfsstream": "^1.6.11",
45-
"phpstan/phpstan": "^1.10.47",
45+
"phpstan/phpstan": "^1.10.57",
4646
"phpstan/phpstan-deprecation-rules": "^1.1.4",
47-
"phpunit/phpunit": "^10.5.1",
47+
"phpunit/phpunit": "^10.5.10",
4848
"symfony/browser-kit": "^6.4 || ^7.0"
4949
},
5050
"scripts": {

tests/Mock/Process.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ public function __construct(array $command)
2222
/**
2323
* @param array<string>|null $env
2424
*/
25-
public static function fromShellCommandline(string $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60): static
25+
public static function fromShellCommandline(string $command, ?string $cwd = null, ?array $env = null, $input = null, ?float $timeout = 60): static
2626
{
2727
return new self([$command]);
2828
}
2929

3030
/**
3131
* @param array<string> $env
3232
*/
33-
public function run(callable $callback = null, array $env = []): int
33+
public function run(?callable $callback = null, array $env = []): int
3434
{
3535
if ('mogrify "somefailingstructure' === $this->cmd) {
3636
$this->success = false;

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
declare(strict_types=1);
44

55
if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) {
6-
throw new \LogicException('Could not find autoload.php in vendor/. Did you run "composer install --dev"?');
6+
throw new LogicException('Could not find autoload.php in vendor/. Did you run "composer install --dev"?');
77
}
88
require $autoloadFile;

0 commit comments

Comments
 (0)