Skip to content

Update dependency phpstan/phpstan to v2 - #1122

Merged
colinodell merged 2 commits into
2.8from
renovate/major-phpstan-packages
Jul 11, 2026
Merged

Update dependency phpstan/phpstan to v2#1122
colinodell merged 2 commits into
2.8from
renovate/major-phpstan-packages

Conversation

@renovate

@renovate renovate Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
phpstan/phpstan ^1.8.2^1.8.2 || ^2.0.0 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

phpstan/phpstan-phar-composer-source (phpstan/phpstan)

v2.2.5

Compare Source

v2.2.4

Compare Source

v2.2.3

Compare Source

v2.2.2

Compare Source

v2.2.1

Compare Source

v2.2.0

Compare Source

v2.1.56

Compare Source

v2.1.55

Compare Source

v2.1.54

Compare Source

v2.1.53

Compare Source

v2.1.52

Compare Source

v2.1.51

Compare Source

v2.1.50

Compare Source

v2.1.49

Compare Source

v2.1.48

Compare Source

v2.1.47

Compare Source

v2.1.46

Compare Source

v2.1.45

Compare Source

v2.1.44

Compare Source

v2.1.43

Compare Source

v2.1.42

Compare Source

v2.1.41

Compare Source

v2.1.40

Compare Source

v2.1.39

Compare Source

v2.1.38

Compare Source

v2.1.37

Compare Source

v2.1.36

Compare Source

v2.1.35

Compare Source

v2.1.34

Compare Source

v2.1.33

Compare Source

v2.1.32

Compare Source

v2.1.31

Compare Source

v2.1.30

Compare Source

v2.1.29

Compare Source

v2.1.28

Compare Source

v2.1.27

Compare Source

v2.1.26

Compare Source

v2.1.25

Compare Source

v2.1.24

Compare Source

v2.1.23

Compare Source

v2.1.22

Compare Source

v2.1.21

Compare Source

v2.1.20

Compare Source

v2.1.19

Compare Source

v2.1.18

Compare Source

v2.1.17

Compare Source

v2.1.16

Compare Source

v2.1.15

Compare Source

v2.1.14

Compare Source

v2.1.13

Compare Source

v2.1.12

Compare Source

v2.1.11

Compare Source

v2.1.10

Compare Source

v2.1.9

Compare Source

v2.1.8

Compare Source

v2.1.7

Compare Source

v2.1.6

Compare Source

v2.1.5

Compare Source

v2.1.4

Compare Source

v2.1.3

Compare Source

v2.1.2

Compare Source

v2.1.1

Compare Source

v2.1.0

Compare Source

v2.0.4

Compare Source

v2.0.3

Compare Source

v2.0.2

Compare Source

v2.0.1

Compare Source

v2.0.0

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-phpstan-packages branch from 298da79 to 5acad98 Compare June 22, 2026 05:05
@renovate renovate Bot changed the title Update PHPStan packages to v2 Update PHPStan packages (major) Jun 22, 2026
@renovate renovate Bot changed the title Update PHPStan packages (major) Update dependency phpstan/phpstan to v2 Jun 25, 2026
PHPStan 2 interprets our Psalm annotations (@psalm-readonly,
@psalm-readonly-allow-private-mutation, and @psalm-pure) as its own
stricter equivalents, so ignore those identifiers, and disable
treatPhpDocTypesAsCertain since our assert() calls exist to help Psalm
narrow types PHPStan already knows about.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AH6WpH9fRWZfJGMQstmnsi
@renovate

renovate Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s PHPStan setup for compatibility with PHPStan v2, including removing/adjusting PHPStan suppressions and tuning PHPStan configuration to match the project’s existing Psalm-oriented annotation patterns.

Changes:

  • Bumped phpstan/phpstan dev dependency to ^2.0.0.
  • Removed or refined PHPStan suppression comments and improved type annotations for PHPStan v2.
  • Updated phpstan.neon.dist with additional configuration and ignored identifiers to account for stricter checks in v2.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Xml/XmlRenderer.php Removes a PHPStan ignore comment around a defensive InvalidArgumentException throw.
src/Util/HtmlElement.php Removes an inline PHPStan ignore comment in setContents().
src/Parser/Cursor.php Tightens array PHPDoc from string[] to list<string> for multibyte splitting.
src/Extension/TableOfContents/TableOfContentsGenerator.php Simplifies fragment-prefix normalization logic.
src/Extension/Mention/Generator/CallbackGenerator.php Refactors callback result handling to satisfy static analysis expectations.
src/Delimiter/DelimiterStack.php Removes a PHPStan ignore on the SplObjectStorage assignment.
phpstan.neon.dist Adds PHPStan v2-oriented configuration and additional ignored identifiers.
composer.json Updates phpstan/phpstan constraint to ^2.0.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Util/HtmlElement.php
Comment on lines 112 to +114
public function setContents($contents): self
{
$this->contents = $contents ?? ''; // @phpstan-ignore-line
$this->contents = $contents ?? '';
Comment thread composer.json
Comment on lines 41 to 43
"nyholm/psr7": "^1.5",
"phpstan/phpstan": "^1.8.2",
"phpstan/phpstan": "^2.0.0",
"phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0",
@colinodell
colinodell merged commit f7310a3 into 2.8 Jul 11, 2026
30 of 33 checks passed
@colinodell
colinodell deleted the renovate/major-phpstan-packages branch July 11, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants