Project

General

Profile

Actions

Bug #85932

closed

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

Added by Krzysztof Napora over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2018-08-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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 = [];

Files

Selection_933.png (263 KB) Selection_933.png Patryk Ostrowski, 2018-08-27 10:16

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #57856: @inject does not work relative to current namespaceClosed2014-04-12

Actions
Actions

Also available in: Atom PDF