Skip to content

Commit

Permalink
🐛 interface bug with nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 22, 2021
1 parent ca301fa commit 04e0c28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ private function getInterfaces(Model $model, array $columns, array $mutators, ar
}
$interfaces = [];
foreach ($model->interfaces as $key=>$interface) {
if (array_key_exists($key, $columns)) {
if (array_key_exists($key, $columns) || array_key_exists($key . '?', $columns)) {
continue;
}
if (array_key_exists($key, $mutators)) {
if (array_key_exists($key, $mutators) || array_key_exists($key . '?', $mutators)) {
continue;
}
if (array_key_exists($key, $relations)) {
if (array_key_exists($key, $relations) || array_key_exists($key . '?', $relations)) {
continue;
}
$interfaces[$key] = $interface['name'];
Expand Down

0 comments on commit 04e0c28

Please sign in to comment.