Skip to content

Commit

Permalink
Merge pull request #31 from exonet/tsi/php81
Browse files Browse the repository at this point in the history
PHP 8.1 support
  • Loading branch information
robbinjanssen authored Oct 6, 2022
2 parents 21b37bf + 9afa6b3 commit 854952a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
php: ["7.3", "7.4", "8.0"]
php: ["7.3", "7.4", "8.0", "8.1"]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "^7.3|^8.0",
"php": "^7.3|^8.0|^8.1",
"guzzlehttp/guzzle": "^7.4",
"psr/log": "^1.1|^2.0|^3.0",
"ext-json": "*"
Expand Down
6 changes: 3 additions & 3 deletions examples/dns_record_post.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if (empty($zones)) {
echo 'There are no zones available.';

exit();
exit;
}
$zone = $zones[0];

Expand All @@ -34,7 +34,7 @@
if ('Y' !== strtoupper(trim(fgets(STDIN)))) {
echo 'Cancel.';

exit();
exit;
}

// Make the new DNS record that should be added to the zone.
Expand Down Expand Up @@ -89,7 +89,7 @@
if ('Y' !== strtoupper(trim(fgets(STDIN)))) {
echo "\nDon't delete record\n";

exit();
exit;
}

echo 'Delete record';
Expand Down
2 changes: 1 addition & 1 deletion examples/dns_zone_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if (empty($zones)) {
echo 'There are no zones available.';

exit();
exit;
}
$zone = $zones[0];

Expand Down
2 changes: 1 addition & 1 deletion examples/ticket_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
if (empty($tickets)) {
echo 'There are no tickets available';

exit();
exit;
}

$ticket = $tickets[0];
Expand Down
2 changes: 2 additions & 0 deletions src/Structures/ApiResourceSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public function offsetExists($offset): bool
*
* @return mixed Can return all value types.
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->resources[$offset];
Expand Down Expand Up @@ -136,6 +137,7 @@ public function offsetUnset($offset): void
*
* @return int The number of resources in this set.
*/
#[\ReturnTypeWillChange]
public function count()
{
if (empty($this->resources)) {
Expand Down

0 comments on commit 854952a

Please sign in to comment.