-
Notifications
You must be signed in to change notification settings - Fork 3.6k
VAT formatter does not work in fr_FR namespace #1342
Comments
Hi @thomasngataly I think VAT is Payment Provider |
The code inside the VAT method calls an undefined siren method. See the code below
|
Hi I also have this issue. I've seen that this commit is the one that introduced the change that broke this, because the method siren does not exist in the class Payment for fr_FR locale or in its parent class. |
Hi @raphaeldealmeida , Same issue for me, code example to reproduce the issue is simple: $faker = Factory::create('fr_FR');
echo $faker->vat(); |
What do you think about making the method static? public function vat($spacedNationalPrefix = true)
{
$prefix = ($spacedNationalPrefix) ? "FR " : "FR";
- return sprintf("%s%s%s%s", $prefix, self::randomNumber(2, true), $this->siren($spacedNationalPrefix));
+ return sprintf("%s%s%s%s", $prefix, self::randomNumber(2, true), Company::siren($spacedNationalPrefix));
} |
Fixed by #1381 |
Does this fix will be released soon ? |
Thanks @ppelgrims. I saw it, but I can't set a dependency point to the This issue was fixed nearly 3 months ago... |
I don't know what the policy or planning is for releases but I thought that could help you out in the mean time. Can't be of any more help I'm afraid. |
No problem @ppelgrims, thanks for the suggestion :) |
Hello,
The error occurs when I try to use the vat formatter. This formatter use the siren method which does not exists in the class and its parent. This method seems to be defined in the Faker\Provider\fr_FR\Company class.
The text was updated successfully, but these errors were encountered: