- Issue created by @pacproduct
- Merge request !1Fix webform_id type in setWebform's docblock + minor comment typos. → (Open) created by pacproduct
- Status changed to Needs review
11 months ago 1:54pm 23 January 2024
Function WebformQuery::setWebform() waits for an int (for parameter $webform_id
) as first argument, according to its docblock.
This makes PHPStan fail when checking code quality:
> ./vendor/bin/phpstan
Note: Using configuration file /var/www/phpstan.neon.
51/51 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ --------------------------------------------------------------------------------------------------------------------
Line [...]/MyModuleCommands.php
------ --------------------------------------------------------------------------------------------------------------------
89 Parameter #1 $webform_id of method Drupal\webform_query\WebformQuery::setWebform() expects int|null, string given.
------ --------------------------------------------------------------------------------------------------------------------
[ERROR] Found 1 error
Document this function as expecting a string.
Needs review
Code