sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

PHP 8.3 get_class() function deprecated without argument

Open nimitbhagat opened this issue 1 year ago • 1 comments

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

nimitbhagat avatar Sep 11 '23 13:09 nimitbhagat

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

resumeblaze avatar Jan 12 '24 07:01 resumeblaze