We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4e715 commit 878472aCopy full SHA for 878472a
scripts/build-phar.php
@@ -65,15 +65,14 @@
65
}
66
67
$path = 'src'.substr($fullpath, $srcDirLen);
68
-
69
- $phar->addFromString($path, php_strip_whitespace($fullpath));
+ $phar->addFile($fullpath, $path);
70
71
72
// Add autoloader.
73
- $phar->addFromString('autoload.php', php_strip_whitespace(realpath(__DIR__.'/../autoload.php')));
+ $phar->addFile(realpath(__DIR__.'/../autoload.php'), 'autoload.php');
74
75
// Add licence file.
76
- $phar->addFromString('licence.txt', php_strip_whitespace(realpath(__DIR__.'/../licence.txt')));
+ $phar->addFile(realpath(__DIR__.'/../licence.txt'), 'licence.txt');
77
78
echo 'done'.PHP_EOL;
79
0 commit comments