Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 3563769

Browse files
committed
allow dynamic properties
1 parent a3e25e4 commit 3563769

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Traits/HelpsLoopFunctions.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ private function ignoredPropertyNames(): array
4343
*/
4444
private function canAssignValue(int|string $key): bool
4545
{
46-
return is_string($key)
47-
&& property_exists($this, $key)
48-
&& (empty($this->{$key}) || $this->hasDefaultValue($key));
46+
return is_string($key) && (empty($this->{$key}) || $this->hasDefaultValue($key));
4947
}
5048

5149
/**

0 commit comments

Comments
 (0)