This may manifest with a particular set of circumstances, like specific other modules being enabled, but my site is failing with the following PHP error when I save a content type:
TypeError: Argument 2 passed to node_type_class_form_node_type_form_builder() must be an instance of NodeTypeInterface, instance of Drupal\node\Entity\NodeType given in node_type_class_form_node_type_form_builder() (line 40 of modules\contrib\node_type_class\node_type_class.module).
Debugging the code I find the main problem is the NodeTypeInterface in the referenced method is not fully qualified, so when it runs the correct interface is apparently not loaded (otherwise it would work since NodeType implements NodeTypeInterface).
The attached patch fixes the specific problem and also slightly changes the use of FormStateInterface to comply with the Drupal coding standards → documentation. (This is my first ever contribution, so let me know if the patch PHPStorm created is incorrect format or something.)
Code
Very small and simple change. Preferred over Quickfix.
It involves compliance with, or the content of coding standards. Requires broad community agreement.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.