fix exception when there's no pharext_install.php
[pharext/pharext] / src / pharext / Installer.php
index 19aad72c67f531bee4b77361769115483a2262d0..6aae795cd19373d45285837393eaa80eb1617606 100644 (file)
@@ -73,7 +73,7 @@ class Installer implements Command
                $phars[$this->tmp] = $phar;
 
                foreach ($phars as $phar) {
-                       if (($hook = $phar["pharext_install.php"])) {
+                       if (isset($phar["pharext_install.php"])) {
                                $callable = include $phar["pharext_install.php"];
                                if (is_callable($callable)) {
                                        $recv[] = $callable($this);