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

Fixing 'Parameter must be an array or an object that implements Count… #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pauljherring
Copy link

…able' when handed asdf@asdf

$ php -v
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
$ php -nr 'include("is_email.php"); echo is_email("asdf@asdf", true, true);'

Warning: count(): Parameter must be an array or an object that implements Countable in [...]/is_email.php on line 1123

After proposed change:

$ php -nr 'include("is_email.php"); echo is_email("asdf@asdf", true, true);'
9

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.

1 participant