$posts->query()->func()->now() of type Cake\Database\Expression\FunctionExpression is incompatible with the type Cake\Database\Query|string expected by parameter $query of Cake\Database\Query::unionAll().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation