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

Support for PHP 8.0 #58

Open
ca-dsgn opened this issue Nov 17, 2021 · 2 comments
Open

Support for PHP 8.0 #58

ca-dsgn opened this issue Nov 17, 2021 · 2 comments

Comments

@ca-dsgn
Copy link

ca-dsgn commented Nov 17, 2021

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
Copy link

cialog commented Aug 18, 2022

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

@sterborg
Copy link

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

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

3 participants