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;