From f165497a78a75940e2f9a3988bb94c98af7eb696 Mon Sep 17 00:00:00 2001 From: Saulius Kazokas Date: Fri, 13 May 2022 14:54:28 +0300 Subject: [PATCH 1/2] Fix composer error --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e882858..69bad9f 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ }, "require-dev": { "phpunit/phpunit": "~3.7.", - "mikey179/vfsStream": "*" + "mikey179/vfsstream": "*" }, "autoload": { "psr-0": { From b23d01908c0975c1f1eee3e272d2207d5ba810ef Mon Sep 17 00:00:00 2001 From: Saulius Kazokas Date: Fri, 13 May 2022 14:59:05 +0300 Subject: [PATCH 2/2] Fix deprecation warnings --- composer.json | 2 +- library/SSRS/Object/ArrayIterator.php | 16 ++++++++-------- library/SSRS/Soap/NTLM.php | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 69bad9f..e2f7062 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ } ], "require": { - "php": ">=5.3", + "php": ">8.0", "ext-curl": "*" }, "require-dev": { diff --git a/library/SSRS/Object/ArrayIterator.php b/library/SSRS/Object/ArrayIterator.php index 8171642..11be377 100755 --- a/library/SSRS/Object/ArrayIterator.php +++ b/library/SSRS/Object/ArrayIterator.php @@ -11,28 +11,28 @@ class ArrayIterator extends ObjectAbstract implements \Iterator { public $iteratorKey = 'Array'; - public function next() { - return next($this->data[$this->iteratorKey]); + public function next(): void { + next($this->data[$this->iteratorKey]); } public function prev() { return prev($this->data[$this->iteratorKey]); } - public function key() { + public function key(): mixed { return key($this->data[$this->iteratorKey]); } - public function current() { + public function current(): mixed { return current($this->data[$this->iteratorKey]); } - public function valid() { + public function valid(): bool { return isset($this->data[$this->iteratorKey][$this->key()]); } - public function rewind() { - return reset($this->data[$this->iteratorKey]); + public function rewind(): void { + reset($this->data[$this->iteratorKey]); } -} +} \ No newline at end of file diff --git a/library/SSRS/Soap/NTLM.php b/library/SSRS/Soap/NTLM.php index cd00970..66709bc 100755 --- a/library/SSRS/Soap/NTLM.php +++ b/library/SSRS/Soap/NTLM.php @@ -130,7 +130,7 @@ public function getCurlOptions() { return $this->_curlOptions; } - public function __doRequest($request, $location, $action, $version = 1, $one_way = null) { + public function __doRequest($request, $location, $action, $version = 1, $one_way = null): ?string { $this->_lastRequest = (string) $request; $this->_lastResponse = $this->callCurl($location, $request, $action); return $this->_lastResponse;