Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Mar 7, 2023
1 parent ea69091 commit fbc3569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SplBean.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ final public function allProperty(): array
foreach ($all as $sub){
$name = $sub->getName();
$ref = new \ReflectionClass($name);
if($ref->isSubclassOf(ConvertBean::class)){
if($ref->isSubclassOf(ConvertBean::class) || ($name == ConvertBean::class)){
$convertBean = new $name(...$sub->getArguments());
}
}
Expand Down

0 comments on commit fbc3569

Please sign in to comment.