Commit 017bbe6 probably broke multi-byte safety, because this test now fails (test not in ouzo, I just wrote it)
/**
* @test
*/
public function shouldNotStartWithMalformedUnicode()
{
// given
$subject = '€';
$infix = \chr(226);
// when
$startsWith = Strings::startsWith($subject, $infix); // returns true
// then
$this->assertFalse($startsWith);
}
str_starts_with() is not mb-safe. Previous implementation would make this test pass. Maybe revert?
Commit 017bbe6 probably broke multi-byte safety, because this test now fails (test not in ouzo, I just wrote it)
str_starts_with()is not mb-safe. Previous implementation would make this test pass. Maybe revert?