File tree Expand file tree Collapse file tree 2 files changed +26
-6
lines changed
tests/PHPStan/Analyser/data Expand file tree Collapse file tree 2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -78,16 +78,30 @@ function parse_str(string $string, array &$result): void {}
78
78
function similar_text(string $string1, string $string2, float &$percent = null) : int {}
79
79
80
80
/**
81
- * @param array< mixed> $output
82
- * @param int $result_code
83
-
81
+ * @param mixed $output
82
+ * @param mixed $result_code
83
+ *
84
84
* @param-out list<string> $output
85
85
* @param-out int $result_code
86
+ *
87
+ * @return string|false
88
+ */
89
+ function exec(string $command, &$output, &$result_code) {}
90
+
91
+ /**
92
+ * @param mixed $result_code
93
+ * @param-out int $result_code
94
+ *
95
+ * @return string|false
96
+ */
97
+ function system(string $command, &$result_code) {}
98
+
99
+ /**
100
+ * @param mixed $result_code
101
+ * @param-out int $result_code
86
102
*/
87
- function exec (string $command, &$output, &$ result_code): string|false {}
103
+ function passthru (string $command, &$result_code): ?bool {}
88
104
89
- /** @param-out int $result_code */
90
- function system(string $command, &$result_code): string|false {}
91
105
92
106
/**
93
107
* @template T
Original file line number Diff line number Diff line change @@ -339,3 +339,9 @@ function fooSystem() {
339
339
340
340
assertType ('int ' , $ exitCode );
341
341
}
342
+
343
+ function fooPassthru () {
344
+ passthru ("my cmd " , $ exitCode );
345
+
346
+ assertType ('int ' , $ exitCode );
347
+ }
You can’t perform that action at this time.
0 commit comments