From 20e1cd28f01570b4eb5efeb927547c6cc88c33fd Mon Sep 17 00:00:00 2001 From: "Kamshory, MT" Date: Wed, 6 Nov 2024 09:12:08 +0700 Subject: [PATCH] Fixing method for PHP 5 --- src/Database/PicoTableInfo.php | 2 +- src/Exceptions/EntityException.php | 2 +- src/Exceptions/FileNotFoundException.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Database/PicoTableInfo.php b/src/Database/PicoTableInfo.php index 62e4f0bb..6fb2cdaf 100644 --- a/src/Database/PicoTableInfo.php +++ b/src/Database/PicoTableInfo.php @@ -378,7 +378,7 @@ public function getPackage() * * @return self */ - public function setPackage(string $package) + public function setPackage($package) { $this->package = $package; diff --git a/src/Exceptions/EntityException.php b/src/Exceptions/EntityException.php index 1fcd7785..d775458d 100644 --- a/src/Exceptions/EntityException.php +++ b/src/Exceptions/EntityException.php @@ -31,7 +31,7 @@ class EntityException extends Exception * @param int $code Exception code * @param Throwable|null $previous Previous exception */ - public function __construct(string $message, int $code = 0, Throwable $previous = null) + public function __construct($message, $code = 0, $previous = null) { parent::__construct($message, $code, $previous); $this->previous = $previous; diff --git a/src/Exceptions/FileNotFoundException.php b/src/Exceptions/FileNotFoundException.php index 9bbeec0d..2f4c7b2c 100644 --- a/src/Exceptions/FileNotFoundException.php +++ b/src/Exceptions/FileNotFoundException.php @@ -31,7 +31,7 @@ class FileNotFoundException extends Exception * @param int $code Exception code * @param Throwable|null $previous Previous exception */ - public function __construct(string $message, int $code = 0, Throwable $previous = null) + public function __construct($message, $code = 0, $previous = null) { parent::__construct($message, $code, $previous); $this->previous = $previous;