File tree Expand file tree Collapse file tree 3 files changed +1
-14
lines changed
Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ parameters:
1515 count : 1
1616 path : src/Faker/Calculator/Luhn.php
1717
18- -
19- message : " #^Method Faker\\\\ Calculator\\\\ Luhn\\ :\\ :computeCheckDigit\\ (\\ ) should return string but returns int\\ .$#"
20- count : 1
21- path : src/Faker/Calculator/Luhn.php
22-
2318 -
2419 message : " #^Result of && is always false\\ .$#"
2520 count : 1
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<files psalm-version =" 5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352" >
3- <file src =" src/Faker/Calculator/Luhn.php" >
4- <InvalidReturnStatement >
5- <code >0</code >
6- </InvalidReturnStatement >
7- <InvalidReturnType >
8- <code >string</code >
9- </InvalidReturnType >
10- </file >
113 <file src =" src/Faker/Generator.php" >
124 <InvalidReturnStatement >
135 <code ><![CDATA[ $this->uniqueGenerator]]> </code >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public static function computeCheckDigit($partialNumber)
4444 $ checkDigit = self ::checksum ($ partialNumber . '0 ' );
4545
4646 if ($ checkDigit === 0 ) {
47- return 0 ;
47+ return ' 0 ' ;
4848 }
4949
5050 return (string ) (10 - $ checkDigit );
You can’t perform that action at this time.
0 commit comments