Fix error with php-cs-fixer being run from phar file

This commit is contained in:
Steven Zeck 2018-05-15 12:08:09 -05:00
parent e4746ae86e
commit 7d17515e25
No known key found for this signature in database
GPG Key ID: 621B374B29AA814A
1 changed files with 10 additions and 0 deletions

View File

@ -389,6 +389,9 @@ class HybridExecutable extends Executable
installedWithDocker: false
init: () ->
super()
.then(() =>
return @
)
.catch((error) =>
return Promise.reject(error) if not @docker?
return @
@ -400,6 +403,13 @@ class HybridExecutable extends Executable
return @initDocker()
return @
)
.catch((error) =>
if not @.required
@verbose("Not required")
@
else
Promise.reject(error)
)
initDocker: () ->
@docker.init()