mirror of
https://github.com/friendica/friendica
synced 2025-04-28 16:24:25 +02:00
Adapt Logger\Introspection
- Create an interface - Add it as constructor parameter
This commit is contained in:
parent
bfc1c157f1
commit
10864e50c7
4 changed files with 68 additions and 22 deletions
|
@ -21,10 +21,12 @@
|
|||
|
||||
namespace Friendica\Core\Logger\Util;
|
||||
|
||||
use Friendica\Core\Logger\Capabilities\IHaveCallIntrospections;
|
||||
|
||||
/**
|
||||
* Get Introspection information about the current call
|
||||
*/
|
||||
class Introspection
|
||||
class Introspection implements IHaveCallIntrospections
|
||||
{
|
||||
/** @var int */
|
||||
private $skipStackFramesCount;
|
||||
|
@ -52,7 +54,7 @@ class Introspection
|
|||
*
|
||||
* @param array $classNames
|
||||
*/
|
||||
public function addClasses(array $classNames)
|
||||
public function addClasses(array $classNames): void
|
||||
{
|
||||
$this->skipClassesPartials = array_merge($this->skipClassesPartials, $classNames);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue