Skip to content

Commit

Permalink
Merge pull request #103 from ccmbenchmark/fix/remove-dynamic-property
Browse files Browse the repository at this point in the history
fix: avoid dynamic property declaration
  • Loading branch information
vgreb authored Jan 10, 2025
2 parents 2c22309 + c854a0f commit 0b1cbc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.10.3 (unreleased):
* Fix for: "Creation of dynamic property %s is deprecated"

3.10.2 (2025-01-09):
* Fix phpdoc for static analysis

Expand Down
3 changes: 2 additions & 1 deletion src/Ting/Util/PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ class PropertyAccessor
{
private array $reflectionData = [];
private array $reflectionProperties = [];
private array $writePropertyCache = [];
private const CACHE_PREFIX_WRITE = 'write_property_';
private PropertyAccessorInterface $propertyAccessor;
private ?CacheItemPoolInterface $cacheItemPool = null;

public function __construct() {
$this->propertyAccessor = PropertyAccess::createPropertyAccessor();
}
Expand Down

0 comments on commit 0b1cbc6

Please sign in to comment.