#89691Having declare(strict_types=1); in ext_* files breaks PHP because TYPO3 copies these files to a single one
Description
Using declare(strict_types=1); in ext_tables.php or ext_localconf.php can not be used currently because TYPO3 creates a combined cached version of all these files by copying them t oa single file. This leads to having declare(strict_types=1); in teh middle of the file – but it must only appear once and only on the first statement of any PHP source file.
This is the case for all TYPO3 versions supporting PHP7+.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.