Skip to content

chore(deps-dev): bump codeigniter/phpstan-codeigniter from 1.6.0 to 2.2.0 - #244

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 30, 2026

Copy link
Copy Markdown
Contributor

Bumps codeigniter/phpstan-codeigniter from 1.6.0 to 2.2.0.

Release notes

Sourced from codeigniter/phpstan-codeigniter's releases.

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

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

v2.1.0

What's Changed

Added

  • Type asObject-fetched entities by the producing model's casts

Full Changelog: CodeIgniter/phpstan-codeigniter@v2.0.1...v2.1.0

v2.0.1

What's Changed

Fixed

  • Apply the model's casts to entity property types

Full Changelog: CodeIgniter/phpstan-codeigniter@v2.0.0...v2.0.1

v2.0.0

Highlights

This release is a ground-up rewrite of the extension. The headline feature is Model and Entity type inference driven by your real database schema: the extension materializes your schema by running your migrations against a temporary SQLite database, then uses it to type your models, entities, and fetched rows.

[!IMPORTANT] This is a major release with breaking changes. Read the Upgrade Guide before upgrading.

... (truncated)

Commits
  • 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
  • 870d30a Remove return type extensions superseded by CodeIgniter docblocks
  • 3e6b1d8 Refine types after CI v4.7.4 fixes
  • 0809c89 Type current_url() and previous_url() url helpers
  • 354af56 Type IncomingRequest and CLIRequest input accessors
  • 8708fdb Type Request::getServer() and getJSON() accessors
  • 547ad3c Rename ResultInterface extension helpers to verb-first
  • 11cb1e4 Type Factories::config(), models(), and get() from their arguments
  • 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.0.
- [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.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Oct 30, 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