Issues (13)

Mezon/PdoCrud/Tests/TraitClient.php (1 issue)

1
<?php
2
namespace Mezon\PdoCrud\Tests;
3
4
use Mezon\PdoCrud\ApropriateConnectionTrait;
5
use Mezon\PdoCrud\PdoCrud;
6
7
class TraitClient extends TraitClientBase
8
{
9
    public function getApropriateConnection(): PdoCrud
10
    {
11
        return $this->getConnection([
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getConnect...'exact-db-connection')) could return the type true which is incompatible with the type-hinted return Mezon\PdoCrud\PdoCrud. Consider adding an additional type-check to rule them out.
Loading history...
12
            'default-db-connection',
13
            'exact-db-connection'
14
        ]);
15
    }
16
}
17