CodeIgniter extensions and rules for PHPStan
MIT License
Bot releases are hidden (Show)
composer.json
to monitored pathsparallel-lint
to lint downgraded source (#16)codeigniter4/framework
to requireModel::find()
to base on framework behavior (#18)App
namespace (#13)Published by paulbalandan 12 months ago
Published by paulbalandan about 1 year ago
config()
and model()
) and instead suggests use the short form call.use Config\App;
// This call:
config (App::class);
// is suggested to be changed to
config('App');
Published by paulbalandan about 1 year ago
CodeIgniter\Model
's find()
, findAll()
, and first()
methods.CodeIgniter\Model
when asArray()
or asObject()
is called.Full Changelog: https://github.com/CodeIgniter/phpstan-codeigniter/compare/v1.2.0...v1.3.0
Published by paulbalandan about 1 year ago
fake()
helper function.Full Changelog: https://github.com/CodeIgniter/phpstan-codeigniter/compare/v1.1.3...v1.2.0
Published by paulbalandan about 1 year ago
Full Changelog: https://github.com/CodeIgniter/phpstan-codeigniter/compare/v1.1.2...v1.1.3
Published by paulbalandan about 1 year ago
Full Changelog: https://github.com/CodeIgniter/phpstan-codeigniter/compare/v1.1.1...v1.1.2
Published by paulbalandan about 1 year ago
Full Changelog: https://github.com/CodeIgniter/phpstan-codeigniter/compare/v1.1.0...v1.1.1
Published by paulbalandan about 1 year ago
Full Changelog: https://github.com/CodeIgniter/phpstan-codeigniter/compare/v1.0.1...v1.1.0
Published by paulbalandan about 1 year ago
Published by paulbalandan about 1 year ago
This PHPStan extension provides the following features:
config()
and model()
functions.service()
and single_service()
functions.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
.service()
or single_service()
function is a valid service name. This can be turned off by setting codeigniter.checkArgumentTypeOfServices: false
in your phpstan.neon
.new
and suggests using the CacheFactory
class instead.FrameworkException
classes using new.$_SERVER
and $_GET
and suggests using the Superglobals
class instead.