[CLEANUP] Use type[] instead of array<type> in PHPDoc

This allows PhpStorm to have type-based autocompletion for array elements.

Resolves: #57842

Change-Id: I90ba4568c3ef1d5d6e2821b00eb495f2cab2c259
Reviewed-on: https://review.typo3.org/29385
Reviewed-by: Oliver Klee
Tested-by: Oliver Klee