mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
strict typing and php 7.1
This commit is contained in:
parent
b3fde1c79b
commit
e8cf5e7644
25 changed files with 43 additions and 36 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
/**
|
||||
* @copyright Copyright (c) 2017 Robin Appelman <robin@icewind.nl>
|
||||
*
|
||||
|
|
@ -45,12 +45,12 @@ class Order implements XmlDeserializable {
|
|||
* @param string $property
|
||||
* @param string $order
|
||||
*/
|
||||
public function __construct($property = '', $order = \SearchDAV\Query\Order::ASC) {
|
||||
public function __construct(string $property = '', string $order = \SearchDAV\Query\Order::ASC) {
|
||||
$this->property = $property;
|
||||
$this->order = $order;
|
||||
}
|
||||
|
||||
static function xmlDeserialize(Reader $reader) {
|
||||
static function xmlDeserialize(Reader $reader): Order {
|
||||
$order = new self();
|
||||
|
||||
$childs = \Sabre\Xml\Deserializer\keyValue($reader);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue