* @return Generator
*/
public function run($verbose = false) {
- if ($verbose) {
+ if ($verbose !== false) {
printf("Packaging pharext ... \n");
}
$rdi = new RecursiveDirectoryIterator(dirname(dirname(__DIR__)));
* @return string
*/
public function run($verbose = false) {
- if ($verbose) {
+ if ($verbose !== false) {
printf("Compressing %s ...\n", basename($this->package->getPath()));
}
/* stop shebang */
* @return \pharext\Openssl\PrivateKey
*/
public function run($verbose = false) {
- if ($verbose) {
+ if ($verbose !== false) {
printf("Signing %s ...\n", basename($this->phar->getPath()));
}
$this->pkey->sign($this->phar);
}
$context = $this->createStreamContext();
- if (!$remote = fopen($this->source, "r", false, $context)) {
+ if (!$remote = @fopen($this->source, "r", false, $context)) {
throw new Exception;
}