diff --git a/src/Faker/Core/Coordinates.php b/src/Faker/Core/Coordinates.php index 6d27b22f3f..9b8b9dd354 100644 --- a/src/Faker/Core/Coordinates.php +++ b/src/Faker/Core/Coordinates.php @@ -59,8 +59,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 866d02fbe5..a16920c936 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;