diff --git a/app/Lib/Inputs/Definition/Input.php b/app/Lib/Inputs/Definition/Input.php index 2f3bacc..fc8313b 100644 --- a/app/Lib/Inputs/Definition/Input.php +++ b/app/Lib/Inputs/Definition/Input.php @@ -42,7 +42,7 @@ abstract class Input implements InputInterface * @return mixed * @throws \TypeError If prop is undefined. */ - public function __get(string $name): mixed + public function __get(string $name) { if (in_array($name, ['data'])) { return $this->{$name}; diff --git a/app/Lib/Inputs/Definition/InputData.php b/app/Lib/Inputs/Definition/InputData.php index c33ff12..86a1f8c 100644 --- a/app/Lib/Inputs/Definition/InputData.php +++ b/app/Lib/Inputs/Definition/InputData.php @@ -23,7 +23,7 @@ class InputData extends \stdClass * @return mixed * @throws \TypeError If prop is undefined. */ - public function __get(string $name): mixed + public function __get(string $name) { if (in_array($name, ['title', 'formSlug', 'type', 'value', 'required'])) { return $this->{$name}; diff --git a/app/Mail/SendFlyer.php b/app/Mail/SendFlyer.php index 0573631..1d13665 100644 --- a/app/Mail/SendFlyer.php +++ b/app/Mail/SendFlyer.php @@ -20,7 +20,7 @@ class SendFlyer extends Mailable * @param mixed $data * @return void */ - public function __construct(mixed $data) + public function __construct($data) { $this->data = (object)$data; } diff --git a/app/Mail/SendFlyerFailed.php b/app/Mail/SendFlyerFailed.php index 68205a7..6bbc393 100644 --- a/app/Mail/SendFlyerFailed.php +++ b/app/Mail/SendFlyerFailed.php @@ -20,7 +20,7 @@ class SendFlyerFailed extends Mailable * @param mixed $data * @return void */ - public function __construct(mixed $data) + public function __construct($data) { $this->data = (object)$data; } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 7fb62ff..83e469a 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -5,7 +5,6 @@ namespace App\Providers; use Illuminate\Http\Resources\Json\JsonResource; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\App; -use Illuminate\Support\Facades\URL; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider @@ -19,7 +18,6 @@ class AppServiceProvider extends ServiceProvider { // * HTTPS FIX // URL::forceScheme('http'); - // * HA PROXY FIX App::singleton('clientIp', function () { if (config('app.env') === 'local') { diff --git a/app/Traits/Requests/HasPicture.php b/app/Traits/Requests/HasPicture.php index b4fc8c0..bb68924 100644 --- a/app/Traits/Requests/HasPicture.php +++ b/app/Traits/Requests/HasPicture.php @@ -122,7 +122,7 @@ trait HasPicture * @return void * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed */ - private function validatePicture(string $attribute, mixed $value, callable $fail, object $sizes) + private function validatePicture(string $attribute, $value, callable $fail, object $sizes) { if (!File::exists($value)) { $fail(trans(":attribute n'existe pas dans le système de fichier"));