File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
tests/PHPStan/Analyser/data Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ function bin2hex(string $string): string {}
74
74
*/
75
75
function parse_str(string $string, array &$result): void {}
76
76
77
+ /** @param-out float $percent */
78
+ function similar_text(string $string1, string $string2, float &$percent = null) : int {}
79
+
77
80
/**
78
81
* @template T
79
82
* @template TArray as array<T>
Original file line number Diff line number Diff line change @@ -320,3 +320,9 @@ function testParseStr() {
320
320
321
321
\PHPStan \Testing \assertType ('array<int|string, list<string>|string> ' , $ output );
322
322
}
323
+
324
+ function fooSimilar () {
325
+ $ similar = similar_text ('foo ' , 'bar ' , $ percent );
326
+ assertType ('int ' , $ similar );
327
+ assertType ('float ' , $ percent );
328
+ }
You can’t perform that action at this time.
0 commit comments