Completed
Push — master ( 6d6774...64f3ed )
by Jeroen
11:23 queued 05:13
created

Repository/AbstractArticlePageRepository.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\ArticleBundle\Repository;
4
5
use Doctrine\ORM\EntityRepository;
6
7
/**
8
 * Repository class for the AbstractArticlePage
9
 */
10
abstract class AbstractArticlePageRepository extends EntityRepository
11
{
12
    /**
13
     * Returns an array of all article pages
14
     *
15
     * @param string $lang
0 ignored issues
show
Should the type for parameter $lang not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
16
     * @param int    $offset
17
     * @param int    $limit
18
     *
19
     * @return array
20
     */
21
    abstract public function getArticles($lang = null, $offset = 0, $limit = 10);
22
}
23