1 | <?php |
||
16 | abstract class AbstractExternalIdentity extends Field |
||
17 | { |
||
18 | use EnsureSamlPlugin; |
||
19 | |||
20 | public static function displayName(): string |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public static function hasContentColumn(): bool |
||
32 | |||
33 | public function normalizeValue($value, ElementInterface $element = null) |
||
41 | |||
42 | public function getInputHtml($value, ElementInterface $element = null): string |
||
46 | |||
47 | /** |
||
48 | * @param $value |
||
49 | * @param ElementInterface $element |
||
50 | * @return string |
||
51 | * @throws \Twig_Error_Loader |
||
52 | * @throws \yii\base\Exception |
||
53 | */ |
||
54 | public function getStaticHtml($value, ElementInterface $element): string |
||
76 | } |
||
77 |
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):