Skip to content

Commit

Permalink
# WARNING: head commit changed in the meantime
Browse files Browse the repository at this point in the history
remove list
  • Loading branch information
shorif2000 committed Jul 26, 2018
2 parents 70d04a3 + 5f665c7 commit c3999ff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
35 changes: 34 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,37 @@
"dev-master" : "0.5-dev"
}
}
}
}
"name": "makasim/values",
"type": "library",
"description": "An alter ego object. It is an object and an array at the same time",
"keywords": ["model"],
"license": "MIT",
"authors": [
{
"name": "Maksym Kotliar",
"email": "kotlyar.maksim@gmail.com"
}
],
"require": {
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^6"
},
"config": {
"bin-dir": "bin"
},
"autoload": {
"psr-4": { "Makasim\\Values\\": "src" },
"files": ["src/functions_include.php"]
},
"autoload-dev": {
"psr-4": { "Makasim\\Values\\Tests\\": "tests" }
},
"extra": {
"branch-alias": {
"dev-master": "0.5-dev"
}
}
}
2 changes: 1 addition & 1 deletion src/functions/objects.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function propagate_root($object, $parentObject, $parentKey)
return;
}

list($rootObject, $rootObjectKey) = call($parentObject, $parentKey, function($parentKey) {
[$rootObject, $rootObjectKey] = call($parentObject, $parentKey, function($parentKey) {
return [
isset($this->rootObject) ?: $this,
isset($this->rootObjectKey) ? $this->rootObjectKey.'.'.$parentKey : $parentKey
Expand Down

0 comments on commit c3999ff

Please sign in to comment.