It seems like $element defined by parameter $element on line 41 can be null; however, flipbox\saml\core\fields...entity::getStaticHtml() does not accept null, maybe add an additional type check?
It seems like you allow that null is being passed for a parameter, however the
function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):
functionnotNullable(stdClass$x){}// UnsafefunctionwithoutCheck(stdClass$x=null){notNullable($x);}// Safe - Alternative 1: Adding Additional Type-CheckfunctionwithCheck(stdClass$x=null){if($xinstanceofstdClass){notNullable($x);}}// Safe - Alternative 2: Changing ParameterfunctionwithNonNullableParam(stdClass$x){notNullable($x);}
Loading history...
44
}
45
46
/**
47
* @param $value
48
* @param ElementInterface $element
49
* @return string
50
* @throws \Twig_Error_Loader
51
* @throws \yii\base\Exception
52
*/
53
public function getStaticHtml($value, ElementInterface $element): string
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):