mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Fix #19041: Fix PHP 8.1 issues
This commit is contained in:
committed by
GitHub
parent
4bd551d143
commit
1271bc419f
@ -473,8 +473,8 @@ class HelpController extends Controller
|
||||
*/
|
||||
protected function formatOptionHelp($name, $required, $type, $defaultValue, $comment)
|
||||
{
|
||||
$comment = trim($comment);
|
||||
$type = trim($type);
|
||||
$comment = trim((string)$comment);
|
||||
$type = trim((string)$type);
|
||||
if (strncmp($type, 'bool', 4) === 0) {
|
||||
$type = 'boolean, 0 or 1';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user