Skip to content

Add IncorrectValueInAttributeException and use it for validation #56

Add IncorrectValueInAttributeException and use it for validation

Add IncorrectValueInAttributeException and use it for validation #56

Triggered via pull request April 16, 2024 15:53
Status Failure
Total duration 30s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: 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: src/Mods/Element/Specific/OriginInfo/Issuance.php#L29
Property Slub\Mods\Element\Specific\OriginInfo\Issuance::$allowedValues is never read, only written.
phpstan: 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: 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: 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: 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: src/Mods/Element/TitleInfo.php#L146
Method Slub\Mods\Element\TitleInfo::getPartNumber() should return Slub\Mods\Element\Common\LanguageElement but returns null.
phpstan: 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: src/Mods/Element/Xml/Element.php#L73
PHPDoc tag @return with type array|false is not subtype of native type array.
phpstan
Process completed with exit code 1.