File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 4.0.1
4+
5+ - Added support for PHP ` 8.5 ` .
6+
37## 4.0.0
48
59### PHP support
Original file line number Diff line number Diff line change 2222 }
2323 },
2424 "require" : {
25- "php" : " 8.2 - 8.4 "
25+ "php" : " 8.2 - 8.5 "
2626 },
2727 "require-dev" : {
28- "phpstan/phpstan" : " 2.0.3 " ,
29- "phpunit/phpunit" : " 11.5.1 " ,
30- "squizlabs/php_codesniffer" : " 3.11.2 " ,
28+ "phpstan/phpstan" : " 2.1.32 " ,
29+ "phpunit/phpunit" : " 12.4.4 " ,
30+ "squizlabs/php_codesniffer" : " 4.0.1 " ,
3131 "friendsofphp/php-cs-fixer" : " ^3.65"
3232 }
3333}
Original file line number Diff line number Diff line change @@ -132,10 +132,12 @@ public function getPropertyValueAsSimple(string $property)
132132
133133 // Traverse the
134134 foreach ($ value as $ childKey => $ childValue ) {
135- if ($ childValue instanceof DomainObject) {
136- $ newValue [$ childKey ] = $ childValue ->toArray ();
137- } else {
138- $ newValue [$ childKey ] = $ childValue ;
135+ if (is_string ($ childKey ) || is_int ($ childKey )) {
136+ if ($ childValue instanceof DomainObject) {
137+ $ newValue [$ childKey ] = $ childValue ->toArray ();
138+ } else {
139+ $ newValue [$ childKey ] = $ childValue ;
140+ }
139141 }
140142 }
141143
You can’t perform that action at this time.
0 commit comments