We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c615dc + 11110c8 commit 7bb416bCopy full SHA for 7bb416b
1 file changed
src/Spanner/Traits/ModelAttributes.php
@@ -26,15 +26,8 @@ public function getAttributes(): array
26
27
public function setRawAttributes(array $attributes): void
28
{
29
- $reflect = new ReflectionObject($this);
30
- $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC);
31
foreach ($attributes as $key => $attribute) {
32
- $exists = array_filter($props, function ($prop) use ($key) {
33
- return $prop->name == $key && $prop->class == get_called_class();
34
- });
35
- if (!empty($exists)) {
36
- $this->{$key} = $attribute;
37
- }
+ $this->{$key} = $attribute;
38
}
39
40
0 commit comments