-
Notifications
You must be signed in to change notification settings - Fork 178
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
Trying to access array offset on value of type resource #207
Comments
I encountered the same problem since I upgrade to Php7.4 if (is_string($value) && ctype_alpha($value) || is_array($value) && count($value) > 0 && ctype_alpha($value[0])) {
return $this->getSpatialPlatform($platform)->convertStringToPHPValue($this, $value);
}
return $this->getSpatialPlatform($platform)->convertBinaryToPHPValue($this, $value); You may perhaps mix solution with the @sushicodeur purpose. |
PR #209 fixed it. |
Hi I have this problem |
@amirsalkhori This issue has been fixed in the longitude-one/doctrine-spatial package. |
I'm not sure why, on my dev machine, with an env under docker I had suddenly this error today : "Trying to access array offset on value of type resource"
It looks like modifying line 138 of
lib/CrEOF/Spatial/DBAL/Types/AbstractSpatialType.php
like so fixes the error, but I'm not sure why nor where to look for an explanation :If I can be of any help, please give hints to where to look, and what is missing in this issue description :)
The text was updated successfully, but these errors were encountered: