Unity UI package requires Physics

Hey guys!

I have a project with disabled Physics built-in-package. While upgrading my project to Unity 2019.2.8f1 version (previous was 2019.1.8f1), I faced with an error caused by Unity UI requirements, it needs RaycastHit from Physics. Enabling Physics package solves the error. But I don’t use Physics and don’t need it. Is there any way to keep Unity UI working with disabled Physics?

Before Unity UI was moved to Unity Package everything was clear.

Vote this issues to urge to fix it:
Physics: Unity Issue Tracker - Unity UI package throws RaycastHit namespace errors when built-in Physics package is disabled
Physics2D: Unity Issue Tracker - Namespace errors are thrown when Physics 2D Built-in package is removed