Make PhpStorm stop automatically closing tabs

In PhpStorm once you open several tabs they start disappearing automatically. How to turn that setting off?

Don't see a setting for this anywhere.


Solution 1:

File > Settings > Editor > General > Editor Tabs

Under the "Tab closing policy" change tab limit to a bigger number.

enter image description here