Repository navigation
Releases: raul338/cakephp-phpstan-extensions
Releases · raul338/cakephp-phpstan-extensions
Release list
5.0.0
4.0.1
Require php version up to 8.3
Full Changelog: 4.0.0...4.0.1
4.0.0
Require phpstan ^2.0
Full Changelog: 3.0.1...4.0.0
3.0.1
CakePHP 4.x
Highligts
- Adds support for CakePHP 4.x
- Use phpunit with phpstan tests
Breaking Changes
- Drop support for loadModel(), use cakephp-ide-helper instead
- Drop support for query function used as getter/setters
2.1.0 - Detect Behaviors methods on Tables
This only works if the method name is not modified in implementedMethods. Otherwise the analysis may be wrong, or
you'll have to decorate your code with dockblocks
/**
* @mixin \Cake\ORM\Behavior\TimestampBehavior
*/
public class UsersTable extends Table
{
public function initialize(array $config)
{
parent::initialize($config);
$this->addBehavior('Timestamp');
}
}
// somewhere else - phpstan will know its the Timestamp touch method
$this->Users->touch($user);1.1.0: Detect Behaviors methods on Tables
Backport from 2.1.0