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

Fix php 8.1 deprecation #20360

Merged
merged 2 commits into from
Feb 21, 2023
Merged

Fix php 8.1 deprecation #20360

merged 2 commits into from
Feb 21, 2023

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Feb 14, 2023

Description:

fixes #20356

Review

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Feb 14, 2023
@sgiehl sgiehl added this to the 4.13.4 milestone Feb 14, 2023
@@ -122,7 +122,7 @@ public function getModel($idSite, $period, $date, $segment = false)
list($brand, $model) = explode(';', $label, 2);
$brand = getDeviceBrandLabel($brand);
} else {
$brand = null;
$brand = '';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only relevant change. Everything else is applying coding styles.

Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bx80 bx80 merged commit de63d3f into 4.x-dev Feb 21, 2023
@bx80 bx80 deleted the m20356 branch February 21, 2023 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP 8.1: DevicesDetection: urlencode() Passing null to parameter #1 ($string) of type string is deprecated
2 participants