Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8.1 throws deprecation message for strcasecmp() #165

Closed
martin-rueegg opened this issue Jan 23, 2023 · 3 comments
Closed

php8.1 throws deprecation message for strcasecmp() #165

martin-rueegg opened this issue Jan 23, 2023 · 3 comments
Assignees

Comments

@martin-rueegg
Copy link

When trying to select the "Files" entry in a Space Menu, you'll get a PHP deprecation message when running on PHP 8.1 or higher.

strcasecmp(): Passing null to parameter #1 ($string1) of type string is deprecated

The error is thrown in https://github.com/yiisoft/yii2/blob/master/framework/helpers/BaseHtml.php#L345 but the culprit is the call to Html::beginForm() in

<?= Html::beginForm(null, null, ['data-target' => '#globalModal', 'id' => 'cfiles-form']); ?>
, which uses null rather than 'post' as a second argument.

The issue has already been fixed in #159 but there has been no new release since, which is unfortunate.

So this issue is for documentation purposes and hoping to get the fix to be released.

@yurabakhtin
Copy link
Contributor

@luke-

The issue has already been fixed in #159 but there has been no new release since, which is unfortunate.

Could you please do new release?

@luke-
Copy link
Contributor

luke- commented Jan 24, 2023

Just released 0.15.0

@martin-rueegg
Copy link
Author

Thanks, @luke-

PS: Error doesn't happen anymore after updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants