Fix error with php-cs-fixer being run from phar file
This commit is contained in:
parent
e4746ae86e
commit
7d17515e25
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue