From 168c5f9cc4bc9106ca7f2384e7f2f9a0e8723ad5 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 14 Nov 2023 17:40:44 +0100 Subject: [PATCH 1/2] Add handling for is-defined operator --- src/DAV/QueryParser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DAV/QueryParser.php b/src/DAV/QueryParser.php index 440b644..915184e 100644 --- a/src/DAV/QueryParser.php +++ b/src/DAV/QueryParser.php @@ -76,6 +76,7 @@ class QueryParser extends Service { '{DAV:}contains' => Operator::class, '{DAV:}not' => Operator::class, '{DAV:}is-collection' => Operator::class, + '{DAV:}is-defined' => Operator::class, '{DAV:}limit' => Limit::class, ]; } From 2b4e9a481165b84837872460bce6e145bf64dc16 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 8 Nov 2024 12:13:26 +0100 Subject: [PATCH 2/2] feat: Add PHP 8.4 support Signed-off-by: Joas Schilling --- .github/workflows/ci.yml | 2 +- .github/workflows/lint.yml | 2 +- src/Query/Scope.php | 2 +- src/XML/QueryDiscoverResponse.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ad7713..7ad8d77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 75f0f34..2cd12eb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/src/Query/Scope.php b/src/Query/Scope.php index faded1c..76b41ae 100644 --- a/src/Query/Scope.php +++ b/src/Query/Scope.php @@ -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; diff --git a/src/XML/QueryDiscoverResponse.php b/src/XML/QueryDiscoverResponse.php index c50dea9..0d8b6a2 100644 --- a/src/XML/QueryDiscoverResponse.php +++ b/src/XML/QueryDiscoverResponse.php @@ -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; }