Good day
Want to use strong typing in PHP. Wanted to create a method that returns the type of resource, but eclipse started swearing. climb on the documentation, figure out what to pass to the function or method arguments of type resource is impossible. About specify the type of the return item can't find anything.
<?phpclass a{public function set_resource(resource $r){var_dump($r);}public function get_resource(): resource{return fopen('ляляля.txt', 'r");}</code>
some reason you can't do that. Basics explain how in these cases you need to do? How to explicitly specify strict typing resource in both cases?
Thank you for your attention and answers.