-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
PHP 7.4 warning in ColumnDelete #15224
Conversation
|
||
if (!array_key_exists($column, $row)) { | ||
continue; | ||
if (is_array($row )) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like there is a space too much here:
if (is_array($row )) { | |
if (is_array($row)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed @Findus23
|
||
if (!array_key_exists($column, $row)) { | ||
continue; | ||
if (is_object($row)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgiehl I reckon it's not working maybe because we need to use indeed isset()
or so as in the row object it might not have the property...
wondering if we even need this code at all as maybe unset would do the work anyway no matter if the property/key is set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We couldn't remove it actually.
* PHP 7.4 warning in ColumnDelete fix matomo-org#15210 * remove tabs * Update ColumnDelete.php * Update ColumnDelete.php * Update ColumnDelete.php * Update ColumnDelete.php * Update ColumnDelete.php
* PHP 7.4 warning in ColumnDelete fix matomo-org#15210 * remove tabs * Update ColumnDelete.php * Update ColumnDelete.php * Update ColumnDelete.php * Update ColumnDelete.php * Update ColumnDelete.php
fix #15210