From 0bf3f2d3ce4a57454719ead421aa3284e88a6d17 Mon Sep 17 00:00:00 2001 From: HamZa Date: Mon, 8 Dec 2014 11:42:21 +0100 Subject: [PATCH] Changed $woops to $whoops --- 3-error-handler.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/3-error-handler.md b/3-error-handler.md index cb84972..760ca47 100644 --- a/3-error-handler.md +++ b/3-error-handler.md @@ -43,15 +43,15 @@ $environment = 'development'; /** * Register the error handler */ -$woops = new \Whoops\Run; +$whoops = new \Whoops\Run; if ($environment !== 'production') { - $woops->pushHandler(new \Whoops\Handler\PrettyPageHandler); + $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); } else { - $woops->pushHandler(function($e){ + $whoops->pushHandler(function($e){ echo 'Friendly error page and send an email to the developer'; }); } -$woops->register(); +$whoops->register(); throw new \Exception;