Skip to content

Commit

Permalink
Merge pull request #654 from cakephp/2.next-merge
Browse files Browse the repository at this point in the history
merge 2.x -> 2.next
  • Loading branch information
LordSimal committed Dec 26, 2023
2 parents 17d941e + 8f576e9 commit a5dc587
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ on:
pull_request:
branches:
- '*'
workflow_dispatch:

jobs:
testsuite:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1']
php-version: ['7.4', '8.0', '8.1', '8.2']
db-type: [sqlite]
prefer-lowest: ['']
include:
Expand All @@ -24,7 +25,7 @@ jobs:
prefer-lowest: 'prefer-lowest'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -50,9 +51,7 @@ jobs:

- name: Composer install
run: |
if [[ ${{ matrix.php-version }} == '8.1' ]]; then
composer update --ignore-platform-reqs
elif ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
composer update --prefer-lowest --prefer-stable
else
composer update
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy_docs_2x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on:
push:
branches:
- 2.x
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion src/IdentityInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface IdentityInterface extends ArrayAccess
/**
* Get the primary key/id field for the identity.
*
* @return string|int|null
* @return string|int|array|null
*/
public function getIdentifier();

Expand Down
2 changes: 1 addition & 1 deletion src/View/Helper/IdentityHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function initialize(array $config): void
/**
* Gets the id of the current logged in identity
*
* @return int|null|string
* @return string|int|array|null
*/
public function getId()
{
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Authenticator/HttpBasicAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ class HttpBasicAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

/**
* @var \Autnentication\Authenticator\HttpBasicAuthenticator
*/
protected $auth;

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Authenticator/HttpDigestAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ class HttpDigestAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

/**
* @var \Autnentication\Authenticator\HttpDigestAuthenticator
*/
protected $auth;

/**
* setup
*
Expand Down
5 changes: 5 additions & 0 deletions tests/TestCase/Authenticator/JwtAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class JwtAuthenticatorTest extends TestCase
*/
public $identifiers;

/**
* @var \Cake\Http\ServerRequest
*/
protected $request;

/**
* @inheritDoc
*/
Expand Down
7 changes: 7 additions & 0 deletions tests/TestCase/Authenticator/SessionAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ class SessionAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

protected $sessionMock;

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Authenticator/TokenAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ class TokenAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

/**
* @var \Cake\Http\ServerRequest
*/
protected $request;

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Middleware/AuthenticationMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ class AuthenticationMiddlewareTest extends TestCase
{
use ContainerStubTrait;

/**
* @var \Authentication\AuthenticationService
*/
protected $service;

/**
* @var \TestApp\Application
*/
protected $application;

/**
* Fixtures
*/
Expand Down

0 comments on commit a5dc587

Please sign in to comment.