Fix phpstan level 6

[MAILPOET-1969]
This commit is contained in:
Pavel Dohnal
2019-04-09 13:46:03 +02:00
committed by M. Shull
parent 46a0b7501b
commit 3e66e9e1dd
36 changed files with 320 additions and 244 deletions

View File

@ -22,8 +22,8 @@ if (!defined('ABSPATH')) exit;
* @method $this useIdColumn($id_column)
* @method $this|bool findOne($id=null)
* @method static static|bool findOne($id=null)
* @method array|\IdiormResultSet findMany()
* @method static array|\IdiormResultSet findMany()
* @method array findMany()
* @method static array findMany()
* @method \IdiormResultSet findResultSet()
* @method array findArray()
* @method static array findArray()
@ -162,7 +162,7 @@ class Model extends \Sudzy\ValidModel {
}
if ($model === false) {
if (!empty($onCreate)) {
if (!empty($onCreate) && is_callable($onCreate)) {
$data = $onCreate($data);
}
$model = static::create();