Skip to content

Commit 45ab7eb

Browse files
committed
Minor code tweaks
1 parent 79ce374 commit 45ab7eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TestLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function hasRecord(string|array $record, string|int $level): bool
112112
public function hasRecordThatContains(string $message, string|int $level): bool
113113
{
114114
return $this->hasRecordThatPasses(static function (array $rec) use ($message) {
115-
return \strpos($rec['message'], $message) !== false;
115+
return \str_contains($rec['message'], $message);
116116
}, $level);
117117
}
118118

@@ -157,7 +157,7 @@ public function __call(string $method, array $args): bool
157157
}
158158
}
159159

160-
throw new \BadMethodCallException('Call to undefined method ' . static::class . '::' . $method . '()');
160+
throw new \BadMethodCallException('Call to undefined method ' . self::class . '::' . $method . '()');
161161
}
162162

163163
public function reset(): void

0 commit comments

Comments
 (0)