From 52c8cfc21bd69271f224671c4924d260b0a8d4fb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 11 Apr 2022 15:02:49 +0200 Subject: [PATCH 1/3] add alias for `DATATYPE_NONNEGATIVE_INTEGER` --- src/Backend/SearchPropertyDefinition.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Backend/SearchPropertyDefinition.php b/src/Backend/SearchPropertyDefinition.php index c8a8879..4dca05b 100644 --- a/src/Backend/SearchPropertyDefinition.php +++ b/src/Backend/SearchPropertyDefinition.php @@ -25,6 +25,7 @@ class SearchPropertyDefinition { const XS = '{http://www.w3.org/2001/XMLSchema}'; const DATATYPE_STRING = self::XS . 'string'; const DATATYPE_INTEGER = self::XS . 'integer'; + const DATATYPE_NONNEGATIVE_INTEGER = self::XS . 'nonNegativeInteger'; const DATATYPE_NON_NEGATIVE_INTEGER = self::XS . 'nonNegativeInteger'; const DATATYPE_DECIMAL = self::XS . 'decimal'; const DATATYPE_DATETIME = self::XS . 'dateTime'; From 168c5f9cc4bc9106ca7f2384e7f2f9a0e8723ad5 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 14 Nov 2023 17:40:44 +0100 Subject: [PATCH 2/3] 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 3/3] 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; }