From 98d121b8fbe403ab1e989c8e175868df140384bc Mon Sep 17 00:00:00 2001 From: Ruud Boon Date: Thu, 22 Aug 2019 14:04:17 +0200 Subject: [PATCH] Fixed missing \ in extended Exception. Workaround untill https://github.com/phalcon/zephir/issues/1907 is fixed. --- src/Phalcon/Exception.php | 2 +- src/Phalcon/cache/exception/Exception.php | 2 +- src/Phalcon/cache/exception/InvalidArgumentException.php | 2 +- src/Phalcon/collection/Exception.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Phalcon/Exception.php b/src/Phalcon/Exception.php index 1cbf0b74..88b0636f 100644 --- a/src/Phalcon/Exception.php +++ b/src/Phalcon/Exception.php @@ -7,7 +7,7 @@ * * All framework exceptions should use or extend this exception */ -class Exception extends Exception implements \Throwable +class Exception extends \Exception implements \Throwable { /** diff --git a/src/Phalcon/cache/exception/Exception.php b/src/Phalcon/cache/exception/Exception.php index cd483e0a..b97a13d8 100644 --- a/src/Phalcon/cache/exception/Exception.php +++ b/src/Phalcon/cache/exception/Exception.php @@ -5,7 +5,7 @@ /** * Exceptions thrown in Phalcon\Cache will use this class */ -class Exception extends Exception implements \Psr\SimpleCache\CacheException +class Exception extends \Exception implements \Psr\SimpleCache\CacheException { } diff --git a/src/Phalcon/cache/exception/InvalidArgumentException.php b/src/Phalcon/cache/exception/InvalidArgumentException.php index 82839f82..6d1c6a22 100644 --- a/src/Phalcon/cache/exception/InvalidArgumentException.php +++ b/src/Phalcon/cache/exception/InvalidArgumentException.php @@ -5,7 +5,7 @@ /** * Exceptions thrown in Phalcon\Cache will use this class */ -class InvalidArgumentException extends Exception implements \Psr\SimpleCache\InvalidArgumentException +class InvalidArgumentException extends \Exception implements \Psr\SimpleCache\InvalidArgumentException { } diff --git a/src/Phalcon/collection/Exception.php b/src/Phalcon/collection/Exception.php index 58194464..95493ef5 100644 --- a/src/Phalcon/collection/Exception.php +++ b/src/Phalcon/collection/Exception.php @@ -5,7 +5,7 @@ /** * Exceptions for the Collection object */ -class Exception extends Exception implements \Throwable +class Exception extends \Exception implements \Throwable { }