Skip to content

Commit

Permalink
fixup! Refactor with PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yekovalenkoa committed Feb 1, 2024
1 parent 602ba87 commit 2221633
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"webmozart/assert": "^1.11"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"phpunit/phpunit": "^9.6.16",
"symfony/phpunit-bridge": "6.1.*",
"phpro/grumphp": "^1.16",
"friendsofphp/php-cs-fixer": "^3.48",
"phpro/grumphp": "^2.4",
"phpstan/phpstan": "^1.10.57",
"phpstan/phpstan-webmozart-assert": "^1.2.4"
"phpstan/phpstan-webmozart-assert": "^1.2.4",
"phpunit/phpunit": "^10.5",
"roave/security-advisories": "dev-master",
"symfony/phpunit-bridge": "6.1.*"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ parameters:
paths:
- %rootDir%/../../../src
excludePaths:
- src/Tests/*
- tests/*
8 changes: 6 additions & 2 deletions tests/Integration/Command/FindPointsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ private function getCommand(): FindPoints
return new FindPoints($this->client, new Serializer());
}

private function getSuccessfulBody(): string|false
private function getSuccessfulBody(): string
{
return file_get_contents(__DIR__ . '/data/exampleResponse.json');
try {
return file_get_contents(__DIR__ . '/data/exampleResponse.json');
} catch (\Throwable) {
throw new \RuntimeException('Cannot read example response file');
}
}
}

0 comments on commit 2221633

Please sign in to comment.