mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 09:47:23 +01:00
Type fixes
This commit is contained in:
@ -109,10 +109,6 @@ final class Reflection
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($reflectionProperty === null) {
|
|
||||||
throw ShouldNotHappen::fromMessage('Reflection property not found.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$reflectionProperty->setAccessible(true);
|
$reflectionProperty->setAccessible(true);
|
||||||
|
|
||||||
return $reflectionProperty->getValue($object);
|
return $reflectionProperty->getValue($object);
|
||||||
@ -143,10 +139,6 @@ final class Reflection
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($reflectionProperty === null) {
|
|
||||||
throw ShouldNotHappen::fromMessage('Reflection property not found.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$reflectionProperty->setAccessible(true);
|
$reflectionProperty->setAccessible(true);
|
||||||
$reflectionProperty->setValue($object, $value);
|
$reflectionProperty->setValue($object, $value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user