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

[SDK-4338] feat: GuardAbstract extends Illuminate\Contracts\Auth\Guard #410

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

evansims
Copy link
Member

Changes

This PR updates Auth0\Laravel\Guards\GuardAbstract abstract class (which is extended by the concrete Auth0\Laravel\Guards\AuthenticationGuard and Auth0\Laravel\Guards\AuthorizationGuard classes) to extend the Illuminate\Contracts\Auth\Guard interface. This is a framework interface provided by Laravel.

No functional changes related to this change, but extending it is suggested as a best practice.

References

Addresses feedback from @devfrey in #385.

Testing

Test coverage remains at 100%.

Contributor Checklist

@evansims evansims added the Scope: Improvement Proposed improvements, or feature additions. label Jun 13, 2023
@evansims evansims changed the title feat: GuardAbstract extends Illuminate\Contracts\Auth\Guard [SDK-4338] feat: GuardAbstract extends Illuminate\Contracts\Auth\Guard Jun 13, 2023
@evansims evansims marked this pull request as ready for review June 13, 2023 20:12
@evansims evansims requested a review from a team as a code owner June 13, 2023 20:12
@evansims evansims enabled auto-merge June 13, 2023 20:12
@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (6275efe) 100.00% compared to head (5e9fc4a) 100.00%.

❗ Current head 5e9fc4a differs from pull request most recent head 27c5e14. Consider uploading reports for the commit 27c5e14 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##                main      #410   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
+ Complexity       501       496    -5     
===========================================
  Files             31        31           
  Lines           1276      1271    -5     
===========================================
- Hits            1276      1271    -5     
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Guards/GuardAbstract.php 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@evansims evansims added this pull request to the merge queue Jun 13, 2023
Merged via the queue into main with commit 9647301 Jun 13, 2023
8 checks passed
@evansims evansims deleted the feat/extend-illuminate-guard-interface branch June 13, 2023 22:23
@evansims evansims mentioned this pull request Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Improvement Proposed improvements, or feature additions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants