Skip to content

Commit

Permalink
Add back the county() method for devs already using it
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisidakwo committed Nov 8, 2023
1 parent 914e26f commit fe7ca25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Provider/en_NG/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ public static function cityName()
return static::randomElement(static::$cityName);

Check failure on line 119 in src/Provider/en_NG/Address.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4)

Unsafe access to private property Faker\Provider\en_NG\Address::$cityName through static::.
}

/**
* Alias for <code>self::state()</code>
*
* @return string
*/
public function county()
{
return self::state();
}

/**
* Randomly returns a Nigerian state.
*
Expand Down

0 comments on commit fe7ca25

Please sign in to comment.