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

PHP 8.3 get_class() function deprecated without argument #451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nimitbhagat
Copy link

PHP 8.3: get_class() and get_parent_class() function calls without arguments deprecated. Reference

@resumeblaze
Copy link

I wish I would have saw this post earlier. I came to the same conclusion and followed the same PHP Watch article.

To fix the deprecation notices you need to find all the instances where get_class() is called and replace that call with get_class($this).

#Find this declaration and any where get_class() is called
$classDetails = $mapper->getClass(get_class() , $key);

#Replace this declaration with get_class($this)
$classDetails = $mapper->getClass(get_class($this) , $key);

https://github.com/resumeblaze/sdk-php/releases/tag/v2.0.5

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 this pull request may close these issues.

None yet

2 participants