From 85d2df46f7e84bfb0a822a2c17bbc087773bd8b7 Mon Sep 17 00:00:00 2001 From: Jamie Burchell Date: Tue, 9 Jan 2024 10:45:03 +0000 Subject: [PATCH] Allow dynamic properties In PHP 8.2+ deprecations are emitted due to the extensive use of dynamic properties within the library. The "best" solution is to define properties where possible and/or use magic getters and setters. From what I can see, both require extensive refactoring of the library to achieve. The "second best" option or last resort, and by far the easiest fix is at this stage is to simply allow dynamic properties. --- application/libraries/datamapper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/libraries/datamapper.php b/application/libraries/datamapper.php index 0b5232c..5950971 100644 --- a/application/libraries/datamapper.php +++ b/application/libraries/datamapper.php @@ -191,6 +191,7 @@ * Nestedsets Extension: * */ +#[\AllowDynamicProperties] class DataMapper implements IteratorAggregate { /**