Skip to content

Commit

Permalink
fixed "Calling ReflectionProperty::setValue() with a single argument …
Browse files Browse the repository at this point in the history
…is deprecated"
  • Loading branch information
marc-mabe committed Nov 26, 2024
1 parent 41bf030 commit 81e1587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/MabeEnumTest/EnumSerializableTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function clearEnumeration($enumeration): void
}

foreach ($reflClass->getProperties(ReflectionProperty::IS_STATIC) as $reflProp) {
$reflProp->setAccessible(true);;
$reflProp->setAccessible(true);
$reflProp->setValue(null, []);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/MabeEnumTest/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private function resetStaticEnumProps(): void
$enumPropsRefl = $enumRefl->getProperties(ReflectionProperty::IS_STATIC);
foreach ($enumPropsRefl as $enumPropRefl) {
$enumPropRefl->setAccessible(true);
$enumPropRefl->setValue([]);
$enumPropRefl->setValue(null, []);
}
}

Expand Down

0 comments on commit 81e1587

Please sign in to comment.