Skip to content

InvalidDocblock

A docblock contains a malformed or unrecognised annotation.

<?php
/**
* @return int|
*/
function getId(): int { return 1; } // trailing | is invalid type syntax

Fix the annotation syntax. Refer to Docblock Annotations for supported forms.