Closed orolyn closed 6 years ago
There is no resource type hint, and I don't expect there to be one in the near future. How would one instantiate an instance where a type argument needs to be a resource?
resource
I don't understand the use-case or issue; could you elaborate?
class Foo<T> { public function __construct(T $var) { } } new Foo<???>(fopen('myfile.txt', 'r'));
Maybe warn and use mixed?
mixed
There is no
resource
type hint, and I don't expect there to be one in the near future. How would one instantiate an instance where a type argument needs to be a resource?