Fix PHPStan class-string errors
MAILPOET-6318
This commit is contained in:
committed by
Jan Lysý
parent
cbfdba7bd2
commit
5ce9008f90
@@ -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',
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user