Skip to content

Commit

Permalink
Add missing type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-lenz committed Mar 7, 2023
1 parent 86ea4c3 commit 67e33b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/element/ElementLinkType.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function toRecordAttributes(Link $model): array {
* @return void
* @noinspection PhpUnused (Validator)
*/
public function validateElementType() {
public function validateElementType(): void {
if (!is_subclass_of($this->elementType, ElementInterface::class)) {
$this->addError('elementType', 'Element type must be a class implementing ElementInterface');
}
Expand Down

0 comments on commit 67e33b2

Please sign in to comment.