Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function getServerInfo(Connection $linkIdentifier = null) |
||
23 | { |
||
24 | $connection = $this->manager->getOpenConnectionOrFail($linkIdentifier); |
||
1 ignored issue
–
show
|
|||
25 | |||
26 | return $connection->getAttribute(PDO::ATTR_SERVER_VERSION); |
||
27 | } |
||
28 | |||
49 |
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: