Issue Bug Closed

#100152Multiple warnings in PhpStorm due to "class-string" in phpDocs

Dmitry Dulepov 03/13/23, 11:06 updated 03/13/23, 12:17

Description

PhpStorm checks passed function parameters and tells that a parameter to GeneralUtility::makeInstance() should be class-string but passed is string. This happens at every usage (like in GeneralUtility::makeInstance(ConnectionPool::class)). Problem is with commit 3bb114c9dc1 (https://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/3bb114c9dc1). Suddenly the project is full with useless warnings.

It would be good if phpDoc does not break common IDEs.

See the attachment for the PhpStorm report.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.