Skip to content

Commit

Permalink
Fix code style after PHP CS Fixer upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche committed Feb 8, 2024
1 parent a675624 commit 4423c17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"twig/twig": "^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.40.2",
"friendsofphp/php-cs-fixer": "^3.49.0",
"mikey179/vfsstream": "^1.6.11",
"phpstan/phpstan": "^1.10.47",
"phpstan/phpstan": "^1.10.57",
"phpstan/phpstan-deprecation-rules": "^1.1.4",
"phpunit/phpunit": "^10.5.1",
"phpunit/phpunit": "^10.5.10",
"symfony/browser-kit": "^6.4 || ^7.0"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ public function __construct(array $command)
/**
* @param array<string>|null $env
*/
public static function fromShellCommandline(string $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60): static
public static function fromShellCommandline(string $command, ?string $cwd = null, ?array $env = null, $input = null, ?float $timeout = 60): static
{
return new self([$command]);
}

/**
* @param array<string> $env
*/
public function run(callable $callback = null, array $env = []): int
public function run(?callable $callback = null, array $env = []): int
{
if ('mogrify "somefailingstructure' === $this->cmd) {
$this->success = false;
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
declare(strict_types=1);

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

0 comments on commit 4423c17

Please sign in to comment.