[Task] fix deprecated usaged

Change-Id: I84d82359d44137f7bca2f701df3716f83ba9c1a8
Reviewed-on: https://review.typo3.org/29995
Reviewed-by: Sebastian Fischer
Tested-by: Sebastian Fischer