Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function errno(Connection $linkIdentifier = null) |
||
14 | { |
||
15 | $connection = $this->manager->getOpenConnectionOrFail($linkIdentifier); |
||
1 ignored issue
–
show
|
|||
16 | |||
17 | return (int) $connection->getErrorInfo()[1]; |
||
18 | } |
||
19 | |||
33 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: