Skip to content

chore(deps-dev): bump codeigniter/phpstan-codeigniter from 1.6.0 to 2.4.0 - #249

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps codeigniter/phpstan-codeigniter from 1.6.0 to 2.4.0.

Release notes

Sourced from codeigniter/phpstan-codeigniter's releases.

v2.4.0

What's Changed

Added

  • Add CastHandlerRule to report a $casts entry of an entity or model that has no handler (codeigniter.castHandlerNotRegistered), a handler class that does not exist (codeigniter.castHandlerNotFound) and a handler that implements neither CastInterface (codeigniter.castHandlerInvalid).
  • Add MigrationNotAppliedRule to report a migration that failed on the SQLite schema connection (codeigniter.migrationNotApplied). A migration pinned to another database group is not reported.

Changed

  • Unknown column, row field, cast element and entity property types are now an explicit mixed, so checkImplicitMixed: true no longer reports their uses (#54). They print in full, for example array<mixed, mixed>|null instead of array|null.
  • The result cache is now invalidated when a migration, a language file or a model changes, and only the files that depend on it are analysed again.
  • The schema cache format changed, so the schema is rebuilt once after upgrading.

Fixed

  • Fall back to the @property tags of an entity for a property that the extension cannot type (#53).

Full Changelog: CodeIgniter/phpstan-codeigniter@v2.3.0...v2.4.0

v2.3.0

What's Changed

Added

  • Add return type extensions for lang() and Language::getLine() that narrow to string or list<string> (non-empty where known) from the language files.
  • Add LanguageLineExistenceRule to report a language line that no locale defines, and, with codeigniter.reportUntranslatedLanguageLines, a line that a supported locale lacks.
  • Add a return type extension for dot_array_search() that returns the leaf type of a constant array shape for a constant index.
  • Add a return type extension for env() that returns bool|string|null joined with the default type.
  • Narrow IncomingRequest::getJsonVar() for a null or array index.
  • Add ModelWriteAllowedFieldsRule to report a key passed to insert(), update() or save() that is not in the model's $allowedFields.
  • Add FactoriesStaticMethodArgumentTypeRule to validate the alias passed to Factories::config(), Factories::models() and Factories::get().

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

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.

... (truncated)

Changelog

Sourced from codeigniter/phpstan-codeigniter's changelog.

2.4.0 - 2026-11-20

Added

  • Add CastHandlerRule to report a $casts entry of an entity or model that has no handler (codeigniter.castHandlerNotRegistered), a handler class that does not exist (codeigniter.castHandlerNotFound) and a handler that implements neither CastInterface (codeigniter.castHandlerInvalid).
  • Add MigrationNotAppliedRule to report a migration that failed on the SQLite schema connection (codeigniter.migrationNotApplied). A migration pinned to another database group is not reported.

Changed

  • Unknown column, row field, cast element and entity property types are now an explicit mixed, so checkImplicitMixed: true no longer reports their uses (#54). They print in full, for example array<mixed, mixed>|null instead of array|null.
  • The result cache is now invalidated when a migration, a language file or a model changes, and only the files that depend on it are analysed again.
  • The schema cache format changed, so the schema is rebuilt once after upgrading.

Fixed

  • Fall back to the @property tags of an entity for a property that the extension cannot type (#53).

2.3.0 - 2026-11-19

Added

  • Add return type extensions for lang() and Language::getLine() that narrow to string or list<string> (non-empty where known) from the language files.
  • Add LanguageLineExistenceRule to report a language line that no locale defines, and, with codeigniter.reportUntranslatedLanguageLines, a line that a supported locale lacks.
  • Add a return type extension for dot_array_search() that returns the leaf type of a constant array shape for a constant index.
  • Add a return type extension for env() that returns bool|string|null joined with the default type.
  • Narrow IncomingRequest::getJsonVar() for a null or array index.
  • Add ModelWriteAllowedFieldsRule to report a key passed to insert(), update() or save() that is not in the model's $allowedFields.
  • Add FactoriesStaticMethodArgumentTypeRule to validate the alias passed to Factories::config(), Factories::models() and Factories::get().

2.2.3 - 2026-11-09

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.

2.2.2 - 2026-11-04

Fixed

  • Suggest single_service() for superglobals reads so that they fetch the live value. Auto-fixing now also considers the variable context so that a fix does not crash PHP.

2.2.1 - 2026-11-04

Changed

  • Support PHPStan's extension attributes natively. This requires PHPStan v2.3.5.

2.2.0 - 2026-10-06

Added

... (truncated)

Commits
  • 9169f4e Prepare changelog for v2.4.0
  • 3522cd9 Track schema, language and model files in the result cache
  • 90f37b6 Report migrations that failed on the schema connection
  • 390ee22 Add CastHandlerRule
  • a5775a5 Use explicit mixed for genuinely unknown types
  • 2efc864 Fall back to @property tags for untyped entity properties
  • 2c43b39 Re-point the README to util_bootstrap.php
  • b939335 Add FactoriesStaticMethodArgumentTypeRule
  • cbf4688 Add ModelWriteAllowedFieldsRule
  • b8723c6 Narrow getJsonVar() for null and array indexes
  • 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.4.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.4.0)

---
updated-dependencies:
- dependency-name: codeigniter/phpstan-codeigniter
  dependency-version: 2.4.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 Nov 23, 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