We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a57cdb3 commit 53cc597Copy full SHA for 53cc597
src/Faker/FakerCategory.php
@@ -81,7 +81,7 @@ class FakerCategory
81
*/
82
private array $localizedGenerators;
83
84
- public static function getCategory(string $category = null): self
+ public static function getCategory(?string $category = null): self
85
{
86
// Choose a random category
87
if (null === $category) {
0 commit comments