Skip to content

Commit 56dfb85

Browse files
committed
Merge pull request #19 from holloway87/master
enable self-update command only with php 5.6 or higher
2 parents 7621f11 + 2997854 commit 56dfb85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PuliApplicationConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ function (PreHandleEvent $event) use ($context) {
489489
->setHandler(function () {
490490
return new SelfUpdateCommandHandler();
491491
})
492-
->enableIf('phar://' === substr(__DIR__, 0, 7))
492+
->enableIf('phar://' === substr(__DIR__, 0, 7) && version_compare(PHP_VERSION, '5.6', '>='))
493493
->end()
494494
;
495495

0 commit comments

Comments
 (0)