Skip to content

Bump the phpstan group across 1 directory with 4 updates - #121

Merged
xificurk merged 2 commits into
masterfrom
dependabot/composer/phpstan-9d4f2fa508
Nov 11, 2026
Merged

xificurk merged 2 commits into
masterfrom
dependabot/composer/phpstan-9d4f2fa508

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Updates the requirements on phpstan/phpstan-strict-rules, spaze/phpstan-disallowed-calls, shipmonk/phpstan-rules and phpstan/phpstan-phpunit to permit the latest version.
Updates phpstan/phpstan-strict-rules to 2.1.1

Release notes

Sourced from phpstan/phpstan-strict-rules's releases.

2.1.1

Commits

Updates spaze/phpstan-disallowed-calls to 4.15.0

Release notes

Sourced from spaze/phpstan-disallowed-calls's releases.

More class usages reported and labelled by what they are, property hook fixes

New

  • More usages of classes, interfaces, enums and traits disallowed with disallowedClasses or disallowedNamespaces are reported: instanceof, first-class callables like Foo::bar(...), DNF types like (A&B)|null, types of class constants, and interfaces extended by interfaces or implemented by enums (#444)
  • Disallowed names are labelled by what they are, Class, Interface (with the new disallowed.interface identifier), Enum or Trait, also in static calls, extends and implements, which said Namespace before; only use imports keep Namespace because they can also import a namespace (#440, #443 - possible BC break)
  • Property hooks are treated like methods by the attribute-based directives: an attribute placed on a hook counts as used in the hook, and allowInClassWithMethodAttributes sees attributes on hooks; matching hooks by name like Foo::$bar::get() in allowInMethods is now documented (#441, #445)

Bugfixes

  • A disallowed enum case or constant like Suit::Hearts was reported twice, as a class and as an enum, now it's reported once as Enum (#440)
  • A disallowed item used in a property hook crashed the analysis with ReflectionException when the config had allowInMethodsWithAttributes, allowExceptInMethodsWithAttributes or their aliases (#441)
  • A disallowed item used in a named function declared inside another function or method caused "Reflection error" with the same directives, and the rest of the file wasn't analysed (#442)
  • self::, static:: and parent:: calls aren't reported as Namespace self is forbidden. anymore when a wildcard pattern happens to match them (#443)
  • str_contains() isn't used anymore, it doesn't exist on PHP 7.4 (#436)

Internal changes

  • No errors with PHPStan 2.3, which analyses for the lowest PHP version in composer.json (#439)
  • Testing on PHP 8.6 (#438)
  • PHPStan1Compatibility renamed to PHPStanCompatibility, because it covers older PHPStan 2.x versions too (#441)
  • The e2e workflow follows the moved monorepo dev tools (#437)

Possible BC break note: messages and identifiers changed for static calls, extends and implements (Namespace/disallowed.namespace is now Class, Interface, Enum or Trait), for interfaces and traits anywhere else (Class/disallowed.class is now Interface/disallowed.interface or Trait/disallowed.trait), and for enums in type declarations (Class is now Enum). The duplicate Class error for enum cases and constants is gone. If you match these errors in ignoreErrors or a baseline, they may need updating, and the newly reported usages can add errors.

Commits
  • 3880759 Treat property hooks like methods in attribute-based allow directives, docume...
  • 0a2d351 Document matching property hooks by name in allowInMethods
  • 268b497 Count attributes on property hooks for allowInClassWithMethodAttributes
  • 667bd33 Treat attributes placed on property hooks like attributes on methods
  • 67c6c2c Report class usages in instanceof, first-class callables, DNF types, typed ...
  • 6f05f0d Report class and enum usages in types of class constants
  • 92da14a Report class and enum usages in DNF types
  • 01b7406 Report class and enum usages in static first-class callables
  • 4b65f1b Report interfaces extended by interfaces and implemented by enums
  • 8caecae Report class and enum usages in instanceof
  • Additional commits viewable in compare view

Updates shipmonk/phpstan-rules to 4.4.1

Release notes

Sourced from shipmonk/phpstan-rules's releases.

4.4.1

Fixes:

  • forbidCheckedExceptionInCallable: resolve static call caller type from expressions (#368, @​maryo)
  • requirePreviousExceptionPass: accept exception passed to nested call (#369)
Commits
  • 67e54e4 RequirePreviousException: accept exception passed to nested call (#369)
  • f72b888 ForbidCheckedExceptionInCallable: resolve static call caller type from expres...
  • 96b9344 Update coverage-guard, ignore LogicException throws in coverage (#367)
  • 15ab1a6 Adopt new shipmonk/coding-standard custom sniffs (#366)
  • 67ad42b Add MIT license file (#365)
  • 9b87e45 Use never return type in ThrowingSourceLocator (#363)
  • 5c972b1 Upgrade shipmonk/dead-code-detector to ^1.0 (#357)
  • 2aedccb Upgrade to PHPUnit 10 (#362)
  • 638b024 Drop support for PHP < 8.1 (#361)
  • 5ff13f6 allowComparingOnlyComparableTypes: add support for BcMath\Number (#360)
  • Additional commits viewable in compare view

Updates phpstan/phpstan-phpunit to 2.1.1

Release notes

Sourced from phpstan/phpstan-phpunit's releases.

2.1.1

  • 8d16b84 - AssertEmptyIsDiscouragedRule is auto-fixable (#342)
  • b73700a - Make AssertSameWithCountRule auto-fixable (#259)
  • ac3237e - Skip named and unpack arguments when autofixing
Commits
  • 8d16b84 AssertEmptyIsDiscouragedRule is auto-fixable (#342)
  • b73700a Make AssertSameWithCountRule auto-fixable (#259)
  • ac3237e Skip named and unpack arguments when autofixing
  • a31e9de Merge remote-tracking branch 'origin/2.0.x' into 2.1.x
  • 626549b Merge pull request #336 from phpstan/renovate/github-actions
  • ca0a5ae Update github-actions
  • c38f716 Merge 2.0.x into 2.1.x
  • 0d17121 AssertEmptyIsDiscouragedRule: use unique error identifier
  • 8dbdc3a AssertEmptyIsDiscouragedRule: use unique error identifier
  • 414a487 feat: Discourage assert(Not)Empty if "empty" usage is disallowed (#325)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Nov 1, 2026
@xificurk

Copy link
Copy Markdown
Contributor

@dependabot rebase

Updates the requirements on [phpstan/phpstan-strict-rules](https://github.com/phpstan/phpstan-strict-rules), [spaze/phpstan-disallowed-calls](https://github.com/spaze/phpstan-disallowed-calls), [shipmonk/phpstan-rules](https://github.com/shipmonk-rnd/phpstan-rules) and [phpstan/phpstan-phpunit](https://github.com/phpstan/phpstan-phpunit) to permit the latest version.

Updates `phpstan/phpstan-strict-rules` to 2.1.1
- [Release notes](https://github.com/phpstan/phpstan-strict-rules/releases)
- [Commits](phpstan/phpstan-strict-rules@2.0.12...2.1.1)

Updates `spaze/phpstan-disallowed-calls` to 4.15.0
- [Release notes](https://github.com/spaze/phpstan-disallowed-calls/releases)
- [Commits](spaze/phpstan-disallowed-calls@v4.14.0...v4.15.0)

Updates `shipmonk/phpstan-rules` to 4.4.1
- [Release notes](https://github.com/shipmonk-rnd/phpstan-rules/releases)
- [Commits](shipmonk-rnd/phpstan-rules@4.3.7...4.4.1)

Updates `phpstan/phpstan-phpunit` to 2.1.1
- [Release notes](https://github.com/phpstan/phpstan-phpunit/releases)
- [Commits](phpstan/phpstan-phpunit@2.0.19...2.1.1)

---
updated-dependencies:
- dependency-name: phpstan/phpstan-phpunit
  dependency-version: 2.1.1
  dependency-type: direct:development
  dependency-group: phpstan
- dependency-name: phpstan/phpstan-strict-rules
  dependency-version: 2.1.0
  dependency-type: direct:development
  dependency-group: phpstan
- dependency-name: shipmonk/phpstan-rules
  dependency-version: 4.4.1
  dependency-type: direct:development
  dependency-group: phpstan
- dependency-name: spaze/phpstan-disallowed-calls
  dependency-version: 4.15.0
  dependency-type: direct:development
  dependency-group: phpstan
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title Bump the phpstan group with 4 updates Bump the phpstan group across 1 directory with 4 updates Nov 11, 2026
@dependabot
dependabot Bot force-pushed the dependabot/composer/phpstan-9d4f2fa508 branch from 51635bd to 240f4c4 Compare November 11, 2026 05:58
4.4.x requires PHP ^8.1, the package still supports PHP 7.4 and 8.0.

Co-Authored-By: Claude Code
@xificurk
xificurk merged commit 2b93d40 into master Nov 11, 2026
20 checks passed
@xificurk
xificurk deleted the dependabot/composer/phpstan-9d4f2fa508 branch November 11, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant