Upgrade to 3.3.0

This commit is contained in:
Bastian Allgeier
2019-11-05 09:35:58 +01:00
parent 447a9dd266
commit a431716732
186 changed files with 3068 additions and 1458 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace Kirby\Exception;
/**
* ErrorPageException
* Thrown to trigger the CMS error page
*
* @package Kirby Exception
* @author Lukas Bestle <lukas@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://opensource.org/licenses/MIT
*/
class ErrorPageException extends Exception
{
protected static $defaultKey = 'errorPage';
protected static $defaultFallback = 'Triggered error page';
protected static $defaultHttpCode = 404;
}

View File

@@ -42,7 +42,7 @@ class Exception extends \Exception
/**
* Whether the exception message could be translated into the user's language
*
* @var boolean
* @var bool
*/
protected $isTranslated = true;
@@ -194,7 +194,7 @@ class Exception extends \Exception
* Returns whether the exception message could
* be translated into the user's language
*
* @return boolean
* @return bool
*/
final public function isTranslated(): bool
{