mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Better type check in DbConnection
This commit is contained in:
parent
82fe64c368
commit
de76531589
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ class DbConnection{
|
|||
// Note: Using ReflectionProperty in this way is pretty slow. Maybe we'll think of a
|
||||
// better way to automatically fill enum types later.
|
||||
try{
|
||||
$rp = new ReflectionProperty($object, $metadata[$i]['name']);
|
||||
$rp = new ReflectionProperty($class, $metadata[$i]['name']);
|
||||
/** @var ?ReflectionNamedType $property */
|
||||
$property = $rp->getType();
|
||||
if($property !== null){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue