Use phpstan level 2
[MAILPOET-1822]
This commit is contained in:
@@ -43,6 +43,10 @@ class ViewInBrowser {
|
||||
$this->_abort();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \stdClass $data
|
||||
* @return bool|\stdClass
|
||||
*/
|
||||
function _validateBrowserPreviewData($data) {
|
||||
// either newsletter ID or hash must be defined, and newsletter must exist
|
||||
if (empty($data->newsletter_id) && empty($data->newsletter_hash)) return false;
|
||||
|
Reference in New Issue
Block a user