Fixing MediaWiki CategoryTree GetModuleStyles error

Since updating to version 1.26 of MediaWiki, category pages with CategoryTree subcategories would display the following error:

Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.categoryTree.css ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /home/$USER/public_html/includes/OutputPage.php at line 623] in /home/$USER/public_html/includes/debug/MWDebug.php on line 300

Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.categoryTree.css ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /home/$USER/public_html/includes/OutputPage.php at line 623] in /home/$USER/public_html/includes/debug/MWDebug.php on line 300

To fix this error, go to /home/$USER/public_html/extensions/CategoryTree/CategoryTree.php, and change the code block:

$wgResourceModules['ext.categoryTree.css'] = array(
'styles' => 'ext.categoryTree.css',
) + $commonModuleInfo;

to the following:

$wgResourceModules['ext.categoryTree.css'] = array(
'position' => 'top',
'styles' => 'ext.categoryTree.css',
) + $commonModuleInfo;

Refresh your category page, and the warning should disappear, and issue should be fixed.