From 1267d6b2f6be20926866728fbd8a9a4b14a181a7 Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 15 Apr 2023 13:17:00 -0400 Subject: [PATCH] Fix deprecation warnings on PHP8.2 --- src/Libs/Model.php | 1 + src/Libs/Neuron.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Libs/Model.php b/src/Libs/Model.php index e8de154..4949b2d 100644 --- a/src/Libs/Model.php +++ b/src/Libs/Model.php @@ -19,6 +19,7 @@ use Exception; use ReflectionClass; use ReflectionProperty; +#[AllowDynamicProperties] class Model { public ?int $id = null; diff --git a/src/Libs/Neuron.php b/src/Libs/Neuron.php index 228c219..913a1e8 100644 --- a/src/Libs/Neuron.php +++ b/src/Libs/Neuron.php @@ -17,7 +17,9 @@ */ namespace Libs; +use AllowDynamicProperties; +#[AllowDynamicProperties] class Neuron { /**