Skip to content

Commit a653c95

Browse files
committed
Updated replaceAll params
1 parent 465153d commit a653c95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/UnicodeString.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ public function replace($subject, $replace, int $offset = 0, bool $ignoreCase =
581581
* @param int $offset
582582
* @return static
583583
*/
584-
public function replaceAll($subject, $replace, bool $ignoreCase = false, int $offset = 0): self
584+
public function replaceAll($subject, $replace, int $offset = 0, bool $ignoreCase = false): self
585585
{
586586
if ($offset < 0) {
587587
$offset += $this->length;

tests/UnicodeStringTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ public function replaceDataProvider()
507507
*/
508508
public function testReplaceAll(string $str, string $subject, string $replace, string $result, bool $ignoreCase = false, int $offset = 0)
509509
{
510-
$this->assertEquals($result, (string)wstr::from($str)->replaceAll($subject, $replace, $ignoreCase, $offset));
510+
$this->assertEquals($result, (string)wstr::from($str)->replaceAll($subject, $replace, $offset, $ignoreCase));
511511
}
512512

513513
public function replaceAllDataProvider()

0 commit comments

Comments
 (0)