Completed
Branch 2.x (03096d)
by Julián
08:36
created

Predis::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * sessionware (https://github.com/juliangut/sessionware).
5
 * PSR7 session management middleware.
6
 *
7
 * @license BSD-3-Clause
8
 * @link https://github.com/juliangut/sessionware
9
 * @author Julián Gutiérrez <[email protected]>
10
 */
11
12
declare(strict_types=1);
13
14
namespace Jgut\Sessionware\Handler;
15
16
use Predis\Client;
17
18
/**
19
 * Predis session handler.
20
 */
21
class Predis extends Redis
22
{
23
    /**
24
     * Predis session handler constructor.
25
     *
26
     * @param Client $driver
27
     */
28
    public function __construct(Client $driver)
29
    {
30
        $this->driver = $driver;
0 ignored issues
show
Documentation Bug introduced by
It seems like $driver of type object<Predis\Client> is incompatible with the declared type object<Redis> of property $driver.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
31
    }
32
}
33