Skip to content

Releases: CodeIgniter/phpstan-codeigniter

v1.1.3

11 Sep 07:56
v1.1.3
22e177d
Compare
Choose a tag to compare

Fixes 🔧

  • fix: wrong delete for remote branch

Full Changelog: v1.1.2...v1.1.3

v1.1.2

11 Sep 07:49
v1.1.2
6ea276e
Compare
Choose a tag to compare

Fixes 🔧

  • fix: add downgrade match rector
  • fix: delete remote branch

Full Changelog: v1.1.1...v1.1.2

v1.1.1

11 Sep 07:39
v1.1.1
eb2472a
Compare
Choose a tag to compare

Fixes 🔧

  • fix: add downgrade rule for nullsafe operator

Full Changelog: v1.1.0...v1.1.1

v1.1.0

11 Sep 07:12
v1.1.0
bd85f72
Compare
Choose a tag to compare

What's Changed

  • Bump actions/checkout from 3 to 4 by @dependabot in #4
  • feature: added possibility to downgrade releases

New Contributors

Full Changelog: v1.0.1...v1.1.0

v1.0.1

30 Aug 06:37
v1.0.1
de64b5e
Compare
Choose a tag to compare

Fixes 🔧

  • Add changelog
  • Fix wrong namespace of tests
  • Add missing trailing comma

v1.0.0

27 Aug 09:28
v1.0.0
2c6eebd
Compare
Choose a tag to compare

Initial release

This PHPStan extension provides the following features:

Type Inference

  • Provides precise return types for config() and model() functions.
  • Provides precise return types for service() and single_service() functions.

Rules

  • Checks if the string argument passed to config() or model() function is a valid class string extending CodeIgniter\Config\BaseConfig or CodeIgniter\Model, respectively. This can be turned off by setting codeigniter.checkArgumentTypeOfFactories: false in your phpstan.neon.
  • Checks if the string argument passed to service() or single_service() function is a valid service name. This can be turned off by setting codeigniter.checkArgumentTypeOfServices: false in your phpstan.neon.
  • Disallows instantiating cache handlers using new and suggests using the CacheFactory class instead.
  • Disallows instantiating FrameworkException classes using new.
  • Disallows direct re-assignment or access of $_SERVER and $_GET and suggests using the Superglobals class instead.