Skip to content

Commit 48a2f4b

Browse files
committed
Fix quotes in exception messages
1 parent a45ae78 commit 48a2f4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AbstractUnicodeString.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function replaceMatches(string $fromRegexp, $to): parent
309309

310310
if (\is_array($to) || $to instanceof \Closure) {
311311
if (!\is_callable($to)) {
312-
throw new \TypeError(sprintf('Argument 2 passed to %s::replaceMatches() must be callable, array given.', static::class));
312+
throw new \TypeError(sprintf('Argument 2 passed to "%s::replaceMatches()" must be callable, array given.', static::class));
313313
}
314314

315315
$replace = 'preg_replace_callback';

ByteString.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function replaceMatches(string $fromRegexp, $to): parent
271271

272272
if (\is_array($to)) {
273273
if (!\is_callable($to)) {
274-
throw new \TypeError(sprintf('Argument 2 passed to %s::replaceMatches() must be callable, array given.', static::class));
274+
throw new \TypeError(sprintf('Argument 2 passed to "%s::replaceMatches()" must be callable, array given.', static::class));
275275
}
276276

277277
$replace = 'preg_replace_callback';

0 commit comments

Comments
 (0)