mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-08-02 20:24:49 +02:00
feat: Add PHP 8.4 support
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8339181df3
commit
2b4e9a4811
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue