mirror of
https://github.com/ivuorinen/monolog-gdpr-filter.git
synced 2026-02-25 03:54:31 +00:00
chore: cleanup, update workflows, codestyle
This commit is contained in:
@@ -13,8 +13,6 @@ use Monolog\JsonSerializableDateTimeImmutable;
|
||||
use Monolog\Level;
|
||||
use Monolog\Logger;
|
||||
use Monolog\LogRecord;
|
||||
use ReflectionClass;
|
||||
use ReflectionException;
|
||||
use ReflectionMethod;
|
||||
use Stringable;
|
||||
|
||||
@@ -62,7 +60,7 @@ trait TestHelpers
|
||||
object|string $object,
|
||||
string $methodName = '',
|
||||
): ReflectionMethod {
|
||||
if (empty($methodName) && is_string($object)) {
|
||||
if (($methodName === '' || $methodName === '0') && is_string($object)) {
|
||||
$method = new ReflectionMethod($object);
|
||||
} else {
|
||||
$method = new ReflectionMethod($object, $methodName);
|
||||
|
||||
Reference in New Issue
Block a user