| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 63 | public function connect() |
||
| 64 | { |
||
| 65 | // 链接数据库 |
||
| 66 | if (is_null($this->pdo)) { |
||
| 67 | try { |
||
| 68 | $this->pdo = new PDO($this->getDsn(), $this->user, $this->password); |
||
| 69 | static::$connetionCount ++; |
||
| 70 | } catch (PDOException $e) { |
||
| 71 | throw new ConnectionException($e->getMessage(), $e->getCode()); |
||
| 72 | } |
||
| 91 |
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..