Skip to content

Str class changes result in mb_split(): Pattern is not valid under UTF-16LE encoding #56473

@optii

Description

@optii

Laravel Version

12.21

PHP Version

8.1.4

Database Driver & Version

No response

Description

Traced the problem to the changes in the PR #56338

Since updating from 12.20 to 12.21 we have the following error when Str::studly gets called

mb_split(): Pattern is not valid under UTF-16LE encoding

Steps To Reproduce

if you need a detailed repo let me know as this is on a large enterprise project

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions