CodeExplorer triggeringClass example
return true;
} public function isBaselineDeprecation(Deprecation
$deprecation): bool
{ if ($deprecation->
isLegacy()) { return false;
} if ($deprecation->
originatesFromDebugClassLoader()) { $location =
$deprecation->
triggeringClass();
} elseif ($deprecation->
originatesFromAnObject()) { $location =
$deprecation->
originatingClass().'::'.
$deprecation->
originatingMethod();
} else { $location = 'procedural code';
} $message =
$deprecation->
getMessage();
$result =
isset($this->baselineDeprecations
[$location][$message]) &&
$this->baselineDeprecations
[$location][$message] > 0;
if ($this->generateBaseline
) { if ($result) { ++
$this->baselineDeprecations
[$location][$message];
}