Add IncorrectValueInAttributeException
and use it for validation
#14
Annotations
10 errors
PHPStan Static Analysis:
src/Mods/Element/Specific/Location/HoldingSimple/CopyInformation.php#L58
Method Slub\Mods\Element\Specific\Location\HoldingSimple\CopyInformation::getForm() should return Slub\Mods\Element\Specific\PhysicalDescription\Form|null but returns Slub\Mods\Element\Common\LanguageElement|null.
|
PHPStan Static Analysis:
src/Mods/Element/Specific/OriginInfo/Issuance.php#L29
Property Slub\Mods\Element\Specific\OriginInfo\Issuance::$allowedValues is never read, only written.
|
PHPStan Static Analysis:
src/Mods/Element/Specific/Part/Detail.php#L77
PHPDoc tag @return with type Slub\Mods\Element\Common\LanguageElement is incompatible with native type array.
|
PHPStan Static Analysis:
src/Mods/Element/Specific/Part/Detail.php#L92
PHPDoc tag @return with type Slub\Mods\Element\Common\LanguageElement is incompatible with native type array.
|
PHPStan Static Analysis:
src/Mods/Element/Specific/Part/Detail.php#L107
PHPDoc tag @return with type Slub\Mods\Element\Common\LanguageElement is incompatible with native type array.
|
PHPStan Static Analysis:
src/Mods/Element/Subject.php#L120
Method Slub\Mods\Element\Subject::getTemporals() should return array<Slub\Mods\Element\Common\AuthorityDateLanguageElement> but returns array<int<0, max>, Slub\Mods\Element\Common\AuthorityLanguageElement>.
|
PHPStan Static Analysis:
src/Mods/Element/TitleInfo.php#L146
Method Slub\Mods\Element\TitleInfo::getPartNumber() should return Slub\Mods\Element\Common\LanguageElement but returns null.
|
PHPStan Static Analysis:
src/Mods/Element/Xml/Element.php#L27
PHPDoc tag @var for property Slub\Mods\Element\Xml\Element::$values with type array|false is not subtype of native type array.
|
PHPStan Static Analysis:
src/Mods/Element/Xml/Element.php#L73
PHPDoc tag @return with type array|false is not subtype of native type array.
|
PHPStan Static Analysis
Process completed with exit code 1.
|
Loading