Skip to content

Commit

Permalink
PHP82-35: Fix warnings on service
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cruz Vincenti committed Nov 14, 2023
1 parent bd0d308 commit 54d6e14
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^7.2 || ^8.0",
"php": "^8.0",
"zumba/symbiosis": "^3.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/Query/Response/Iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function count(): int
* @return mixed
* @see \Iterator
*/
public function current()
public function current(): mixed
{
return $this->data->current();
}
Expand All @@ -125,7 +125,7 @@ public function current()
* @return mixed (scalar)
* @see \Iterator
*/
public function key()
public function key(): mixed
{
return $this->data->key();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Response/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Query/Response/Scalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -51,7 +51,7 @@ public function value()
* @see \JsonSerializable
* @return mixed
*/
public function jsonSerialize()
public function jsonSerialize(): mixed
{
return $this->value;
}
Expand Down

0 comments on commit 54d6e14

Please sign in to comment.