Skip to content

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

Open
pauljherring wants to merge 1 commit intodominicsayers:masterfrom
pauljherring:master
Open

Fixing 'Parameter must be an array or an object that implements Count…#19
pauljherring wants to merge 1 commit intodominicsayers:masterfrom
pauljherring:master

Conversation

@pauljherring
Copy link
Copy Markdown

…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