The expression return ! empty($this->parents) returns the type boolean which is incompatible with the documented return type PhUml\Code\InterfaceDefinition[].
Loading history...
54
}
55
56
/**
57
* This method is used when the commands are called with the option `hide-empty-blocks`
58
*
59
* It only counts the constants of an interface, since interfaces are not allowed to have
60
* attributes
61
*
62
* @see Definition::hasAttributes() for more details