diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 69f1d7d141..36b11fd9df 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -829,16 +829,6 @@ parameters: count: 2 path: src/Faker/Provider/cs_CZ/DateTime.php - - - message: "#^Method Faker\\\\Provider\\\\cs_CZ\\\\Person\\:\\:birthNumber\\(\\) should return Faker\\\\Provider\\\\cs_CZ\\\\czech but returns string\\.$#" - count: 1 - path: src/Faker/Provider/cs_CZ/Person.php - - - - message: "#^Return typehint of method Faker\\\\Provider\\\\cs_CZ\\\\Person\\:\\:birthNumber\\(\\) has invalid type Faker\\\\Provider\\\\cs_CZ\\\\czech\\.$#" - count: 1 - path: src/Faker/Provider/cs_CZ/Person.php - - message: "#^Static call to instance method Faker\\\\Provider\\\\cs_CZ\\\\Person\\:\\:birthNumber\\(\\)\\.$#" count: 2 diff --git a/psalm.baseline.xml b/psalm.baseline.xml index 04ca4ec424..3fd3b88614 100644 --- a/psalm.baseline.xml +++ b/psalm.baseline.xml @@ -181,19 +181,10 @@ - - $birthNumber - - - czech - static::birthNumber(static::GENDER_FEMALE) static::birthNumber(static::GENDER_MALE) - - czech - diff --git a/src/Faker/Provider/cs_CZ/Person.php b/src/Faker/Provider/cs_CZ/Person.php index 1f7774e05f..6e2bab1375 100644 --- a/src/Faker/Provider/cs_CZ/Person.php +++ b/src/Faker/Provider/cs_CZ/Person.php @@ -430,7 +430,7 @@ class Person extends \Faker\Provider\Person * @param int $minAge minimal age of "generated person" in years * @param int $maxAge maximal age of "generated person" in years * - * @return czech birth number + * @return string czech birth number */ public function birthNumber($gender = null, $minAge = 0, $maxAge = 100, $slashProbability = 50) {