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

Fix PHP 8.1 compatibility #190

Open
chfoidl opened this issue Jun 3, 2022 · 2 comments
Open

Fix PHP 8.1 compatibility #190

chfoidl opened this issue Jun 3, 2022 · 2 comments

Comments

@chfoidl
Copy link

chfoidl commented Jun 3, 2022

When using this library with PHP 8.1, a deprecation warning is triggered: fwrite(): Passing null to parameter #2 ($data) of type string is deprecated

This can easily be fixed by type casting the $input variable to string.

See this PR #191

itamair added a commit to itamair/geoPHP that referenced this issue Jul 4, 2022
When using this library with PHP 8.1, a deprecation warning is triggered: fwrite(): Passing null to parameter #2 ($data) of type string is deprecated
(see: phayes#190)
@itamair
Copy link

itamair commented Jul 4, 2022

FYI ... as this Github repo looks abandoned, and this issue would also be blocking Drupal Geofield module with PHP 8.1 (https://www.drupal.org/project/geofield/issues/3294152) I solved this (applying the corresponding PR#191)
in this new fork: https://github.com/itamair/geoPHP
(Packagist: https://packagist.org/packages/itamair/geophp)

@BathoryPeter
Copy link

Or take a look at my fork: https://github.com/funiq/geoPHP

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 a pull request may close this issue.

3 participants