Skip to content

Commit c94bdc9

Browse files
committed
Merge branch '5.0'
* 5.0: Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages
2 parents a99b13f + 48a2f4b commit c94bdc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AbstractUnicodeString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function replaceMatches(string $fromRegexp, $to): parent
307307

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

313313
$replace = 'preg_replace_callback';

ByteString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function replaceMatches(string $fromRegexp, $to): parent
269269

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

275275
$replace = 'preg_replace_callback';

0 commit comments

Comments
 (0)