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

update 'count():Parameter must be an array or an object..' in 'geo-timezone/src/GeoTimeZone/Quadrant/Indexer.php:232' #14

Open
515orestis opened this issue Mar 10, 2020 · 0 comments

Comments

@515orestis
Copy link

515orestis commented Mar 10, 2020

when I try to do the update I have this error
image
my solution is to change

line 232 if (count($intersectionResult['intersectedZones']) === 1 && $intersectionResult['foundExactMatch']) {
in file geo-timezone/src/GeoTimeZone/Quadrant/Indexer.php
with this

line if (!(is_array ($intersectionResult['intersectedZones'])) && $intersectionResult['foundExactMatch']) {
because in line 92 $intersectedZones = $zoneIdx; in the same file
the $intersectedZones change from array to int

in a previous version of the library, the code was different and didn't have this problem

geertijewski pushed a commit to geertijewski/geo-timezone that referenced this issue Apr 22, 2020
This was referenced Apr 22, 2020
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