The parameter `$doc`, which is an object, should be typehinted.