Skip to content

Commit 286aee1

Browse files
committed
Merge branch 'feature/8.5-compat'
2 parents 699cb7b + dbe80e9 commit 286aee1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/PropertyAccessor/PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function setPrivate($object, string $propertyName, $value): void
9999
return;
100100
}
101101

102-
$property->setAccessible(true);
102+
(\PHP_VERSION_ID < 80100) and $property->setAccessible(true);
103103
$property->setValue($object, $value);
104104
}
105105

test/Models/SimpleProperties/NoProperties.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*
88
* @package AutoMapperPlus\Test\Models\SimpleProperties
99
*/
10+
#[\AllowDynamicProperties]
1011
class NoProperties
1112
{
1213
//

0 commit comments

Comments
 (0)