Skip to content

Fix #21131: Reject non-string tokens in yii\web\User::loginByAccessToken() before the identity lookup, hardening against type-juggling - #21131

Merged
samdark merged 8 commits into
yiisoft:masterfrom
took:harden-loginbyaccesstoken
Nov 4, 2026

Conversation

@took

@took took commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
Q A
Is bugfix? ❌
New feature? ❌
Breaks BC? ❌
Fixed issues n/a

What & why

yii\web\User::loginByAccessToken() forwards $token to
IdentityInterface::findIdentityByAccessToken() without checking its type. The
bundled QueryParamAuth already guards with is_string() and the HTTP header auth
methods only ever pass strings, but a custom authenticator — or app code that takes a
token from a typed source such as a JSON body — can pass a non-string. An identity
class that does findOne(['access_token' => $token]) then builds
access_token = 0 / IN (0); on MySQL/MariaDB non-numeric VARCHAR tokens coerce to
0 and match, i.e. the type-juggling pattern behind the recent Laravel token-auth
advisory.

This adds a single is_string() guard at the shared entry point, so every identity
class is protected regardless of whether its own findIdentityByAccessToken() checks
the type — mirroring the existing QueryParamAuth guard, and matching Yii3's already
string-typed findIdentityByToken() contract.

Compatibility

No change for valid (string) tokens. The only behavioural difference is that a
non-string token now returns null instead of reaching the identity class — tokens
are strings in every supported auth flow, so no realistic caller is affected.

Tests

Added UserTest::testLoginByAccessTokenRejectsNonString.

Summary by Sourcery

Harden access-token authentication by rejecting non-string tokens before identity lookup.

Enhancements:

  • Reject non-string access tokens at the shared user authentication entry point to prevent type-juggling during identity lookup.

Tests:

  • Add coverage confirming non-string tokens are rejected without authenticating the user.

Signed-off-by: Guido Pannenbecker <info@sd-gp.de>
@sourcery-ai

sourcery-ai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Hardens User::loginByAccessToken() against type-juggling vulnerabilities by rejecting non-string tokens before they reach identity implementations, with regression tests covering array and integer inputs; valid string-token behavior is unchanged.

Sequence diagram for token type validation in User::loginByAccessToken

sequenceDiagram
    participant Caller
    participant User
    participant Identity

    Caller->>User: loginByAccessToken(token, type)
    alt token is not a string
        User-->>Caller: null
    else token is a string
        User->>Identity: findIdentityByAccessToken(token, type)
        Identity-->>User: identity or null
        User-->>Caller: identity or null
    end
Loading

File-Level Changes

Change Details Files
Reject non-string access tokens at the shared login entry point before identity lookup or authentication.
  • Add an early is_string() guard that returns null for invalid token types.
  • Document the rejection behavior while preserving existing handling of string tokens.
framework/web/User.php
Add regression coverage for non-string token rejection.
  • Verify array and integer tokens return null and leave the user as a guest.
tests/framework/web/UserTest.php

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Login attempts using non-string access tokens, such as numbers or arrays, return no user and leave the session unauthenticated. These values are rejected before user lookup, so invalid input cannot result in a successful login. String access tokens continue through the existing identity lookup and login flow.

loginByAccessToken() now returns null for non-string tokens before identity lookup. Tests cover array and integer inputs and verify that the user remains a guest. The changelog records the change.

Changes: Access token validation

Layer / File(s) Summary
Reject non-string access tokens
framework/web/User.php, tests/framework/web/UserTest.php, framework/CHANGELOG.md
loginByAccessToken() returns null for non-string tokens before identity lookup. Tests check array and integer inputs and confirm that the user remains a guest. The changelog records the behavior.

Suggested labels: type:bug, type:test

Change: Bug fix

Merge Risk: Minimal · previous review 0804e

No actionable merge-blocking risk is established. The change rejects non-string access tokens while preserving the existing string-token flow.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: rejecting non-string tokens in User::loginByAccessToken().
Description check Passed The description directly explains the type-validation change, its security rationale, compatibility impact, tests, and changelog update.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks each token's type,
Array and number get no pass.
No lookup starts for those inputs,
The guest stays guest, as tests confirm.
The changelog notes the guard in place.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 3466a7a3-885f-4b34-9cb7-4679808dc18a
Commits

Reviewing files that changed from the base of the PR and between 247d9a6 and 0804e92.

Files selected for processing: 2
  • framework/web/User.php
  • tests/framework/web/UserTest.php

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Recent review details
Context from checks skipped due to timeout: 82
  • GitHub Check: CodeRabbit
  • GitHub Check: SQLite tests / PHP 8.3-ubuntu-22.04
  • GitHub Check: SQLite tests / PHP 8.4-ubuntu-22.04
  • GitHub Check: SQLite tests with coverage / PHP 8.5-windows-latest
  • GitHub Check: SQLite tests with coverage / PHP 8.5-ubuntu-22.04
  • GitHub Check: SQLite tests / PHP 8.2-ubuntu-22.04
  • GitHub Check: SQLite tests / PHP 8.1-ubuntu-22.04
  • GitHub Check: SQLite tests with coverage / PHP 7.4-windows-latest
  • GitHub Check: SQLite tests / PHP 8.0-ubuntu-22.04
  • GitHub Check: SQLite tests with coverage / PHP 7.4-ubuntu-22.04
  • GitHub Check: MySQL tests with coverage / PHP 8.5-mysql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-12
  • GitHub Check: MySQL tests / PHP 8.0-mysql-latest
  • GitHub Check: PHP 8.2
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-17
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-15
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-17
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-16
  • GitHub Check: MySQL tests with coverage / PHP 7.4-mysql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-12
  • GitHub Check: MySQL tests with coverage / PHP 8.5-mysql-5.7
  • GitHub Check: PHP 8
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-15
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-13
  • GitHub Check: PostgreSQL tests / PHP 8.3-pgsql-latest
  • GitHub Check: MySQL tests / PHP 8.2-mysql-latest
  • GitHub Check: MySQL tests / PHP 8.3-mysql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-10
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-11
  • GitHub Check: MySQL tests with coverage / PHP 7.4-mysql-5.7
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-14
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-16
  • GitHub Check: PHP 8.2 Windows
  • GitHub Check: PostgreSQL tests / PHP 8.0-pgsql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-14
  • GitHub Check: PostgreSQL tests / PHP 8.1-pgsql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-10
  • GitHub Check: MySQL tests / PHP 8.4-mysql-latest
  • GitHub Check: PHP 8.4
  • GitHub Check: PHP 8.1
  • GitHub Check: PostgreSQL tests / PHP 8.2-pgsql-latest
  • GitHub Check: PostgreSQL tests with coverage / PHP 8.5-pgsql-13
  • GitHub Check: MySQL tests / PHP 8.1-mysql-latest
  • GitHub Check: PHP 7.4
  • GitHub Check: PHP 8.1 Windows
  • GitHub Check: PostgreSQL tests with coverage / PHP 7.4-pgsql-11
  • GitHub Check: PHP 8.3
  • GitHub Check: PHP 7.4 Windows
  • GitHub Check: PHP 8.5
  • GitHub Check: PHP 8 Windows
  • GitHub Check: PHP 8.4 Windows
  • GitHub Check: PostgreSQL tests / PHP 8.4-pgsql-latest
  • GitHub Check: PHP 8.5 Windows
  • GitHub Check: PHP 8.3 Windows
  • GitHub Check: php-cs-fixer / PHP 7.4-ubuntu-latest
  • GitHub Check: phpstan-7x / PHP 7.4-ubuntu-latest
  • GitHub Check: PHP 8.6
  • GitHub Check: phpstan / PHP 8.5-ubuntu-latest
  • GitHub Check: MariaDB tests with coverage / PHP 7.4-mysql-latest
  • GitHub Check: MSSQL tests / PHP 8.0-mssql-2022-latest
  • GitHub Check: MSSQL tests with coverage / PHP 7.4-mssql-2019-latest
  • GitHub Check: rector / PHP 8.5-ubuntu-latest
  • GitHub Check: MariaDB tests / PHP 8.0-mysql-latest
  • GitHub Check: MSSQL tests / PHP 8.2-mssql-2022-latest
  • GitHub Check: MSSQL tests with coverage / PHP 8.5-mssql-2022-latest
  • GitHub Check: MSSQL tests / PHP 8.4-mssql-2022-latest
  • GitHub Check: MSSQL tests / PHP 8.1-mssql-2022-latest
  • GitHub Check: MariaDB tests / PHP 8.1-mysql-latest
  • GitHub Check: MariaDB tests / PHP 8.4-mysql-latest
  • GitHub Check: MariaDB tests with coverage / PHP 8.5-mysql-10.4
  • GitHub Check: MariaDB tests / PHP 8.2-mysql-latest
  • GitHub Check: MSSQL tests with coverage / PHP 7.4-mssql-2022-latest
  • GitHub Check: MariaDB tests with coverage / PHP 8.5-mysql-latest
  • GitHub Check: MariaDB tests / PHP 8.3-mysql-latest
  • GitHub Check: MSSQL tests / PHP 8.3-mssql-2022-latest
  • GitHub Check: MSSQL tests with coverage / PHP 8.5-mssql-2019-latest
  • GitHub Check: MariaDB tests with coverage / PHP 7.4-mysql-10.4
  • GitHub Check: Oracle tests with coverage / PHP 7.4-oracle-slim-faststart
  • GitHub Check: Oracle tests with coverage / PHP 8.5-oracle-slim-faststart
  • GitHub Check: NPM 10 on ubuntu-22.04
Additional context used
PHPMD (3.0.0)
tests/framework/web/UserTest.php

[error] 34-588: The name yiiunit in namespace yiiunit\framework\web is not named in CamelCase. (Controversial Rules)

(CamelCaseNamespace)

[error] 34-588: The name framework in namespace yiiunit\framework\web is not named in CamelCase. (Controversial Rules)

(CamelCaseNamespace)

[error] 34-588: The name web in namespace yiiunit\framework\web is not named in CamelCase. (Controversial Rules)

(CamelCaseNamespace)

framework/web/User.php

[warning] 71-827: The class User has 17 fields. Consider redesigning User to keep the number of fields at 15 or less. (Code Size Rules)

(TooManyFields)

[warning] 71-827: The class User has an overall complexity of 115 which is very high. The configured complexity threshold is 50. (Code Size Rules)

(ExcessiveClassComplexity)

[error] 71-827: The name yii in namespace yii\web is not named in CamelCase. (Controversial Rules)

(CamelCaseNamespace)

[error] 71-827: The name web in namespace yii\web is not named in CamelCase. (Controversial Rules)

(CamelCaseNamespace)

[error] 71-827: The property $_access is not named in camelCase. (Controversial Rules)

(CamelCasePropertyName)

[error] 71-827: The property $_identity is not named in camelCase. (Controversial Rules)

(CamelCasePropertyName)

[error] 71-827: The class User has a coupling between objects value of 14. Consider to reduce the number of dependencies to 13 or less. (Design Rules)

(CouplingBetweenObjects)

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. Non-string token callers now fail authentication before the identity class can interpret their values, which could deny login to integrations that previously relied on that behavior. Reverting restores the prior behavior, and the change does not persist data or grant access.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.88%. Comparing base (662481e) to head (2e43256).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #21131      +/-   ##
============================================
- Coverage     81.88%   81.88%   -0.01%     
- Complexity    11598    11599       +1     
============================================
  Files           374      374              
  Lines         30376    30378       +2     
============================================
  Hits          24874    24874              
- Misses         5502     5504       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@samdark

samdark commented Oct 30, 2026

Copy link
Copy Markdown
Member

@took looks great. Would you please add a line for CHANGELOG? Thanks.

Signed-off-by: Guido Pannenbecker <info@sd-gp.de>
sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Oct 30, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sourcery assessment

Approved.

Signed-off-by: Guido Pannenbecker <info@sd-gp.de>
@sourcery-ai
sourcery-ai Bot dismissed their stale review October 30, 2026 12:57

Sourcery withdrew this approval because the latest commits introduced blocking findings.

sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Oct 30, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sourcery assessment

Approved.

@sourcery-ai
sourcery-ai Bot dismissed their stale review October 31, 2026 12:18

Sourcery withdrew this approval because the latest commits introduced blocking findings.

@samdark samdark changed the title Reject non-string tokens in User::loginByAccessToken() Fix #21131: Reject non-string tokens in yii\web\User::loginByAccessToken() before the identity lookup, hardening against type-juggling Nov 4, 2026
@samdark
samdark merged commit 693ffcc into yiisoft:master Nov 4, 2026
84 of 85 checks passed
@samdark

samdark commented Nov 4, 2026

Copy link
Copy Markdown
Member

👍

terabytesoftw added a commit that referenced this pull request Nov 24, 2026
* Fix #21072: Use the full 64-bit keyspace for PostgreSQL advisory lock keys in `PgsqlMutex`

* Fix #21073: Fix `MultipartFormDataParser` boundary extraction when `Content-Type` has additional parameters

* Restore `session.use_strict_mode` after session tests. (#21133)

* Fix #21074: Fix Gettext PO file escaping of backslashes and parsing of escaped quotes

* Fix PHPStan level 4 errors in tests (#21135)

- Fix `@return` annotation for `yii\db\Command::getSql()`
- Fix `@property` annotation for `yii\db\Command::$sql`
- Fix `@return` annotations for `cssStyleFromArray()` and `getAttributeValue()` in `yii\helpers\BaseHtml`
- Fix `@return` annotations for `format()` and `asRaw()` in `yii\i18n\Formatter`
- Fix `@return` annotation for `yii\web\HeaderCollection::get()` 
- Fix `@return` annotations for `getInstance()`, `getInstanceByName()`, `getInstances()` and `getInstancesByName()` in `yii\web\UploadedFile`
- Add `@throws` annotation for `InvalidConfigException` in `yii\db\Connection::open()`
- Add `@phpstan-impure` annotations for `yii\db\Connection::open()`, `save()` and `link()` in `yii\db\BaseActiveRecord`, `yii\web\AssetBundle::register()`, `yii\test\ArrayFixture::load()`, `yii\filters\RateLimiter::beforeAction()`, `validateAttribute()` and `validateAttributes()` in `yii\validators\Validator`

* Verify the rollback that testTransactionShortcutException never checked (#21134)

* Fix #21131: Reject non-string tokens in `yii\web\User::loginByAccessToken()` before the identity lookup, hardening against type-juggling

Signed-off-by: Guido Pannenbecker <info@sd-gp.de>

* Update PHPStan level from 3 to 4 (#21136)

- Fix `@var` annotation for `yii\base\ErrorHandler::$_hhvmException` (mspirkov)
- Fix `@return` annotation for `yii\base\Theme::getBasePath()` (mspirkov)
- Separate the `@property` annotations for `yii\base\Theme::$basePath` (mspirkov)
- Fix `@var` annotation for `yii\caching\DbQueryDependency::$db` (mspirkov)
- Fix `@var` annotation for `yii\data\ArrayDataProvider::$allModels` (mspirkov)
- Fix `@var` annotation for `yii\db\ActiveQueryTrait::$asArray` (mspirkov)
- Fix `@var` annotation for `yii\db\ActiveRelationTrait::$primaryModel` (mspirkov)
- Fix `@param` annotation for `$models` in `yii\db\ActiveRelationTrait::populateInverseRelation()` (mspirkov)
- Fix `@param` and `@return` annotations for `yii\db\QueryTrait::filterCondition()` (mspirkov)
- Fix `@param` annotations for `$content` in `isOperator()`, `isIdentifier()`, `isStringLiteral()` and `isKeyword()` of `yii\db\SqlTokenizer` (mspirkov)
- Fix `@param` annotation for `$columns` in `yii\db\conditions\InConditionBuilder::buildSubqueryInCondition()` (mspirkov)
- Fix `@param` and `@return` annotations for `yii\di\Container::normalizeDefinition()` (mspirkov)
- Fix `@var` annotation for `yii\filters\AccessRule::$matchCallback` (mspirkov)
- Fix `@var` annotation for `yii\filters\ContentNegotiator::$request` (mspirkov)
- Fix `@var` annotation for `yii\filters\auth\CompositeAuth::$authMethods` (mspirkov)
- Fix `@var` annotation for `yii\grid\GridView::$filterSelector` (mspirkov)
- Fix `@param` annotations for `$models` in `errorSummary()` and `collectErrors()` of `yii\helpers\BaseConsole`, `yii\helpers\BaseHtml` and `yii\helpers\BaseJson`, and in `yii\widgets\ActiveForm::errorSummary()` (mspirkov)
- Fix `@var` annotation for `yii\helpers\BaseUrl::$urlManager` (mspirkov)
- Fix `@var` annotation for `yii\log\Logger::$dispatcher` (mspirkov)
- Fix `@var` annotation for `yii\rest\IndexAction::$prepareSearchQuery` (mspirkov)
- Fix `@var` annotation for `yii\web\Cookie::$sameSite` (mspirkov)
- Fix inline `@var` annotations in `yii\db\ActiveRelationTrait::findJunctionRows()`, `refresh()` and `refreshTableSchema()` in `yii\db\Schema`, and `yii\log\Target::getMessagePrefix()` (mspirkov)
- Add `@throws` annotation for `UrlNormalizerRedirectException` in `yii\web\Request::resolve()` (mspirkov)
- Add `@phpstan-impure` annotations for `yii\base\Component::attachBehavior()`, `yii\base\Model::clearErrors()`, `yii\data\DataFilter::setSearchModel()`, `yii\db\Command::addCheck()`, `yii\db\Connection::close()`, `yii\db\Schema::getTableSchema()`, `getTablePrimaryKey()` and `getTableChecks()` in `yii\db\ConstraintFinderInterface` and `yii\db\ConstraintFinderTrait`, `yii\validators\Validator::validate()`, `yii\web\CompositeUrlRule::iterateRules()` and `yii\web\User::setIdentity()` (mspirkov)

* Fix PHPStan errors (#21139)

* Fix dead php.net intl and OPcache links in the guide (#21140)

* Bump `phpstan/phpstan` to `2.3.7` (#21142)

* Allow the `__class` key in configuration arrays in `@return` annotations (#21141)

* Fix #21147: Add `@template` annotation for `$default` in `yii\web\HeaderCollection::get()`

* Update workflow configurations to support PHP `8.6` and adjust dependencies. (#21148)

* Update dependencies in `composer.lock` to latest versions.

* Add overrides for `glob` and `minimatch` in `package.json`.

* Update PHP version to `8.6` and add `ignore-platform-reqs` for CI workflows.

---------

Signed-off-by: Guido Pannenbecker <info@sd-gp.de>
Co-authored-by: Ilia Alshanetsky <ilia@ilia.ws>
Co-authored-by: Maksim Spirkov <63721828+mspirkov@users.noreply.github.com>
Co-authored-by: Dylan Pulver <35541198+dylanpulver@users.noreply.github.com>
Co-authored-by: took <info@sd-gp.de>
Co-authored-by: Faris Basha TM <72191505+farisbasha@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants