Skip to content
Snippets Groups Projects
Commit 19463925 authored by Eirik Morland's avatar Eirik Morland
Browse files

Issue #3477433 by eiriksm: New coder issues with new coder version

parent bc6c3950
No related branches found
No related tags found
1 merge request!11Update GitInfoTest.php
Pipeline #312098 failed
......@@ -2,10 +2,10 @@
namespace Drupal\Tests\git_info\Kernel;
use Drupal\block\Entity\Block;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceModifierInterface;
use Drupal\KernelTests\KernelTestBase;
use Drupal\block\Entity\Block;
use Symfony\Component\DependencyInjection\Reference;
/**
......
......@@ -23,7 +23,7 @@ class TestService extends GitInfo {
/**
* TestService constructor.
*/
public function __construct($git_command = 'git', StateInterface $state = NULL) {
public function __construct($git_command = 'git', ?StateInterface $state = NULL) {
parent::__construct($git_command);
$this->state = $state;
}
......
......@@ -3,9 +3,9 @@
namespace Drupal\Tests\git_info\Unit;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Tests\UnitTestCase;
use Drupal\git_info\GitInfo;
use Drupal\git_info\Plugin\Block\InfoBlock;
use Drupal\Tests\UnitTestCase;
/**
* Test tag name generation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment