chore: cleanup, update workflows, codestyle

This commit is contained in:
2025-07-28 15:14:59 +03:00
parent 8c67190431
commit 0fdb31cb75
10 changed files with 11 additions and 34 deletions

View File

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