- Issue created by @nicxvan
- πΊπΈUnited States nicxvan
Not sure what I'm missing, but there are errors, there were a lot of changes. I tried using static, and using the class directly like I've done in projects and it still fails.
- πΊπΈUnited States nicxvan
I didn't want to create the MR cause all of the batch tests fail, I'll create it so you can see though.
- π·πΊRussia zniki.ru
I install batch_test module on local and visit batch-test/no-form. Here the error.
'Fatal error: A void function must not return a value in /var/www/html/core/modules/system/tests/modules/batch_test/src/BatchTestHelper.php on line 244' - πΊπΈUnited States nicxvan
Thank you so much! I knew I was missing something obvious!
- π¬π§United Kingdom catch
Went to commit this, however phpstan isn't happy. Not sure why this didn't show up in the pipeline.
FILE: ...al/core/modules/system/tests/modules/batch_test/src/BatchTestCallbacks.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 194 | WARNING | t() calls should be avoided in classes, use | | \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead --------------------------------------------------------------------------------
- πΊπΈUnited States nicxvan
That is weird, I ran the baseline locally and it didn't show up.
I added string translation trait and rebased.
- πΊπΈUnited States nicxvan
Failure is on head, I can rebase once π Move helpers in ajax_forms_test.module and delete it Needs work is in.