PHP 8.1 CPgsqlSchema error stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated
JonathanArgentao opened this issue · 2 comments
JonathanArgentao commented
What steps will reproduce the problem?
with Postgres Database configured
$model->find();
What is the expected result?
What do you get instead?
an error: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated
CPgsqlSchema.php:194
Additional info
adsrc is null when there's not a column default value, and stripos can't receive null
Q | A |
---|---|
Yii version | 1.1.25 |
PHP version | 8.1 |
Operating system | macOS |
marcovtwout commented
@JonathanArgentao Could you confirm this issue still exists on dev-master
? (see #4386)
JonathanArgentao commented
@marcovtwout Yes, still exists