-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Methods are instance methods #708
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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(), | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See Faker/src/Faker/Core/Coordinates.php Lines 34 to 45 in c77a91b
|
||||||||||||||||||||||||||
]; | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -26,7 +26,7 @@ public function randomDigit(): int | |||||||||||||||
|
||||||||||||||||
public function randomDigitNot(int $except): int | ||||||||||||||||
{ | ||||||||||||||||
$result = self::numberBetween(0, 8); | ||||||||||||||||
$result = $this->numberBetween(0, 8); | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See Faker/src/Faker/Core/Number.php Lines 14 to 20 in 6c3a043
|
||||||||||||||||
|
||||||||||||||||
if ($result >= $except) { | ||||||||||||||||
++$result; | ||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See
Faker/src/Faker/Core/Coordinates.php
Lines 16 to 27 in c77a91b