From 62081ce3375d0e48d4fa9efdfd992b9feff2a524 Mon Sep 17 00:00:00 2001 From: Auke van Slooten Date: Thu, 28 Jan 2016 15:42:49 +0100 Subject: [PATCH] fixed exceptions to the new names --- composer.json | 2 +- src/events/EventsTree.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 82cb58e..c2bb947 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": ">=5.4", - "arc/base": "~1.0||~2.0" + "arc/base": "~2.1" }, "autoload": { "psr-4": { diff --git a/src/events/EventsTree.php b/src/events/EventsTree.php index 671d944..53bf557 100644 --- a/src/events/EventsTree.php +++ b/src/events/EventsTree.php @@ -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();