Compare commits

...

5 commits

Author SHA1 Message Date
3865288b69
Merge pull request #14 from nickvergessen/PHP-8.4
feat: Add PHP 8.4 support
2024-11-08 16:54:16 +01:00
Joas Schilling
2b4e9a4811
feat: Add PHP 8.4 support
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-11-08 12:13:26 +01:00
8339181df3
Merge pull request #13 from artonge/patch-1
Add handling for is-defined operator
2023-11-14 23:32:04 +01:00
Louis
168c5f9cc4
Add handling for is-defined operator 2023-11-14 17:40:44 +01:00
52c8cfc21b add alias for DATATYPE_NONNEGATIVE_INTEGER 2022-04-11 15:02:49 +02:00
6 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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';

View file

@ -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,
];
}

View file

@ -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;

View file

@ -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;
}