Skip to content

Commit 8f576e9

Browse files
committed
Merge branch '2.x' into 2.next-merge
# Conflicts: # .github/workflows/ci.yml # src/Identifier/Resolver/OrmResolver.php
2 parents 17d941e + 64964e5 commit 8f576e9

File tree

10 files changed

+60
-8
lines changed

10 files changed

+60
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ on:
88
pull_request:
99
branches:
1010
- '*'
11+
workflow_dispatch:
1112

1213
jobs:
1314
testsuite:
1415
runs-on: ubuntu-22.04
1516
strategy:
1617
fail-fast: false
1718
matrix:
18-
php-version: ['7.4', '8.0', '8.1']
19+
php-version: ['7.4', '8.0', '8.1', '8.2']
1920
db-type: [sqlite]
2021
prefer-lowest: ['']
2122
include:
@@ -24,7 +25,7 @@ jobs:
2425
prefer-lowest: 'prefer-lowest'
2526

2627
steps:
27-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2829

2930
- name: Setup PHP
3031
uses: shivammathur/setup-php@v2
@@ -50,9 +51,7 @@ jobs:
5051

5152
- name: Composer install
5253
run: |
53-
if [[ ${{ matrix.php-version }} == '8.1' ]]; then
54-
composer update --ignore-platform-reqs
55-
elif ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
54+
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
5655
composer update --prefer-lowest --prefer-stable
5756
else
5857
composer update

.github/workflows/deploy_docs_2x.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
push:
66
branches:
77
- 2.x
8+
workflow_dispatch:
89

910
jobs:
1011
deploy:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Cloning repo
14-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1516
with:
1617
fetch-depth: 0
1718

src/IdentityInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface IdentityInterface extends ArrayAccess
2828
/**
2929
* Get the primary key/id field for the identity.
3030
*
31-
* @return string|int|null
31+
* @return string|int|array|null
3232
*/
3333
public function getIdentifier();
3434

src/View/Helper/IdentityHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function initialize(array $config): void
7171
/**
7272
* Gets the id of the current logged in identity
7373
*
74-
* @return int|null|string
74+
* @return string|int|array|null
7575
*/
7676
public function getId()
7777
{

tests/TestCase/Authenticator/HttpBasicAuthenticatorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ class HttpBasicAuthenticatorTest extends TestCase
3737
'core.Users',
3838
];
3939

40+
/**
41+
* @var \Authentication\IdentifierCollection
42+
*/
43+
protected $identifiers;
44+
45+
/**
46+
* @var \Autnentication\Authenticator\HttpBasicAuthenticator
47+
*/
48+
protected $auth;
49+
4050
/**
4151
* @inheritDoc
4252
*/

tests/TestCase/Authenticator/HttpDigestAuthenticatorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ class HttpDigestAuthenticatorTest extends TestCase
4343
'core.Users',
4444
];
4545

46+
/**
47+
* @var \Authentication\IdentifierCollection
48+
*/
49+
protected $identifiers;
50+
51+
/**
52+
* @var \Autnentication\Authenticator\HttpDigestAuthenticator
53+
*/
54+
protected $auth;
55+
4656
/**
4757
* setup
4858
*

tests/TestCase/Authenticator/JwtAuthenticatorTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class JwtAuthenticatorTest extends TestCase
5959
*/
6060
public $identifiers;
6161

62+
/**
63+
* @var \Cake\Http\ServerRequest
64+
*/
65+
protected $request;
66+
6267
/**
6368
* @inheritDoc
6469
*/

tests/TestCase/Authenticator/SessionAuthenticatorTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ class SessionAuthenticatorTest extends TestCase
4040
'core.Users',
4141
];
4242

43+
/**
44+
* @var \Authentication\IdentifierCollection
45+
*/
46+
protected $identifiers;
47+
48+
protected $sessionMock;
49+
4350
/**
4451
* @inheritDoc
4552
*/

tests/TestCase/Authenticator/TokenAuthenticatorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ class TokenAuthenticatorTest extends TestCase
3434
'core.Users',
3535
];
3636

37+
/**
38+
* @var \Authentication\IdentifierCollection
39+
*/
40+
protected $identifiers;
41+
42+
/**
43+
* @var \Cake\Http\ServerRequest
44+
*/
45+
protected $request;
46+
3747
/**
3848
* @inheritDoc
3949
*/

tests/TestCase/Middleware/AuthenticationMiddlewareTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ class AuthenticationMiddlewareTest extends TestCase
3434
{
3535
use ContainerStubTrait;
3636

37+
/**
38+
* @var \Authentication\AuthenticationService
39+
*/
40+
protected $service;
41+
42+
/**
43+
* @var \TestApp\Application
44+
*/
45+
protected $application;
46+
3747
/**
3848
* Fixtures
3949
*/

0 commit comments

Comments
 (0)