Merge pull request #1746 from mailpoet/phpstan-cleanup

Raise PHPStan strictness level to 1
This commit is contained in:
M. Shull
2019-01-28 10:47:24 -05:00
committed by GitHub
80 changed files with 318 additions and 119 deletions

View File

@ -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;

View File

@ -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();