Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cakephp/cakephp-codesniffer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.x
Choose a base ref
...
head repository: cakephp/cakephp-codesniffer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6.x
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 12 files changed
  • 3 contributors

Commits on Feb 6, 2026

  1. Add stricter naming convention sniffs for CakePHP 6.x

    - Update ValidFunctionNameSniff to flag underscore-prefixed protected/private
      methods (except Entity accessor/mutator pattern _get*, _set*)
    - Add ValidPropertyNameSniff to flag underscore-prefixed properties
    - Remove PSR2.Classes.PropertyDeclaration.Underscore exclusion from ruleset
    - Add new Slevomat sniffs:
      - RequireNullCoalesceEqualOperator
      - RequireNullSafeObjectOperator
      - RequireSelfReference
      - NullTypeHintOnLastPosition
    - Fix $_magicMethods property naming in sniff itself
    - Add T_ENUM support to ValidFunctionNameSniff
    dereuromark committed Feb 6, 2026
    Configuration menu
    Copy the full SHA
    be92b75 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a99825 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6446baa View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2026

  1. Configuration menu
    Copy the full SHA
    9cf1618 View commit details
    Browse the repository at this point in the history
  2. Allow enum suffix omission when in Enum namespace (#428)

    Relax the ValidEnumNameSniff to allow omitting the "Enum" suffix when
    the enum is in a namespace containing "Enum" as a segment (e.g.,
    `App\Model\Enum\Status` is now valid without the suffix).
    
    This avoids redundant naming like `App\Model\Enum\FooBarEnum`.
    
    Refs #425
    dereuromark authored Mar 14, 2026
    Configuration menu
    Copy the full SHA
    1950643 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #427 from cakephp/fix-void-null-type-order-conflict

    Fix conflict between TypeHintSniff and Slevomat null position sniffs
    dereuromark authored Mar 14, 2026
    Configuration menu
    Copy the full SHA
    a747422 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2026

  1. Disallow partial uses in ReferenceUsedNamesOnly (#431)

    Partial namespace references like Mockery\MockInterface were not being
    flagged by ReferenceUsedNamesOnly because Slevomat's allowPartialUses
    defaults to true. Set it to false so such references are required to be
    imported via a use statement.
    dereuromark authored Apr 11, 2026
    Configuration menu
    Copy the full SHA
    c8f3c35 View commit details
    Browse the repository at this point in the history
Loading