Skip to content

Conversation

rommelfreddy
Copy link
Contributor

Copy link
Contributor

@eiriarte-mendez eiriarte-mendez left a comment

Choose a reason for hiding this comment

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

Hi @rommelfreddy
there could be some problem using count on newer PHP versions.
it would be nice if you change the runner in .github/workflows/push.yml:
ubuntu-18.04 instead of ubuntu-latest to allow other checks to run.

public function setProvider($provider)
{
$ids = $this->getIds();
if (count($ids[0]) === null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

count on null will throw error on PHP 7.3+

Copy link
Contributor Author

Choose a reason for hiding this comment

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

$ids[0] is also bullsh*t. :)
fixed the whole line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eiriarte-mendez changed the ubuntu-version in separate PR:
#17
(but why? - please see my comment in the PR)

@eiriarte-mendez eiriarte-mendez merged commit 8ab5c84 into ratepay:master Mar 10, 2021
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

Successfully merging this pull request may close these issues.

3 participants