Skip to content

Conversation

dpi
Copy link
Contributor

@dpi dpi commented Aug 4, 2025

This will get one extra test green.

There are plenty of other issues emitted by actual non-stub Drupal core code.

  1. mglaman\PHPStanDrupal\Tests\StubTest::testValid array (
    0 =>
    array (
    'message' => 'Deprecated in PHP 8.4: Parameter Theme *.theme files are not autoloaded #2 $account (Drupal\Core\Session\AccountInterface) is implicitly nullable via default value null.',
    'file' => 'SNIP/phpstan-drupal/src/Drupal/../../stubs/Drupal/Core/Access/AccessibleInterface.stub',

This will get one extra test green.

There are plenty of other issues emitted by actual non-stub Drupal core code.

2) mglaman\PHPStanDrupal\Tests\StubTest::testValid
array (
  0 =>
  array (
    'message' => 'Deprecated in PHP 8.4: Parameter mglaman#2 $account (Drupal\\Core\\Session\\AccountInterface) is implicitly nullable via default value null.',
    'file' => '/Users/dpi/Code/phpstan-drupal/src/Drupal/../../stubs/Drupal/Core/Access/AccessibleInterface.stub',
@dpi dpi changed the title Fix Implicitly marking parameter on PHP 8.4 Fix implicit nullable parameter on PHP 8.4 Aug 4, 2025
@mglaman mglaman merged commit 0328209 into mglaman:main Aug 4, 2025
15 of 17 checks passed
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