Skip to content

Bump phpstan/phpstan from 2.1.40 to 2.2.2 - #99

Merged
Jason Johnston (jasonjoh) merged 2 commits into
mainfrom
dependabot/composer/phpstan/phpstan-2.2.2
Jun 19, 2026
Merged

Jason Johnston (jasonjoh) merged 2 commits into
mainfrom
dependabot/composer/phpstan/phpstan-2.2.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jun 8, 2026
@github-actions
github-actions Bot enabled auto-merge June 8, 2026 02:43
@jasonjoh

Copy link
Copy Markdown
Member

Copilot fix this build issue

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-version: 2.2.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/composer/phpstan/phpstan-2.2.2 branch from bf33561 to ccd92c2 Compare June 19, 2026 20:11
auto-merge was automatically disabled June 19, 2026 20:12

Head branch was pushed to by a user without write access

Copilot AI commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Copilot fix this build issue

PHPStan 2.2.2 was reporting that the $progress closures in LargeFileUpload.php didn't match the expected type callable(array{int, int}): void. The arrow functions fn($prog) => print(...) had two issues:

  1. Untyped $prog parameter (inferred as mixed)
  2. Return value of 1 from print instead of void

Fixed both occurrences by converting to typed closures with an explicit array parameter type and void return type. Commit: the latest push to this branch.

@jasonjoh
Jason Johnston (jasonjoh) merged commit 856cf83 into main Jun 19, 2026
4 checks passed
@jasonjoh
Jason Johnston (jasonjoh) deleted the dependabot/composer/phpstan/phpstan-2.2.2 branch June 19, 2026 20:14
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