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

Fixed Warning: count(): Parameter must be an array or an object that … #1

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

Spodnet
Copy link

@Spodnet Spodnet commented Aug 21, 2018

…implements Countable when $keyValuesCount is not an array

count($keyValuesCount) happens before the $keyValuesCount are always an array, setting the count after the code that makes it an array means the warning is dealt with and the code is now correct as $keyValuesCount will always contain a count value.

…implements Countable when $keyValuesCount is not an array
@falkenhawk falkenhawk merged commit 424ee69 into zf1s:master Aug 21, 2018
@falkenhawk
Copy link
Member

@Spodnet thank you for the fix!

falkenhawk pushed a commit that referenced this pull request Oct 1, 2021
- PDOStatement::setFetchMode(): Argument #1 ($mode) must be a bitmask of PDO::FETCH_* constants
- PDOStatement::fetchAll(): Argument #1 ($mode) must be a bitmask of PDO::FETCH_* constants
- PDOStatement::fetch(): Argument #1 ($mode) must be a bitmask of PDO::FETCH_* constants
falkenhawk added a commit that referenced this pull request Dec 12, 2022
- substr(): Passing null to parameter #1 ($string) of type string is deprecated
- strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
- strlen(): Passing null to parameter #1 ($string) of type string is deprecated
- trim(): Passing null to parameter #1 ($string) of type string is deprecated
- str_replace(): Passing null to parameter zf1#2 ($replace) of type array|string is deprecated
- strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated
- http_build_query(): Passing null to parameter zf1#2 ($numeric_prefix) of type string is deprecated
- current(): Calling current() on an object is deprecated
- preg_match(): Passing null to parameter zf1#2 ($subject) of type string is deprecated
- preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated
- always construct Zend_Exception with string message, avoid null
- Implicit conversion from float-string "x.xyz" to int loses precision
- PDOStatement::fetch(): Passing null to parameter zf1#2 ($cursorOrientation) of type int is deprecated
- ctype_space(): Argument of type null will be interpreted as string in the future
- file_get_contents(): Passing null to parameter zf1#2 ($use_include_path) of type bool is deprecated
- imagefilledpolygon(): Using the $num_points parameter is deprecated
- Implicit conversion from float to int loses precision
- PDOStatement::bindParam(): Passing null to parameter #4 ($maxLength) of type int is deprecated
- preg_match(): Passing null to parameter zf1#2 ($subject) of type string is deprecated
- ctype_print(): Argument of type int will be interpreted as string in the future
- trim(): Passing null to parameter #1 ($string) of type string is deprecated
etc.
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.

2 participants