Skip to content

Commit

Permalink
Allow dynamic properties
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jamieburchell authored Jan 9, 2024
1 parent 587d6fd commit 85d2df4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/libraries/datamapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
* Nestedsets Extension:
*
*/
#[\AllowDynamicProperties]
class DataMapper implements IteratorAggregate {

/**
Expand Down

0 comments on commit 85d2df4

Please sign in to comment.