Skip to content

Commit

Permalink
Merge pull request #12 from poef/master
Browse files Browse the repository at this point in the history
fixed exceptions to the new names
  • Loading branch information
poef committed Jan 28, 2016
2 parents 68ede36 + 62081ce commit ca37cd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": ">=5.4",
"arc/base": "~1.0||~2.0"
"arc/base": "~2.1"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/events/EventsTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private function addListener($eventName, $callback, $capture = false)
{
$listenerSection = ( $capture ? 'capture' : 'listen' ) . '.' . $eventName;
if (!is_callable($callback)) {
throw new \arc\ExceptionIlligalRequest('Method is not callable.', \arc\exceptions::ILLEGAL_ARGUMENT);
throw new \arc\IllegalRequest('Method is not callable.', \arc\exceptions::ILLEGAL_ARGUMENT);
}
if (!isset( $this->tree->nodeValue[ $listenerSection ])) {
$this->tree->nodeValue[ $listenerSection ] = array();
Expand Down

0 comments on commit ca37cd8

Please sign in to comment.