Project

General

Profile

Bug #85932

Updated by Krzysztof Napora over 5 years ago

Try to create action like here : 

 <pre><code class="php"> 
     /** 
      * @param ErrorResult|null $validationErrors 
      */ 
     public function listContactAction(TYPO3\CMS\Extbase\Error\Result $validationErrors = null) 
     { 
       
     
         $this->view->assign( 
             'tests', 
             $this->employeeRepository->findAll() 
         ); 
     } 
 </code></pre> 


 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  

 <pre><code class="php"> 
     /** 
      * @var Error[] 
      */ 
     protected $errors = []; 
 </code></pre> 

 should be :  

 <pre><code class="php"> 
      /** 
      * @var \TYPO3\CMS\Extbase\Error\Error[] 
      */ 
     protected $errors = []; 
 </code></pre>

Back