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
|
installedWithDocker: false
|
||||||
init: () ->
|
init: () ->
|
||||||
super()
|
super()
|
||||||
|
.then(() =>
|
||||||
|
return @
|
||||||
|
)
|
||||||
.catch((error) =>
|
.catch((error) =>
|
||||||
return Promise.reject(error) if not @docker?
|
return Promise.reject(error) if not @docker?
|
||||||
return @
|
return @
|
||||||
|
@ -400,6 +403,13 @@ class HybridExecutable extends Executable
|
||||||
return @initDocker()
|
return @initDocker()
|
||||||
return @
|
return @
|
||||||
)
|
)
|
||||||
|
.catch((error) =>
|
||||||
|
if not @.required
|
||||||
|
@verbose("Not required")
|
||||||
|
@
|
||||||
|
else
|
||||||
|
Promise.reject(error)
|
||||||
|
)
|
||||||
|
|
||||||
initDocker: () ->
|
initDocker: () ->
|
||||||
@docker.init()
|
@docker.init()
|
||||||
|
|
Loading…
Reference in New Issue