1
0
Fork 0
mirror of synced 2024-07-02 13:10:38 +12:00

Merge pull request #2008 from kaczmarekdaniel/master

Docker library psr issues fix
This commit is contained in:
Christy Jacob 2021-10-19 10:45:11 +05:30 committed by GitHub
commit 71559af6c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ class Service
$ports = (isset($this->service['ports']) && is_array($this->service['ports'])) ? $this->service['ports'] : []; $ports = (isset($this->service['ports']) && is_array($this->service['ports'])) ? $this->service['ports'] : [];
$this->service['ports'] = []; $this->service['ports'] = [];
array_walk($ports, function(&$value, $key) { array_walk($ports, function (&$value, $key) {
$split = explode(':', $value); $split = explode(':', $value);
$this->service['ports'][ $this->service['ports'][
(isset($split[0])) ? $split[0] : '' (isset($split[0])) ? $split[0] : ''