Skip to content

chore(deps-dev): bump codeigniter/phpstan-codeigniter from 1.6.0 to 2.2.3 - #247

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/codeigniter/phpstan-codeigniter-2.2.3
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/codeigniter/phpstan-codeigniter-2.2.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 12, 2026

Copy link
Copy Markdown
Contributor

Bumps codeigniter/phpstan-codeigniter from 1.6.0 to 2.2.3.

Release notes

Sourced from codeigniter/phpstan-codeigniter's releases.

v2.2.3

What's Changed

Fixed

  • Fix SuperglobalsOffsetAccessRule auto-fixes that would cause a PHP fatal error: isset() on a superglobal offset is now rewritten to !== null, and no fix is applied for multi-variable isset(), compound assignment, increment or decrement.

Full Changelog: CodeIgniter/phpstan-codeigniter@v2.2.2...v2.2.3

v2.2.2

What's Changed

Fixed

  • Superglobals access (reads) are now suggested to use single_service() for live fetches. Auto-fixing now also considers variable context so that a fix would not crash PHP.

Full Changelog: CodeIgniter/phpstan-codeigniter@v2.2.1...v2.2.2

v2.2.1

What's Changed

Changed

  • Extensions are now natively supporting PHPStan's extension attributes. Requires PHPStan v2.3.5

Full Changelog: CodeIgniter/phpstan-codeigniter@v2.2.0...v2.2.1

v2.2.0

What's Changed

Added

  • Static Factories loaders. Factories::config(), Factories::models() and Factories::get() now return the requested class, the same as the config() and model() functions. A class-string resolves for any component. A short alias such as Factories::config('App') resolves through the config and model namespaces, including additionalConfigNamespaces and additionalModelNamespaces.
  • Request::getServer(). With no index it returns array<string, mixed>. A constant key returns string|null, or the actual type for argv, argc, REQUEST_TIME and REQUEST_TIME_FLOAT.
  • IncomingRequest input accessors. getGet(), getPost(), getCookie(), getPostGet(), getGetPost() and getRawInputVar() return array<string, mixed> for a null or array index. A constant string index returns array<mixed>|string|null (getRawInputVar() keeps its declared type here). A filter argument also keeps the declared type.

Fixed

  • Crash under PHPStan 2.3. Rector and other tools that ask PHPStan for native types stopped with assert(count($classTypes) === 1) on model fetch chains such as $this->select('name')->asArray()->find(). When the receiver has no known class, the model fetch extension now falls back to the declared return type.
  • Model fetches on a union of models. find(), findAll(), first() and findColumn() called on a union of models, for example ($flag ? $users : $jobs)->find(1), now return the union of the row types of every model in it. Previously they used the first model's type only.
  • Schema build in parallel runs. Migrations are discovered once per run, and building a cold schema cache is locked, so parallel PHPStan workers no longer all run the migrations.

Compatibility

  • Works with PHPStan 2.3. The minimum stays at PHPStan 2.2.

Coming natively in CodeIgniter 4.7.5

CodeIgniter 4.7.5 will declare precise types for the ResultInterface row accessors, the CLIRequest input getters, current_url()/previous_url(), and IncomingRequest::getJSON()/getJsonVar()codeigniter4/CodeIgniter4#10588

... (truncated)

Commits
  • 2a9ad17 Make superglobals offset access fixes live and fatal-safe
  • 7635323 Make superglobals offset access fixes live and fatal-safe
  • f881994 Adapt to PHPStan v2.3.5's extension attributes
  • e9a43ef Update phpunit/phpunit requirement from ^11.5 || ^12.5 to ^11.5 || ^12.5 || ^...
  • cbd130f Bump shivammathur/setup-php from 2.37.2 to 2.40.0 (#51)
  • c6be19c Type Factories::cells() from its class-string argument
  • b05e201 Update ReflectionHelper fixtures for CodeIgniter 4.7.5
  • ac12405 Bump actions/checkout from 7.0.0 to 7.0.1 (#50)
  • ab65465 Type Model fetches across every receiver class
  • 41e805b Adapt to PHPStan 2.3
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [codeigniter/phpstan-codeigniter](https://github.com/CodeIgniter/phpstan-codeigniter) from 1.6.0 to 2.2.3.
- [Release notes](https://github.com/CodeIgniter/phpstan-codeigniter/releases)
- [Changelog](https://github.com/CodeIgniter/phpstan-codeigniter/blob/2.x/CHANGELOG.md)
- [Commits](CodeIgniter/phpstan-codeigniter@v1.6.0...v2.2.3)

---
updated-dependencies:
- dependency-name: codeigniter/phpstan-codeigniter
  dependency-version: 2.2.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants