Skip to content

Commit ac885f4

Browse files
committed
Add phpdoc
1 parent 1e30e90 commit ac885f4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Phar.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@
1717

1818
use Phar as BuiltinPhar;
1919

20-
function php_strip_whitespace($file): string
20+
/**
21+
* Replacement for the `php_strip_whitespace()` native method,
22+
* which mistakenly treat php attributes as bash-like comments
23+
*
24+
* @param string $file
25+
*
26+
* @return string
27+
*/
28+
function php_strip_whitespace(string $file): string
2129
{
2230
$lines = file($file, FILE_IGNORE_NEW_LINES);
2331

0 commit comments

Comments
 (0)