Breaking: #101133 - IconFactory->getIcon() signature change 

See forge#101133

Description 

The public method getIcon() in \TYPO3\CMS\Core\Imaging\IconFactory has changed its 4th parameter, in order to prepare the removal of class \TYPO3\CMS\Core\Type\Icon\IconState .

Impact 

Custom extensions extending the getIcon() method of class \TYPO3\CMS\Core\Imaging\IconFactory not having the same signature will fail with a PHP fatal error.

Affected installations 

Custom extensions extending the getIcon() method from class \TYPO3\CMS\Core\Imaging\IconFactory .

Migration 

Adapt the 4th parameter of getIcon() to be of type \TYPO3\CMS\Core\Type\Icon\IconState|IconState $state = null

In addition, adapt the code in the body of the method.