Skip to content

Bump spaze/phpstan-disallowed-calls from 4.8.0 to 4.10.0#1002

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/composer/spaze/phpstan-disallowed-calls-4.10.0
Open

Bump spaze/phpstan-disallowed-calls from 4.8.0 to 4.10.0#1002
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/composer/spaze/phpstan-disallowed-calls-4.10.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 7, 2026

Bumps spaze/phpstan-disallowed-calls from 4.8.0 to 4.10.0.

Release notes

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

Can disallow global

Can disallow (some) keywords with disallowedKeywords, only global supported for now (#390)

parameters:
    disallowedKeywords:
        -
            keyword: 'global'
            allowIn:
                - 'legacy/*'

Built-in functions + definedIn fix take 2

This release includes a proper fix for the "defined in" checks originally fixed in 4.9.1. (#388)

As a necessary side effect, unknown functions (functions where their reflection is not available) won't be reported as disallowed anymore, if configured, by this extension as is the case with for example methods already.

Built-in functions + definedIn fix

  • Short-cut "defined in" checks for built-in functions and methods (#384) (Now they're not flagged anymore)

Internal changes

  • Mention properties in README (#380) (Hmm, naming the extension "disallowed calls" wasn't as clever as I though back then)
  • Fix --prefer-lowest installs PHPStan 2.x instead of 1.x (#382, thanks @​Copilot) Tests are now again running on PHPStan 1.x as well

Can disallow properties

Naming is hard, so that's why this Disallowed Calls extension now supports disallowing instance and static properties, and enum properties with disallowProperties (#378)

Other (mostly) internal changes

  • Add generics to Generator (#372)
  • Handle all the include types in the switch (#373)
  • Upgrade Dead Code Detector (#375, thanks @​janedbal)
  • Make the disallowedSuperglobals docs more clear that it doesn't recommend $_REQUEST (#377)

Oh, a Friday 13th release! 👻

Commits
  • 501b212 Can disallow (some) keywords, global for now (#390)
  • a7a3e6d Can disallow (some) keywords, global for now
  • cc78e77 Don't process the function name if the function reflection is not available (...
  • 3ed5553 The Dom\import_simplexml() is available only in PHP 8.4+ and wouldn't be flag...
  • 560f0ac Don't expect errors generated by mysql functions which do not exist anymore
  • b1f026f Add Foo\Bar\waldo() otherwise tests fail
  • 4c47a81 Don't process the function name if there's the function reflection is not ava...
  • 382dd9b Short-cut "defined in" checks for built-in functions and methods (#384)
  • d721abc Short-cut "defined in" checks for built-in functions and methods
  • f70f46d Fix --prefer-lowest installs PHPStan 2.x instead of 1.x (#382)
  • 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 Apr 7, 2026
@dependabot dependabot bot force-pushed the dependabot/composer/spaze/phpstan-disallowed-calls-4.10.0 branch from 7083a89 to 5cbc889 Compare April 14, 2026 05:41
Bumps [spaze/phpstan-disallowed-calls](https://github.com/spaze/phpstan-disallowed-calls) from 4.8.0 to 4.10.0.
- [Release notes](https://github.com/spaze/phpstan-disallowed-calls/releases)
- [Commits](spaze/phpstan-disallowed-calls@v4.8.0...v4.10.0)

---
updated-dependencies:
- dependency-name: spaze/phpstan-disallowed-calls
  dependency-version: 4.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/composer/spaze/phpstan-disallowed-calls-4.10.0 branch from 5cbc889 to 8b3e3f3 Compare April 15, 2026 04:12
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.

0 participants