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

@@ -8,13 +8,14 @@ if (!defined('ABSPATH')) exit;
* @property int $queue_id
* @property string $url
* @property string $hash
* @property int|null $clicksCount
*/
class NewsletterLink extends Model {
public static $_table = MP_NEWSLETTER_LINKS_TABLE;
/**
* @param Newsletter $newsletter
* @return \stdClass|null
* @return NewsletterLink|null
*/
static function findTopLinkForNewsletter(Newsletter $newsletter) {
$link = self::selectExpr('links.*')