I've recently been working on a project in PHP and I came across a situation where I needed to define a static function in an abstract class. However, I wasn't sure if this is even possible in PHP or if it's against any best practices. So, I thought I'd ask for some guidance here.
To give you some context, I have an abstract class that contains some common functionality for a group of classes. Now, I want to add a static function that can be accessed without creating an instance of the class. This function will also be overridden in the child classes, so it needs to be abstract.
I'm aware that static methods can't be defined in an interface, but since I'm working with an abstract class, I wonder if there's any possibility to define a static abstract function.
Thanks in advance for your help!