sdk-php
sdk-php copied to clipboard
PHP 8.3 get_class() function deprecated without argument
PHP 8.3: get_class() and get_parent_class() function calls without arguments deprecated. Reference
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);