When using object as the type in a @param declaration, phpcs reports a MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam error. The error message says that a class name or stdClass should be used instead. To quote:
| ERROR | `object` should not be used as a typehint. If the | | types are known, list the relevant classes; if this is | | meant to refer to stdClass, use `stdClass` | | directly.
This makes it impossible to correctly declare a parameter that does indeed take any object. stdClass should not and cannot be used for this purpose, since it implies that a "plain" object is expected, and at least phpstorm will complain if this isn't the case.
It seems to me that this rule should simply go away. "object" is a type hint supported by PHP natively, and it serves a valid purpose. It seems like quite a few extensions already disable the check for this reason.