Skip to content
Browse files

Fix strict error in 5.4

  • Loading branch information...
1 parent ec54fa5 commit 921c2c67abf7afdd7d6d2199a5216fd80dc5ba3f @markstory markstory committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/ObjectCollection.php
View
2 lib/Cake/Utility/ObjectCollection.php
@@ -286,7 +286,7 @@ public function attached($name = null) {
* @return void
*/
public function unload($name) {
- $name = array_pop(pluginSplit($name));
+ list(, $name) = pluginSplit($name);
unset($this->_loaded[$name], $this->_enabled[$name]);
}

0 comments on commit 921c2c6

Please sign in to comment.
Something went wrong with that request. Please try again.