diff --git a/composer.json b/composer.json index e882858..e2f7062 100644 --- a/composer.json +++ b/composer.json @@ -9,12 +9,12 @@ } ], "require": { - "php": ">=5.3", + "php": ">8.0", "ext-curl": "*" }, "require-dev": { "phpunit/phpunit": "~3.7.", - "mikey179/vfsStream": "*" + "mikey179/vfsstream": "*" }, "autoload": { "psr-0": { 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;