Adapt Logger\Introspection

- Create an interface
- Add it as constructor parameter
This commit is contained in:
Philipp 2022-12-25 16:48:09 +01:00
parent bfc1c157f1
commit 10864e50c7
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 68 additions and 22 deletions

View file

@ -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);
}