InvoicePlane 1.5.9 router.php error

@kasimross the solution is to take a look at this topic:
https://community2.invoiceplane.com/t/topic/5348/13
anything related to PHP 7.2+7.3 and InvoicePlane 1.5.9 is either solved by applying that fix from that topic