opencaching / okapi

A common API for all National Opencaching.XX sites
22 stars 20 forks source link

PHP 7.4+ and 8.0 support #602

Closed deg-pl closed 2 years ago

deg-pl commented 3 years ago

From PHP 7.4 array and string offset access syntax with curly braces is deprecated. In PHP8.0 it gives an fatal error:

okapi\core\Exception\FatalError:
Array and string offset access syntax with curly braces is no longer supported

File: /okapi/core/OAuth/OAuthSignatureMethod.php
Line: 52
teiling88 commented 3 years ago

With this gist: https://gist.github.com/mathiasverraes/3096500 I checked all files. Only OAUthSignatureMethod was using curly braces.

deg-pl commented 2 years ago

One more issue: create_function() has been deprecated as of PHP 7.2, and removed as of PHP 8.0

deg-pl commented 2 years ago

Problems fixed. I hope I can close this issue.