Conditions | 1 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | /** |
||
14 | * Read a path and append its contents to the current configuration. |
||
15 | * This method will read a path and append the contents of the path to |
||
16 | * the current configuration. The path could either be a directory or a |
||
17 | * file. Directories are parsed recursively for config files. First level |
||
61 |
Let’s assume you have a class which uses late-static binding:
}
The code above will run fine in your PHP runtime. However, if you now create a sub-class and call the
getSomeVariable()
on that sub-class, you will receive a runtime error:In the case above, it makes sense to update
SomeClass
to useself
instead: