Scout24 / restapi-php-sdk

SDK für PHP-Entwickler um die Arbeit mit der API von ImmobilienScout24 zu vereinfachen. Über die API erhält man Ergebnislisten, Objektdaten, uvm. von ImmobilienScout und kann diese Daten inhherhalb seines Webservice integrieren. Die Dokumentation zum SDK findet man unter https://github.com/Immocaster/php-sdk/wiki.
65 stars 45 forks source link

Support for PHP 8.0 #58

Open ca-dsgn opened 3 years ago

ca-dsgn commented 3 years ago

Hi guys,

when using your code with PHP 8.0, I am getting this error:

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in ./immoscout/Immocaster/Oauth/OAuth.php on line 101

I think this problem is only related to a syntax problem because of using curly braces.

Are there any updates planed to fix this problem?

Thank you and Best, Christian

cialog commented 2 years ago

A simple fix would be replacing the curly braces with [ ]. I wonder if the code is still maintained.

sterborg commented 3 weeks ago

Replace $result |= ord($built{$i}) ^ ord($signature{$i}); with $result |= ord($built[$i]) ^ ord($signature[$i]);