mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
(model) fix typo
This commit is contained in:
parent
14d53f5b8d
commit
d46f43b083
@ -111,7 +111,7 @@ abstract class BaseModel
|
||||
if (class_exists($classname)) {
|
||||
// construct field type object
|
||||
$field_rfcls = new \ReflectionClass($classname);
|
||||
if (!$field_rfcls->getParentClass()->name == 'OPNsense\Base\FieldTypes\BaseField') {
|
||||
if ($field_rfcls->getParentClass()->name != 'OPNsense\Base\FieldTypes\BaseField') {
|
||||
// class found, but of wrong type. raise an exception.
|
||||
throw new ModelException("class ".$field_rfcls->name." of wrong type in model definition");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user