groupby /
api-php
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | class RoboFile extends \Robo\Tasks |
||
|
0 ignored issues
–
show
|
|||
| 4 | { |
||
| 5 | |||
| 6 | function install() |
||
|
0 ignored issues
–
show
|
|||
| 7 | { |
||
| 8 | $this->taskComposerUpdate('./composer.phar') |
||
| 9 | ->preferDist() |
||
| 10 | ->run(); |
||
| 11 | } |
||
| 12 | |||
| 13 | function test() |
||
|
0 ignored issues
–
show
|
|||
| 14 | { |
||
| 15 | $this->install(); |
||
| 16 | |||
| 17 | $this->taskPhpUnit() |
||
| 18 | ->configFile('phpunit.xml') |
||
| 19 | ->run(); |
||
| 20 | } |
||
| 21 | |||
| 22 | } |
||
| 23 |
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.