Port modified `get` method from HttpFoundation Request and add tests