diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index 0c1fb9a..21212bf 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: ['7.2', '7.3', '7.4', '8.0'] + php-version: ['8.0', '8.2'] steps: - uses: actions/checkout@v2 diff --git a/composer.json b/composer.json index 2aaf931..c2d5d41 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "type": "library", "license": "MIT", "require": { - "php": "^7.2 || ^8.0", + "php": "^8.0", "zumba/symbiosis": "^3.0" }, "require-dev": { diff --git a/src/Query/Response/Iterator.php b/src/Query/Response/Iterator.php index f5f2095..8efa508 100644 --- a/src/Query/Response/Iterator.php +++ b/src/Query/Response/Iterator.php @@ -114,7 +114,7 @@ public function count(): int * @return mixed * @see \Iterator */ - public function current() + public function current(): mixed { return $this->data->current(); } @@ -125,7 +125,7 @@ public function current() * @return mixed (scalar) * @see \Iterator */ - public function key() + public function key(): mixed { return $this->data->key(); } diff --git a/src/Query/Response/Map.php b/src/Query/Response/Map.php index c7e283a..2541d1d 100644 --- a/src/Query/Response/Map.php +++ b/src/Query/Response/Map.php @@ -67,7 +67,7 @@ public function offsetExists($offset): bool * @return mixed * @see \ArrayAccess */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->data[$offset] ?? null; } diff --git a/src/Query/Response/Scalar.php b/src/Query/Response/Scalar.php index eeae6a4..9db2aec 100644 --- a/src/Query/Response/Scalar.php +++ b/src/Query/Response/Scalar.php @@ -40,7 +40,7 @@ protected static function from($value): Scalar * * @return mixed any scalar value (integer|float|string|boolean) */ - public function value() + public function value(): mixed { return $this->value; } @@ -51,7 +51,7 @@ public function value() * @see \JsonSerializable * @return mixed */ - public function jsonSerialize() + public function jsonSerialize(): mixed { return $this->value; }