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

(NFC) Fix cannot use count() on object that doesn't implement countab… #12146

Merged

Conversation

seamuslee001
Copy link
Contributor

…le in tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php

Overview

This fixes an issue running the test suite against PHP7.2 whereby we were trying to use count on a DB Result object which doesn't implement countable. This throws a warning in PHP7.2

Before

Warning thrown running test

After

No warning thrown

ping @eileenmcnaughton @monishdeb @totten

…le in tests/phpunit/CRM/Contribute/Import/Parser/ContributionTest.php
@eileenmcnaughton
Copy link
Contributor

if jenkins is happy so am I

@monishdeb
Copy link
Member

Tested on my local on PHP7.2 and it does fix the issue + changes make sense + Jenkin is happy + merge on pass = merged :p

@monishdeb monishdeb merged commit 4f4c4a1 into civicrm:master May 16, 2018
@eileenmcnaughton eileenmcnaughton deleted the contribute_import_parser_count branch May 16, 2018 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants