Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Sep 11, 2023

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
Development

Successfully merging this pull request may close these issues.

1 participant