[TYPO3-dev] TYPO 6.2 Extbase Issue with @var annotation

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Tue Apr 15 15:06:54 CEST 2014


Yessss!

That was it - thank you very much :)

Till

On 04/15/2014 02:33 PM, Tim Lochmüller wrote:
> Hey guys,
>
> There is a missing „*“ in the comment.
>
> /** <— here
>  * …
>  * @var ….
>  */
>
> Without the star, it is no valid phpdoc comment…. 
>
> Regards,
> Tim
>
> Am 15.04.2014 um 14:18 schrieb <g4-lisz at tonarchiv.ch> <g4-lisz at tonarchiv.ch>:
>
>> Hi there,
>>
>> I'm just migrating an old extension from 4.6 to 6.2.
>>
>> For one of the object's property I get this error:
>>
>> #1363778104: There is no @var annotation for property "isInKanton" in
>> class "Tx_Hplusinfo_Domain_Model_SearchDemand"
>>
>> InvalidArgumentException thrown in file
>> /var/www/typo3_src-6.2.0/typo3/sysext/extbase/Classes/Validation/ValidatorResolver.php
>> in line 277.
>>
>> The strange thing is that there IS a @var annotation in the class file:
>>
>>        /*
>>         * Local to Kanton
>>         *
>>         * @var boolean $isInKanton
>>         */
>>        protected $isInKanton = false;
>>
>> Line 277 of ValidatorResolver.php shows this:
>> if (!isset($classPropertyTagsValues['var'])) {
>>                                        throw new
>> \InvalidArgumentException(sprintf('There is no @var annotation for
>> property "%s" in class "%s".', $classPropertyName, $targetClassName),
>> 1363778104);
>> }
>>
>> There are more boolean properties declared eralier in the class file,
>> and they don't throw this exception.
>>
>> I am missing something or is this a bug?
>>
>> Cheers,
>> Till
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list