Updates PHPStan to the latest version 2.1.39 and regenerates the
baseline. Since the relevant `is_array` check is actually superfluous,
it is removed. In addition, global functions used in functional tests
are added to PHPStan's bootstrap files in order to make PHPStan aware of
the available functions.
Executed commands:
> Build/Scripts/runTests.sh -s composer -- \
require --dev phpstan/phpstan:^2.1.39
> Build/Scripts/runTests.sh -s phpstanGenerateBaseline