Skip to content

Releases: raul338/cakephp-phpstan-extensions

5.0.0

Choose a tag to compare

@raul338 raul338 released this 13 Feb 02:13

Release for cakephp 5.0

Full Changelog: 4.0.0...5.0.0

4.0.1

Choose a tag to compare

@raul338 raul338 released this 13 Feb 02:13

Require php version up to 8.3

Full Changelog: 4.0.0...4.0.1

4.0.0

Choose a tag to compare

@raul338 raul338 released this 13 Feb 01:40

Require phpstan ^2.0

Full Changelog: 3.0.1...4.0.0

3.0.1

Choose a tag to compare

@raul338 raul338 released this 21 Sep 02:53

Allow installs on php 8.x

CakePHP 4.x

Choose a tag to compare

@raul338 raul338 released this 15 Sep 22:14

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

Choose a tag to compare

@raul338 raul338 released this 25 Mar 02:35

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

Choose a tag to compare

@raul338 raul338 released this 25 Mar 03:47

Backport from 2.1.0