From 013e4638bb79efb333c15ce5741c65d1d4df105e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 4 Sep 2023 16:30:47 +0200 Subject: [PATCH] Fix: Methods are instance methods --- src/Faker/Core/Coordinates.php | 4 ++-- src/Faker/Core/Number.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Faker/Core/Coordinates.php b/src/Faker/Core/Coordinates.php index 40a26589f7..1af6915c10 100644 --- a/src/Faker/Core/Coordinates.php +++ b/src/Faker/Core/Coordinates.php @@ -52,8 +52,8 @@ public function longitude(float $min = -180.0, float $max = 180.0): float public function localCoordinates(): array { return [ - 'latitude' => static::latitude(), - 'longitude' => static::longitude(), + 'latitude' => $this->latitude(), + 'longitude' => $this->longitude(), ]; } diff --git a/src/Faker/Core/Number.php b/src/Faker/Core/Number.php index f67c042675..4de4dc73cd 100644 --- a/src/Faker/Core/Number.php +++ b/src/Faker/Core/Number.php @@ -26,7 +26,7 @@ public function randomDigit(): int public function randomDigitNot(int $except): int { - $result = self::numberBetween(0, 8); + $result = $this->numberBetween(0, 8); if ($result >= $except) { ++$result;