warning Methods with the same name as their class will not be constructors in a future version of PHP; line 22
php 7.3 (was happening in 7.1 as well).

Line 22 is the last in this bit of code
PHP Code:
class ot_insurance extends base{
    function 
process() {
        }
    }
} else {

    class 
ot_insurance 
the function is also named ot_insurance. I'll fix if someone will confirm what it's referring to.