diff --git a/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php b/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php index d07c425ea54..4bd3e8bbab4 100644 --- a/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php +++ b/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php @@ -19,7 +19,7 @@ class DrupalLogErrorTest extends UnitTestCase { * * @dataProvider provideFatalExitCodeData */ - public function testFatalExitCode(string $script, string $output, string $errorOutput, bool $processIsSuccessful) { + public function testFatalExitCode(string $script, string $output, string $errorOutput, bool $processIsSuccessful): void { // We need to override the current working directory for invocations from // run-tests.sh to work properly. $process = new PhpProcess($script, $this->root); @@ -32,9 +32,9 @@ class DrupalLogErrorTest extends UnitTestCase { $this->assertSame($processIsSuccessful, $process->isSuccessful()); } - public function provideFatalExitCodeData() { + public function provideFatalExitCodeData(): array { $verbose = "\$GLOBALS['config']['system.logging']['error_level'] = 'verbose';"; - $scriptBody = $this->getScriptBody(); + $scriptBody = self::getScriptBody(); $data['normal'] = [ "