`$container` should have a type hint