Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some deprecations #79

Closed
tacman opened this issue Dec 15, 2024 · 4 comments
Closed

some deprecations #79

tacman opened this issue Dec 15, 2024 · 4 comments

Comments

@tacman
Copy link
Contributor

tacman commented Dec 15, 2024

I saw these. I think it's okay to simply follow the suggestions, but can't remember exactly if they'd work for PHP 7.2.

image

samwilson added a commit that referenced this issue Dec 15, 2024
Also remove an unused import.

Refs #79
@samwilson
Copy link
Owner

With the addition of UriInterface as a return type hint, Phan is now complaining:

src/Oauth/PhpFlickrService.php:39 PhanUndeclaredTypeReturnType Return type of getRequestTokenEndpoint() is undeclared type \OAuth\Common\Http\Uri\UriInterface

src/Oauth/PhpFlickrService.php:41 PhanTypeMismatchReturn Returning new Uri((static::$baseUrl . '/oauth/request_token')) of type \OAuth\Common\Http\Uri\Uri but getRequestTokenEndpoint() is declared to return \OAuth\Common\Http\Uri\UriInterface

@tacman
Copy link
Contributor Author

tacman commented Dec 15, 2024

Yeah, I just ran into phpstan complaining in another project. I'm never quite sure when to return self, static or the class/interface name itself.

@samwilson
Copy link
Owner

It's a bit strange. It's like Phan is not loading vendor classes, but it must be because surely otherwise it'd be complaining about a bunch of other stuff.

@samwilson
Copy link
Owner

Oh, Phan was not loading the vendor directory! Fixing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants