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

Predis   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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