Fix return annotation

The annotation for the return value is incorrect. This causes breakage in Symfony applications.