Issue Bug Closed

#85932Incorrect annotation for property "message" in class "Error".

Krzysztof Napora 08/23/18, 07:11 updated 09/18/18, 19:11

Description

Try to create action like here :

    /**
     * @param \TYPO3\CMS\Extbase\Error\Result|null $validationErrors
     */
    public function listContactAction(\TYPO3\CMS\Extbase\Error\Result $validationErrors = null)
    {

    }

Now try to open frontend, error is :

Oops, an error occurred!
There is no @var annotation for property “message” in class “Error”.

How I check problem is here web/typo3/sysext/extbase/Classes/Error/Result.php

Now we have

    /**
     * @var Error[]
     */
    protected $errors = [];

should be :

     /**
     * @var \TYPO3\CMS\Extbase\Error\Error[]
     */
    protected $errors = [];

Reviews 1