Skip to content

Bump the phpstan group across 1 directory with 5 updates - #166

Merged
github-actions[bot] merged 1 commit into
masterfrom
dependabot/composer/phpstan-177ab70d98
Oct 31, 2026
Merged

github-actions[bot] merged 1 commit into
masterfrom
dependabot/composer/phpstan-177ab70d98

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

Commits

Updates phpstan/phpstan-strict-rules to 2.1.0

Release notes

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

2.1.0

Commits

Updates phpstan/phpstan-nette to 2.0.15

Release notes

Sourced from phpstan/phpstan-nette's releases.

2.0.15

  • b108419 - Declare ArrayHash offset methods in the stub
  • fbad840 - Detect getIterator() return type of ArrayHash by reflection
  • b2ec94f - Update github-actions (#226)
Commits
  • b108419 Declare ArrayHash offset methods in the stub
  • fbad840 Detect getIterator() return type of ArrayHash by reflection
  • b2ec94f Update github-actions (#226)
  • a524f3d Make ArrayHash stub generic (#225)
  • 7e40d51 Keep extensions for PHPDoc that states just object|array
  • d327469 Do not override getValues() return type described in PHPDoc
  • d85231c Update cbrgm/mastodon-github-action action to v2.2.5 (#223)
  • 454ce52 Update github-actions (#221)
  • 6913a02 Use stricter assertions in tests (#222)
  • be1b54a Fix nette build (#220)
  • Additional commits viewable in compare view

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)
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Oct 31, 2026
@coveralls

coveralls commented Oct 31, 2026 •

Copy link
Copy Markdown

Coverage Status

Coverage is 89.535% — dependabot/composer/phpstan-177ab70d98 into master. No base build found for master.

@xificurk

Copy link
Copy Markdown
Contributor

@dependabot rebase

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

Updates `phpstan/phpstan` to 2.3.3
- [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits)

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

Updates `phpstan/phpstan-nette` to 2.0.15
- [Release notes](https://github.com/phpstan/phpstan-nette/releases)
- [Commits](phpstan/phpstan-nette@2.0.11...2.0.15)

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.12.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.4.0...4.4.1)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-version: 2.3.3
  dependency-type: direct:development
  dependency-group: phpstan
- dependency-name: phpstan/phpstan-nette
  dependency-version: 2.0.15
  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 force-pushed the dependabot/composer/phpstan-177ab70d98 branch from b3d254a to 8bec45f Compare October 31, 2026 19:52
@github-actions
github-actions Bot merged commit 24bd115 into master Oct 31, 2026
42 checks passed
@dependabot
dependabot Bot deleted the dependabot/composer/phpstan-177ab70d98 branch October 31, 2026 19:54
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.

2 participants