Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
27 | View Code Duplication | public function testArrayDereferencing() |
|
28 | { |
||
29 | $file = $this->sniffFile(self::TEST_FILE, '5.3'); |
||
30 | $this->assertError($file, 3, 'Function array dereferencing is not present in PHP version 5.3 or earlier'); |
||
31 | |||
32 | $file = $this->sniffFile(self::TEST_FILE, '5.4'); |
||
33 | $this->assertNoViolation($file, 3); |
||
34 | } |
||
35 | |||
68 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.