Skip to content

Commit

Permalink
fix refacto check
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPurvis committed Aug 12, 2023
1 parent 54e00dd commit f996a48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mixins/Expectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ private function export(mixed $value): string
*/
public function toBeUppercase(string $message = ''): self
{
Assert::assertTrue(ctype_upper($this->value), $message);
Assert::assertTrue(ctype_upper((string) $this->value), $message);

return $this;
}
Expand All @@ -981,7 +981,7 @@ public function toBeUppercase(string $message = ''): self
*/
public function toBeLowercase(string $message = ''): self
{
Assert::assertTrue(ctype_lower($this->value), $message);
Assert::assertTrue(ctype_lower((string) $this->value), $message);

return $this;
}
Expand All @@ -993,7 +993,7 @@ public function toBeLowercase(string $message = ''): self
*/
public function toBeAlphaNumeric(string $message = ''): self
{
Assert::assertTrue(ctype_alnum($this->value), $message);
Assert::assertTrue(ctype_alnum((string) $this->value), $message);

return $this;
}
Expand All @@ -1005,7 +1005,7 @@ public function toBeAlphaNumeric(string $message = ''): self
*/
public function toBeAlpha(string $message = ''): self
{
Assert::assertTrue(ctype_alpha($this->value), $message);
Assert::assertTrue(ctype_alpha((string) $this->value), $message);

return $this;
}
Expand Down

0 comments on commit f996a48

Please sign in to comment.