In what scenarios would it be best practice to mark a PHP class as "final"?

Marking a PHP class as "final" is best practice when you want to prevent the class from being extended or subclassed. This can be useful when you want to ensure that the class's functionality remains intact and cannot be altered by other developers. By marking a class as "final", you are explicitly stating that it should not be extended, which can help maintain code integrity and prevent unexpected behavior.

final class MyClass {
    // class implementation
}