Skip to content

Commit

Permalink
Add phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
yannoff committed May 4, 2024
1 parent 1e30e90 commit ac885f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Phar.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@

use Phar as BuiltinPhar;

function php_strip_whitespace($file): string
/**
* Replacement for the `php_strip_whitespace()` native method,
* which mistakenly treat php attributes as bash-like comments
*
* @param string $file
*
* @return string
*/
function php_strip_whitespace(string $file): string
{
$lines = file($file, FILE_IGNORE_NEW_LINES);

Expand Down

0 comments on commit ac885f4

Please sign in to comment.