Merge pull request #1746 from mailpoet/phpstan-cleanup
Raise PHPStan strictness level to 1
This commit is contained in:
@ -172,6 +172,7 @@ class Forms extends APIEndpoint {
|
||||
// check if the user gets to pick his own lists
|
||||
// or if it's selected by the admin
|
||||
$has_segment_selection = false;
|
||||
$list_selection = [];
|
||||
foreach($body as $i => $block) {
|
||||
if($block['type'] === 'segment') {
|
||||
$has_segment_selection = true;
|
||||
|
@ -11,6 +11,7 @@ class MP2Migrator extends APIEndpoint {
|
||||
public $permissions = array(
|
||||
'global' => AccessControl::PERMISSION_MANAGE_SETTINGS
|
||||
);
|
||||
private $MP2Migrator;
|
||||
|
||||
public function __construct() {
|
||||
$this->MP2Migrator = new \MailPoet\Config\MP2Migrator();
|
||||
|
Reference in New Issue
Block a user