Fix type hint to match php docs