Skip to content

Commit

Permalink
Merge pull request #14 from nickvergessen/PHP-8.4
Browse files Browse the repository at this point in the history
feat: Add PHP 8.4 support
  • Loading branch information
icewind1991 authored Nov 8, 2024
2 parents 8339181 + 2b4e9a4 commit 3865288
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0']
php-versions: ['7.4', '8.0', '8.4']

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.4', '8.0']
php-versions: ['7.4', '8.0', '8.4']
name: php${{ matrix.php-versions }} lint
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Scope {
* @param int|string $depth
* @param string|null $path
*/
public function __construct(string $href = '', $depth = 1, string $path = null) {
public function __construct(string $href = '', $depth = 1, ?string $path = null) {
$this->href = $href;
$this->depth = $depth;
$this->path = $path;
Expand Down
2 changes: 1 addition & 1 deletion src/XML/QueryDiscoverResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class QueryDiscoverResponse extends Response {
* @param BasicSearchSchema|null $schema
* @param null|int|string $httpStatus
*/
public function __construct($href, BasicSearchSchema $schema = null, $httpStatus = null) {
public function __construct($href, ?BasicSearchSchema $schema = null, $httpStatus = null) {
if ($httpStatus !== null) {
$httpStatus = (string)$httpStatus;
}
Expand Down

0 comments on commit 3865288

Please sign in to comment.