The variable $sort does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
39
}
40
41
/**
42
* This is responsible for introspecting a given class and returning an
43
* array continaing all of its private statics
44
*
45
* @param string $class
46
*
47
* @return string[]
48
*/
49
protected function getClassConfig($class)
50
{
51
// Autoload the class if it exists
52
if(!class_exists($class)) {
53
return [];
54
}
55
56
/** @var \ReflectionProperty[] **/
57
$props = (new ReflectionClass($class))
58
->getStaticProperties();
59
60
$classConfig = [];
61
62
// Loop through each static property and add all private statics to the
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.