Project

General

Profile

Bug #85932

Updated by Krzysztof Napora over 6 years ago

Try to create action like here : 

 <pre><code class="php"> 
     /** 
      * @param \TYPO3\CMS\Extbase\Error\Result|null ErrorResult|null $validationErrors 
      */ 
     public function listContactAction(\TYPO3\CMS\Extbase\Error\Result listContactAction(TYPO3\CMS\Extbase\Error\Result $validationErrors = null) 
     { 
       
     } 
 </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