Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
🚨 Fix code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Sep 27, 2024
1 parent 5508cbb commit de5271d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/AsMixed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ trait AsMixed
public function __invoke(mixed $value = null): mixed
{
if ($value !== null) {
static::of($value)->get();
return static::of($value)->get();
}

return $this->get();
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/AsScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait AsScalar
public function __toString(): string
{
/** @psalm-suppress RedundantCast */
return $this->get();
return (string) $this->get();
}

public function __invoke(mixed $value = null): bool|int|float|string
Expand Down

0 comments on commit de5271d

Please sign in to comment.