diff --git a/bin/generate_testsuites.php b/bin/generate_testsuites.php index ebc6632cd..24045b8cf 100644 --- a/bin/generate_testsuites.php +++ b/bin/generate_testsuites.php @@ -37,7 +37,7 @@ $order = array_map( ); array_multisort($order, $files); -$chunks = array_chunk($files, ceil(count($files) / $number_of_chunks)); +$chunks = array_chunk($files, (int) ceil(count($files) / $number_of_chunks)); $phpunit_config = new DOMDocument('1.0', 'UTF-8'); $phpunit_config->preserveWhiteSpace = false; diff --git a/src/Psalm/Internal/PluginManager/PluginList.php b/src/Psalm/Internal/PluginManager/PluginList.php index a00aad407..eee2faddf 100644 --- a/src/Psalm/Internal/PluginManager/PluginList.php +++ b/src/Psalm/Internal/PluginManager/PluginList.php @@ -16,7 +16,7 @@ use function strpos; /** * @internal */ -final class PluginList +class PluginList { private ?ConfigFile $config_file = null;