Skip to content

Commit 74366eb

Browse files
committed
Depcecation notice test and suppress
1 parent dd81344 commit 74366eb

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Test/configuration.xml

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ PortaOne Billing JSON API wrapper
44
API docs: https://docs.portaone.com
55
(c) Alexey Pavlyuts <[email protected]>
66
-->
7-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
8-
<coverage processUncoveredFiles="true">
9-
<include>
10-
<directory suffix=".php">../Yate/Api</directory>
11-
</include>
12-
<exclude>
13-
</exclude>
14-
</coverage>
7+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="false"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
9+
convertDeprecationsToExceptions="true">
10+
<coverage processUncoveredFiles="true">
11+
<include>
12+
<directory suffix=".php">../Yate/Api</directory>
13+
</include>
14+
<exclude>
15+
</exclude>
16+
</coverage>
1517
</phpunit>

Yate/Api/ApiResponse.php

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function offsetExists($offset): bool
4545
return isset($this->result[$offset]);
4646
}
4747

48+
#[\ReturnTypeWillChange]
4849
public function offsetGet($offset)
4950
{
5051
return $this->result[$offset] ?? null;

0 commit comments

Comments
 (0)