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

sizeof(): Parameter must be an array or an object that implements Countable #162

Open
Helle1 opened this issue Dec 30, 2020 · 1 comment

Comments

@Helle1
Copy link

Helle1 commented Dec 30, 2020

seostats/seostats/SEOstats/Services/3rdparty/GTB_PageRank.php:297

with php 7.2 in the dev-master of SEOstats...

@Helle1 Helle1 closed this as completed Dec 30, 2020
@Helle1 Helle1 reopened this Dec 30, 2020
@Helle1
Copy link
Author

Helle1 commented Dec 30, 2020

I cannot find a workaround for that ...
It seems that the method public static function _jenkinsHash($key, $encode=TRUE) {
is called several times and on the first call it gets an array, and on second a string ...

This is how I use it:


 $seostats = new SEOstats;
 if ($seostats->setUrl($websiteUrl)) {
     echo = SEOstatsGoogle::getPageRank();
}

maybe related to https://www.php.net/manual/de/function.count.php the change in php 7.2 saying

count() will now yield a warning on invalid countable types passed to the value parameter.
--

While, sizeof is an alias of count.

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

No branches or pull requests

1 participant