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

Also available in: Atom PDF