Solved more problems of issues #4

This commit is contained in:
djmaze 2020-09-24 10:22:23 +02:00
parent 578131e22a
commit f70d2c6884
4 changed files with 20 additions and 30 deletions

View file

@ -149,7 +149,7 @@ class Client {
* @param int $depth
* @return array
*/
public function propFind($url, array $properties, $depth = 0) {
public function propFind($url, array $properties, $depth = 0) : array {
$body = '<?xml version="1.0"?>' . "\n";
$body.= '<d:propfind xmlns:d="DAV:">' . "\n";
@ -304,9 +304,8 @@ class Client {
* @param string $url
* @param string $body
* @param array $headers
* @return array
*/
public function request($method, $url = '', $body = null, $headers = array()) {
public function request($method, $url = '', $body = null, $headers = array()) : array {
$url = $this->getAbsoluteUrl($url);