JTable and its subclasses require the use of a JDatabaseDriver object to be passed in either the constructors or the setDbo() method however this is not enforced in the code except for a handful of subclasses which are already typehinting. This adds typehints for all of the classes to ensure the correct object is used. This also removes all of the referenced parameters, there's not a need for those anymore.
Testing Instructions
The CMS will continue to function as normal. There aren't any existing cases in normal operation where another object gets passed in.
Documentation Changes Required
Subclasses of JTable will need to ensure they are passing a JDatabaseDriver object to the parent constructor
Subclasses of JTable will need to change the method signature of setDbo() if they have an extended version of that method to include the typehint
I have tested this item✅ successfully on 720e47e
I made a code review only
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12059.