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

Update AbstractProvider.php - Fixing return type as Psalm complains a… #1009

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

michelgokan
Copy link

…bout it

This function returns an instance of type AccessToken instead of AccessTokenInterface. The latest version of psalm is complaining about this issue.

…bout it

It seems like this function is returning an instance of type AccessToken instead of AccessTokenInterface. The latest version of `psalm` is complaining about this issue.
* @return AccessTokenInterface
* @return AccessToken
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since AccessToken implements AccessTokenInterface, I don't understand why Psalm would complain about this.

Is this still a problem in the latest version of Psalm?

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (2455200) to head (1e0fe36).
Report is 22 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##              master     #1009   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       191       193    +2     
===========================================
  Files             20        20           
  Lines            516       521    +5     
===========================================
+ Hits             516       521    +5     
Files with missing lines Coverage Δ
src/Provider/AbstractProvider.php 100.00% <ø> (ø)

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

Successfully merging this pull request may close these issues.

2 participants