| @@ -1,18 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * @copyright © TMS-Plugins. All rights reserved. | |
| 4 | + * @copyright © Melograno Venture Studio. All rights reserved. | |
| 5 | 5 | * @licence See LICENCE.md for license details. |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace IvyForms\Common\Exceptions; |
| 9 | 9 | |
| 10 | -// phpcs:disable PSR1.Files.SideEffects | |
| 11 | -if (!defined('ABSPATH')) { | |
| 12 | - exit; // Exit if accessed directly | |
| 13 | -} | |
| 14 | - | |
| 15 | 10 | use Exception; |
| 16 | 11 | |
| 17 | 12 | /** |
| 18 | 13 | * Class NotFoundException |
| @@ -27,9 +22,9 @@ | ||
| 27 | 22 | * @param string $message |
| 28 | 23 | * @param int $code |
| 29 | 24 | * @param Exception|null $previous |
| 30 | 25 | */ |
| 31 | - public function __construct($message = 'not_found', $code = 0, Exception $previous = null) | |
| 26 | + public function __construct($message = 'not_found', $code = 0, ?Exception $previous = null) | |
| 32 | 27 | { |
| 33 | 28 | parent::__construct($message, $code, $previous); |
| 34 | 29 | } |
| 35 | 30 | } |