Project

General

Profile

Actions

Bug #69539

closed

Allow @var resource in class memebrs annotations

Added by Viktor Livakivskyi over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-09-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I have a model, which has protected property $_remoteFile of type resource

The story is, that I fetch resource with remote request, when client code calls getFile() on my model, and store it in $this->remoteFile to not make an external call every time, when someone calls getFile() more, than once.

But Extbase complains, taht it can't recognize such type

#1315564744: @var annotation of Found an invalid element type declaration in class "classname", property "_remoteFile". A type "'resource'" does not exist.

I've tried to move it out of model and wrap into custom RemoteFile class, wich is linked with my model. But problem persists due to recursive validation.

Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43098

Actions #2

Updated by Nicole Cordes over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF