Skip to content

Commit 6370127

Browse files
authored
Merge pull request #108 from stephpy/master
Since php 8.1, 1st argument of rtrim must not be nullable
2 parents 7799d7a + ca226c8 commit 6370127

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Json/JsonContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(JsonInspector $jsonInspector, $jsonSchemaBaseUrl = n
1919
{
2020
$this->jsonInspector = $jsonInspector;
2121
$this->asserter = new asserter();
22-
$this->jsonSchemaBaseUrl = rtrim($jsonSchemaBaseUrl, '/');
22+
$this->jsonSchemaBaseUrl = rtrim((string) $jsonSchemaBaseUrl, '/');
2323
}
2424

2525
/**
@@ -229,9 +229,9 @@ public function theJsonPathExpressionShouldNotHaveResult($pathExpression)
229229
{
230230
$json = $this->jsonInspector->searchJsonPath($pathExpression);
231231
if (is_array($json) && empty($json)) {
232-
$this->asserter->variable($json)->isEqualTo([]);
232+
$this->asserter->variable($json)->isEqualTo([]);
233233
} else {
234-
$this->asserter->variable($json)->isNull();
234+
$this->asserter->variable($json)->isNull();
235235
}
236236
}
237237

0 commit comments

Comments
 (0)