That's good advice when first starting your savings journey, but once you have a large amount of money invested (>12 months of expenses) you don't really need to keep an "emergency fund" in cash to cover months of expenses.
It's 2022. It's trivially easy to convert investments into cash.