Actions
Bug #69539
closedAllow @var resource in class memebrs annotations
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.
Updated by Gerrit Code Review about 9 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
Updated by Nicole Cordes about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3aaa86f15d59ee8f3869d07319da1681875a6854.
Actions