Upgrade PHPStan level to 3

[MAILPOET-1915]
This commit is contained in:
Pavel Dohnal
2019-03-20 11:28:22 +01:00
committed by M. Shull
parent 7b3f230081
commit 7d6f69ec1d
11 changed files with 17 additions and 15 deletions

View File

@ -11,7 +11,7 @@ if (!defined('ABSPATH')) exit;
* @property string|null $status
* @property string|null $type
* @property int $priority
* @property string $scheduled_at
* @property string|null $scheduled_at
*/
class ScheduledTask extends Model {
public static $_table = MP_SCHEDULED_TASKS_TABLE;
@ -41,11 +41,12 @@ class ScheduledTask extends Model {
/** @return StatsNotification */
function statsNotification() {
return $this->hasOne(
$model = $this->hasOne(
StatsNotification::class,
'task_id',
'id'
);
return $model;
}
function pause() {