Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jwt
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jwt
Commits
95d2db85
Commit
95d2db85
authored
3 years ago
by
Peter Wolanin
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3275651
by pwolanin: Fix errors on php 8.1
parent
9b11b8c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/users_jwt/src/UsersJwtKeyRepository.php
+5
-4
5 additions, 4 deletions
modules/users_jwt/src/UsersJwtKeyRepository.php
modules/users_jwt/src/UsersJwtKeyRepositoryInterface.php
+2
-1
2 additions, 1 deletion
modules/users_jwt/src/UsersJwtKeyRepositoryInterface.php
with
7 additions
and
5 deletions
modules/users_jwt/src/UsersJwtKeyRepository.php
+
5
−
4
View file @
95d2db85
...
...
@@ -143,14 +143,15 @@ class UsersJwtKeyRepository implements UsersJwtKeyRepositoryInterface {
/**
* {@inheritdoc}
*/
public
function
offsetExists
(
$offset
)
{
public
function
offsetExists
(
$offset
)
:
bool
{
return
(
bool
)
$this
->
getKey
(
$offset
);
}
/**
* {@inheritdoc}
*/
public
function
offsetGet
(
$offset
)
{
#[\ReturnTypeWillChange]
public
function
offsetGet
(
$offset
):
?string
{
$key
=
$this
->
getKey
(
$offset
);
return
$key
?
$key
->
pubkey
:
NULL
;
}
...
...
@@ -158,11 +159,11 @@ class UsersJwtKeyRepository implements UsersJwtKeyRepositoryInterface {
/**
* {@inheritdoc}
*/
public
function
offsetSet
(
$offset
,
$value
)
{}
public
function
offsetSet
(
$offset
,
$value
)
:
void
{}
/**
* {@inheritdoc}
*/
public
function
offsetUnset
(
$offset
)
{}
public
function
offsetUnset
(
$offset
)
:
void
{}
}
This diff is collapsed.
Click to expand it.
modules/users_jwt/src/UsersJwtKeyRepositoryInterface.php
+
2
−
1
View file @
95d2db85
...
...
@@ -85,6 +85,7 @@ interface UsersJwtKeyRepositoryInterface extends \ArrayAccess {
* @return string|null
* The public key for a key ID, or null if there is no such key.
*/
public
function
offsetGet
(
$id
);
#[\ReturnTypeWillChange]
public
function
offsetGet
(
$id
):
?string
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment