Skip to content

Commit

Permalink
Update collection library (#31)
Browse files Browse the repository at this point in the history
* bump tightenco/collect version to 5.4+

* adjust required php to 5.6+

* update collection usage
  • Loading branch information
aaemnnosttv committed Feb 24, 2018
1 parent dfe4f0d commit bf7768f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"license": "MIT",
"require": {
"php": "^5.6 | ^7.0",
"tightenco/collect": "5.2.*"
"php": ">=5.6",
"tightenco/collect": "^5.4"
},
"require-dev": {
"phpunit/phpunit": "^5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Event/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function shouldInvoke(array $arguments)
* Check if any of the conditions returns false,
* if so, do not invoke.
*/
return ! $this->conditions()->contains(function ($key, $callback) use ($arguments) {
return ! $this->conditions()->contains(function ($callback) use ($arguments) {
return false === $callback->callArray($arguments);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/PostType/PostType.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function supports($features)
}

return ! Collection::make($features)
->contains(function ($key, $feature) {
->contains(function ($feature) {
return ! post_type_supports($this->id(), $feature);
});
}
Expand Down

0 comments on commit bf7768f

Please sign in to comment.