Skip to content

Commit

Permalink
Fix: Run 'make baseline'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 1, 2023
1 parent 53bd9a5 commit d2f4b85
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion psalm.baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.11.0@c9b192ab8400fdaf04b2b13d110575adc879aa90">
<files psalm-version="5.14.1@b9d355e0829c397b9b3b47d0c0ed042a8a70284d">
<file src="src/Faker/Calculator/Luhn.php">
<InvalidReturnStatement>
<code>0</code>
Expand Down Expand Up @@ -142,6 +142,13 @@
<file src="src/Faker/Provider/Base.php">
<InvalidArgument>
<code>[static::class, 'randomDigit']</code>
<code>static function ($matches) {
// remove backslashes (that are not followed by another backslash) because they are escape characters
$match = preg_replace('/\\\(?!\\\)/', '', $matches[1]);
$randomElement = Base::randomElement(str_split($match));
//[.] should not be a random character, but a literal .
return str_replace('.', '\.', $randomElement);
}</code>
</InvalidArgument>
<UndefinedClass>
<code>\UnitEnum</code>
Expand Down

0 comments on commit d2f4b85

Please sign in to comment.