From 236a9bd7ce8927b1ce88a1810b5d5d9eedd7e75f Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 21 Mar 2023 13:42:21 +0000 Subject: [PATCH] chore: style changes --- src/Expectation.php | 2 +- src/Support/Arr.php | 2 +- src/Support/Reflection.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Expectation.php b/src/Expectation.php index 07b0d5d5..537883bb 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -64,7 +64,7 @@ final class Expectation */ public function and(mixed $value): Expectation { - return $value instanceof static ? $value : new self($value); + return $value instanceof self ? $value : new self($value); } /** diff --git a/src/Support/Arr.php b/src/Support/Arr.php index bd80ae56..aed6c5a7 100644 --- a/src/Support/Arr.php +++ b/src/Support/Arr.php @@ -73,7 +73,7 @@ final class Arr foreach ($array as $key => $value) { if (is_array($value) && $value !== []) { - $results = array_merge($results, static::dot($value, $prepend.$key.'.')); + $results = array_merge($results, self::dot($value, $prepend.$key.'.')); } else { $results[$prepend.$value] = $value; } diff --git a/src/Support/Reflection.php b/src/Support/Reflection.php index 14edd7ad..18a71aa6 100644 --- a/src/Support/Reflection.php +++ b/src/Support/Reflection.php @@ -42,7 +42,7 @@ final class Reflection } if (is_callable($method)) { - return static::bindCallable($method, $args); + return self::bindCallable($method, $args); } throw $exception; @@ -72,7 +72,7 @@ final class Reflection return $test instanceof \PHPUnit\Framework\TestCase ? Closure::fromCallable($callable)->bindTo($test)(...$test->providedData()) - : static::bindCallable($callable); + : self::bindCallable($callable); } /**