Skip to content

Commit

Permalink
Fix: Methods are instance methods (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored Sep 4, 2023
1 parent c48baf5 commit 7f6fb67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Faker/Core/Coordinates.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Faker/Core/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f6fb67

Please sign in to comment.