You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when use yii2/helpers/BaseInflector.php, function camel2word
line:
$label = preg_replace('/(?<=\p{Ll})\p{Lu}|(?<=[\p{L}\d])\p{Lu}(?=\p{Ll})|(\d+)/u', ' \0', $name);
What is the expected result?
not error
What do you get instead?
PHP Deprecated Warning – yii\base\ErrorException
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Additional info
Q
A
Yii version
2.0.45
PHP version
8.1
Operating system
ubuntu
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
when use yii2/helpers/BaseInflector.php, function camel2word
line:
$label = preg_replace('/(?<=\p{Ll})\p{Lu}|(?<=[\p{L}\d])\p{Lu}(?=\p{Ll})|(\d+)/u', ' \0', $name);
What is the expected result?
not error
What do you get instead?
PHP Deprecated Warning – yii\base\ErrorException
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Additional info
The text was updated successfully, but these errors were encountered: