The expression return $this->_group returns the type Nip_Form_DisplayGroup which is incompatible with the documented return type Nip_Form_Renderer_DisplayGroup|null.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
$this->getGroup() of type Nip_Form_Renderer_DisplayGroup|null is incompatible with the type Countable|array expected by parameter $value of count().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
33
if (count(/** @scrutinizer ignore-type */ $this->getGroup())) {
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
36
$return .= $renderer->renderElements();
37
}
38
$return .= '</fieldset>';
39
return $return;
40
}
41
42
public function renderAttributes($overrides = array())
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
45
$elementAttribs = $this->getElementAttribs();
46
$return = '';
47
foreach ($attribs as $name => $value) {
48
if (strpos($name, 'data-') === 0 || in_array($name, $elementAttribs)) {