Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
31 | View Code Duplication | public function testArrayDereferencing($line) |
|
32 | { |
||
33 | $file = $this->sniffFile(self::TEST_FILE, '5.3'); |
||
34 | $this->assertError($file, $line, 'Function array dereferencing is not present in PHP version 5.3 or earlier'); |
||
35 | |||
36 | $file = $this->sniffFile(self::TEST_FILE, '5.4'); |
||
37 | $this->assertNoViolation($file, $line); |
||
38 | } |
||
39 | |||
92 |
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.