Fix PHPStan class-string errors

MAILPOET-6318
This commit is contained in:
Oluwaseun Olorunsola
2024-11-26 12:08:44 +01:00
committed by Jan Lysý
parent cbfdba7bd2
commit 5ce9008f90
9 changed files with 27 additions and 35 deletions

View File

@@ -31,7 +31,7 @@ class Email_Editor_Test extends \MailPoetTest {
*/
public function _before() {
parent::_before();
$this->email_editor = $this->di_container->get( Email_Editor::class ); // @phpstan-ignore-line
$this->email_editor = $this->di_container->get( Email_Editor::class );
$this->post_register_callback = function ( $post_types ) {
$post_types[] = array(
'name' => 'custom_email_type',

View File

@@ -23,7 +23,7 @@ class Patterns_Test extends \MailPoetTest {
*/
public function _before() {
parent::_before();
$this->patterns = $this->di_container->get( Patterns::class ); // @phpstan-ignore-line
$this->patterns = $this->di_container->get( Patterns::class );
$this->cleanup_patterns();
}

View File

@@ -29,7 +29,7 @@ class Blocks_Registry_Test extends \MailPoetTest {
*/
public function _before() {
parent::_before();
$this->registry = $this->di_container->get( Blocks_Registry::class ); // @phpstan-ignore-line
$this->registry = $this->di_container->get( Blocks_Registry::class );
}
/**

View File

@@ -24,7 +24,7 @@ class Theme_Controller_Test extends \MailPoetTest {
*/
public function _before() {
parent::_before();
$this->theme_controller = $this->di_container->get( Theme_Controller::class ); // @phpstan-ignore-line
$this->theme_controller = $this->di_container->get( Theme_Controller::class );
}
/**