Merge pull request #5432 in master
Fix typehint for getServiceLocator().

It's always `ServiceLocatorInterface` because getServiceLocator() returns the contents of $this->serviceLocator which is set by setServiceLocator(ServiceLocatorInterface $sl).
Merge pull request #5471 from Thinkscape/patch-1

Fix typehint for getServiceLocator().
Merge branch 'hotfix/5471' into develop

Forward port #5471