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

PHP 7.4 warning in ColumnDelete #15224

Merged
merged 7 commits into from Dec 11, 2019
Merged

PHP 7.4 warning in ColumnDelete #15224

merged 7 commits into from Dec 11, 2019

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Dec 2, 2019

fix #15210

@tsteur tsteur mentioned this pull request Dec 2, 2019

if (!array_key_exists($column, $row)) {
continue;
if (is_array($row )) {
Copy link
Member

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:

Suggested change
if (is_array($row )) {
if (is_array($row)) {

Copy link
Member Author

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)) {
Copy link
Member Author

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?

Copy link
Member Author

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.

@tsteur tsteur added this to the 3.13.1 milestone Dec 10, 2019
@tsteur tsteur added the Needs Review PRs that need a code review label Dec 10, 2019
@diosmosis diosmosis merged commit 72343bb into 3.x-dev Dec 11, 2019
@diosmosis diosmosis deleted the 15210 branch December 11, 2019 00:10
@tsteur tsteur mentioned this pull request Jan 11, 2020
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
* 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
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
* 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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More PHP 7.4 warnings
3 participants