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 b8322bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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
12 changes: 6 additions & 6 deletions src/Query/Response/Scalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
final class Scalar extends QueryResponse implements JsonSerializable, Success
{
/**
* @var mixed any scalar value (integer|float|string|boolean)
* @var int|float|string|bool any scalar value
*/
protected $value;

Expand All @@ -19,7 +19,7 @@ final class Scalar extends QueryResponse implements JsonSerializable, Success
*
* Use \Zumba\CQRS\Query\QueryResponse::fromScalar to create this response object.
*
* @param mixed $value Any scalar value (integer|float|string|boolean)
* @param int|float|string|bool $value Any scalar value
* @throws \Zumba\CQRS\InvalidResponse if the value is not scalar.
* @see \Zumba\CQRS\Query\QueryResponse::fromScalar
*/
Expand All @@ -38,9 +38,9 @@ protected static function from($value): Scalar
/**
* Get the scalar value
*
* @return mixed any scalar value (integer|float|string|boolean)
* @return int|float|string|bool any scalar value
*/
public function value()
public function value(): int|float|string|bool
{
return $this->value;
}
Expand All @@ -49,9 +49,9 @@ public function value()
* JsonSerializable implementation
*
* @see \JsonSerializable
* @return mixed
* @return int|float|string|bool
*/
public function jsonSerialize()
public function jsonSerialize(): int|float|string|bool
{
return $this->value;
}
Expand Down

0 comments on commit b8322bf

Please sign in to comment.