PackageTrack
Sign in Get early access

cakedc/cakephp-phpstan

CakePHP plugin extension for PHPStan.

4.3.0 950K downloads/mo #2970 most downloaded on Packagist CakeDC/cakephp-phpstan

What this package is like to depend on

Last release 3 months ago

21 May 2026

Release timing varies

gaps range from 3 weeks to 1.7 years

Some releases are documented

notes for 10 of 17 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

17 releases · first in 2020

4 releases in the last 12 months

see the full history below

Release timeline

17 releases · May 2020 to May 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 17
  1. 4.3.0 21 May 2026
    Release notes

    What's Changed

    • Narrow Cake\ORM\Association::find() return to SelectQuery by @dereuromark in #68

    Full Changelog: 4.2.0...4.3.0

    Open source →
  2. 4.2.0 10 Apr 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 4.1.1...4.2.0

    Open source →
    Release notes

    New Features

    • SelectQueryFindListReturnTypeExtension: Provides proper return type inference for find('list')->toArray(), returning array<int|string, string> instead of the generic entity array type. Works with chained queries (where(), orderBy(), limit(), etc.).
    • groupField support for find('list'): When groupField is provided to find('list'), the return type is correctly inferred as array<int|string, array<int|string, string>>.
    • Custom application namespace: Support for defining a custom application namespace via the cakeDC.appNamespace configuration parameter (defaults to App).

    Improvements

    • Made constructor dependency in rules/extensions optional to preserve backwards compatibility; instances self-instantiate if none is provided.
    Open source →
  3. 4.1.1 13 Nov 2025
    Release notes

    What's Changed

    Full Changelog: 4.1.0...4.1.1

    Open source →
    Release notes

    Improvements

    • DisallowEntityArrayAccessRule: ignore custom (non-integer) array access keys, allowing legitimate use cases.
    Open source →
  4. 4.1.0 12 Oct 2025
    Release notes

    What's Changed

    Full Changelog: 4.0.0...4.1.0

    Open source →
    Release notes

    New Features

    • Added ControllerMethodMustBeUsedRule: enforces that render() and redirect() must be used (returned or assigned) to prevent unreachable code.
    Open source →
  5. 4.0.0 11 Nov 2024
    Release notes

    What's Changed

    Full Changelog: 3.2.0...4.0.0

    Open source →
    Release notes

    Breaking Changes

    • Requires CakePHP 5.x and PHPStan 2.x.
    Open source →
  6. 3.2.0 21 Oct 2024
    Release notes

    What's Changed

    • Update composer.json by @dereuromark in #34
    • Feature/expression type resolver extension by @rochamarcelo in #36
      • New extension to handle trait's method Cake\Mailer\MailerAwareTrait::getMailer
      • New extension to handle trait's method Cake\ORM\Locator\LocatorAwareTrait::fetchTable
      • PHPQA fixes, errors found on a clean install
    • New rules by @rochamarcelo in #38
      • Added optional rule DisallowEntityArrayAccessRule
      • Aded rule GetMailerExistsClassRule
      • Added rule LoadComponentExistsClassRule
      • Updated doc with new rules
      • Fixed code to ignore the rule LoadObjectExistsCakeClassRule when target class is not from a value we can extract

    Full Changelog: 3.1.2...3.2.0

    Open source →
  7. 3.1.2 27 Feb 2024
    Release notes

    What's Changed

    Full Changelog: 3.1.1...3.1.2

    Open source →
  8. 3.1.1 23 Feb 2024
    Release notes

    What's Changed

    Full Changelog: 3.1.0...3.1.1

    Open source →
  9. 3.1.0 22 Feb 2024
    Release notes

    What's Changed

    • Feature/fetch table with default table by @rochamarcelo in #19
      • Check defined $defaultTable when calling LocatorAwareTrait::fetchTable without arguments
      • For controllers when calling fetchTable without arguments and not defined custom $defaultTable try to detect the table based on the Controller's className
      • Fixed console helper extension to use ucfirst as is done in the method ConsoleIo::helper
    • Update README.md by @steinkel in #23
    • Add license file and fix readme links by @steinkel in #24
    • Update README.md by @dereuromark in #21
    • Update ci.yml to add php8.3 by @steinkel in #25
    • Update README.md by @dereuromark in #26
    • Improve return types for Table methods by @rochamarcelo in #27
    • Feature/cakephp rules 001 by @rochamarcelo in #28
      • Added rule AddAssociationExistsTableClassRule
      • Added rule AddAssociationMatchOptionsTypesRule
      • Added rule AddBehaviorExistsClassRule
      • Added rule OrmSelectQueryFindMatchOptionsTypesRule
      • Added rule TableGetMatchOptionsTypesRule
      • Added extension to fix intersection phpDoc for associations

    New Contributors

    Full Changelog: 3.0.1...3.1.0

    Open source →
  10. 3.0.1 28 Sep 2023

    Nothing published for this version

  11. 3.0.0 26 Sep 2023

    Nothing published for this version

  12. 2.1.0 23 Oct 2024
    Release notes

    What's Changed

    • Backport of TableAssociationTypeNodeResolverExtension for cakephp 4 by @Harfusha in #37

    New Contributors

    Full Changelog: 2.0.1...2.1.0

    Open source →
  13. 2.0.1 27 Dec 2021

    Nothing published for this version

  14. 2.0.0 02 Nov 2021

    Nothing published for this version

  15. 1.0.2 06 Oct 2021

    Nothing published for this version

  16. 1.0.1 25 May 2020

    Nothing published for this version

  17. 1.0.0 24 May 2020

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive