RouteNotFoundException TypeError

HTTP 500 Whoops, looks like something went wrong.

htmlspecialchars(): Argument #2 ($flags) must be of type int, string given

Exceptions 2

TypeError

An Error Occurred: Whoops, looks like something went wrong.

Sorry, there was a problem we could not recover from.

The server returned a "500 - Whoops, looks like something went wrong."

Help me resolve this