Skip to content

Conversation

@Hug0-Drelon
Copy link
Member

@Hug0-Drelon Hug0-Drelon commented Nov 3, 2025

What?

  • Update szepeviktor/phpstan-wordpress.
  • Align PHP requirements to dependencies (especially szepeviktor/phpstan-wordpress).
  • Fix Call to undefined method AccessoryArrayListType::intersectWith fatal error with PHPStan > 2.0.
  • Fix src/GuessTypeFromSwitcherAttributes.php and src/ModelLanguagesGetListDynamicMethodReturnTypeExtension.php, avoid using instance of and use PHPStan API instead (error raised in PHPUnit)
  • Require PHP > 8.0 (see why bellow)

Why?

Benefit from szepeviktor/phpstan-wordpress new gems and PHPStan 2.

Warning

Running PHPUnit tests with PHP 7.4 doesn't work anymore because php-stubs/wordpress-stubs now have #[\SensitiveParameter] added to some methods in a single line, which break PHPUnit (see).

@Hug0-Drelon Hug0-Drelon self-assigned this Nov 3, 2025
@Chouby Chouby merged commit dc3c36c into master Nov 5, 2025
2 checks passed
@Chouby Chouby deleted the bump-dependencies branch November 5, 2025 16:05
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.

4 participants