Skip to content

Commit 26bcef9

Browse files
gr8manmichalsn
andauthored
Update tests/system/Models/ObjectToRawArrayModelTest.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 24ad60e commit 26bcef9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Models/ObjectToRawArrayModelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public function __construct()
4545
*/
4646
private function callObjectToRawArray(Model $model, object $object, bool $onlyChanged, bool $recursive): array
4747
{
48-
$method = new ReflectionMethod(Model::class, 'objectToRawArray');
48+
$method = self::getPrivateMethodInvoker($model, 'objectToRawArray');
4949

50-
return $method->invoke($model, $object, $onlyChanged, $recursive);
50+
return $method($object, $onlyChanged, $recursive);
5151
}
5252

5353
public function testObjectToRawArrayPassesRecursiveTrue(): void

0 commit comments

Comments
 (0)