Skip to content

Commit

Permalink
Merge pull request #10 from polidog/supported_php8
Browse files Browse the repository at this point in the history
Supported php8
  • Loading branch information
cydrickn authored Jan 20, 2022
2 parents 27bdaf7 + 6419f9c commit c808743
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/coverage

composer.lock
phpunit.xml
phpunit.xml
.phpunit.result.cache
2 changes: 1 addition & 1 deletion Schema/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Schema extends OpenApi
{
public function findMatchingOperations(RequestInterface $request): ?OperationAddress
{
$pathFinder = new PathFinder($this, $request->getUri(), $request->getMethod());
$pathFinder = new PathFinder($this, (string)$request->getUri(), $request->getMethod());
$matchingOperationsAddrs = $pathFinder->search();

if (count($matchingOperationsAddrs) === 1) {
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
}
},
"require": {
"php": "^7.4",
"php": "^7.4|^8.0",
"ext-json": "*",
"psr/http-message": "^1.0",
"symfony/framework-bundle": "^5.1",
"league/openapi-psr7-validator": "^0.11.0",
"league/openapi-psr7-validator": "^0.16.0",
"symfony/psr-http-message-bridge": "^2.0",
"nyholm/psr7": "^1.3"
},
Expand Down
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<testsuite name="unit">
<directory suffix="Test.php">Tests/Unit</directory>
</testsuite>
<testsuite name="integration">
<directory suffix="Test.php">Tests/Integration</directory>
</testsuite>
</testsuites>

<filter>
Expand Down

0 comments on commit c808743

Please sign in to comment.