-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Running, for example, the LTS Composer 2.2 using PHP 8.4 breaks all sort of things due to some errors being duplicated to stdout when doing, say, a simple composer config vendor-dir:
Deprecated: Composer\Util\ErrorHandler::register(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/ErrorHandler.php on line 89
vendor
This is in addition to many errors on stderr:
PHP Deprecated: Composer\Util\ErrorHandler::register(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/ErrorHandler.php on line 89
Deprecation Notice: Composer\Command\InitCommand::determineRequirements(): Implicitly marking parameter $platformRepo as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:525
Deprecation Notice: Composer\Command\InitCommand::findBestVersionAndNameForPackage(): Implicitly marking parameter $platformRepo as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:898
Deprecation Notice: Composer\Command\InitCommand::getPlatformExceptionDetails(): Implicitly marking parameter $platformRepo as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/InitCommand.php:1022
Deprecation Notice: Composer\Command\CreateProjectCommand::installProject(): Implicitly marking parameter $platformRequirementFilter as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:192
Deprecation Notice: Composer\Command\CreateProjectCommand::installRootPackage(): Implicitly marking parameter $repositories as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php:361
Deprecation Notice: Composer\Command\ShowCommand::printPackageInfo(): Implicitly marking parameter $latestPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/ShowCommand.php:656
Deprecation Notice: Composer\Command\ShowCommand::printMeta(): Implicitly marking parameter $latestPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/ShowCommand.php:684
Deprecation Notice: Composer\Command\ShowCommand::printPackageInfoAsJson(): Implicitly marking parameter $latestPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/ShowCommand.php:831
Deprecation Notice: Composer\Command\ArchiveCommand::archive(): Implicitly marking parameter $composer as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Command/ArchiveCommand.php:126
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
Deprecation Notice: Composer\Util\Filesystem::__construct(): Implicitly marking parameter $executor as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/Filesystem.php:31
Deprecation Notice: Composer\Config::prohibitUrlByConfig(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Config.php:588
Deprecation Notice: Composer\Json\JsonFile::__construct(): Implicitly marking parameter $httpDownloader as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Json/JsonFile.php:55
Deprecation Notice: Composer\Json\JsonFile::__construct(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Json/JsonFile.php:55
Deprecation Notice: JsonSchema\Constraints\BaseConstraint::__construct(): Implicitly marking parameter $factory as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php:41
Deprecation Notice: JsonSchema\Constraints\BaseConstraint::addError(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php:46
Deprecation Notice: JsonSchema\Constraints\BaseConstraint::addError(): Implicitly marking parameter $more as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php:46
Deprecation Notice: JsonSchema\Constraints\Factory::__construct(): Implicitly marking parameter $schemaStorage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php:76
Deprecation Notice: JsonSchema\Constraints\Factory::__construct(): Implicitly marking parameter $uriRetriever as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php:76
Deprecation Notice: JsonSchema\Constraints\Constraint::incrementPath(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:42
Deprecation Notice: JsonSchema\Constraints\Constraint::checkArray(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:68
Deprecation Notice: JsonSchema\Constraints\Constraint::checkObject(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:86
Deprecation Notice: JsonSchema\Constraints\Constraint::checkType(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:103
Deprecation Notice: JsonSchema\Constraints\Constraint::checkUndefined(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:119
Deprecation Notice: JsonSchema\Constraints\Constraint::checkString(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:136
Deprecation Notice: JsonSchema\Constraints\Constraint::checkNumber(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:152
Deprecation Notice: JsonSchema\Constraints\Constraint::checkEnum(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:168
Deprecation Notice: JsonSchema\Constraints\Constraint::checkFormat(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:184
Deprecation Notice: JsonSchema\Constraints\ConstraintInterface::addError(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php:43
Deprecation Notice: JsonSchema\Constraints\ConstraintInterface::addError(): Implicitly marking parameter $more as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php:43
Deprecation Notice: JsonSchema\Constraints\ConstraintInterface::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php:64
Deprecation Notice: JsonSchema\SchemaStorage::__construct(): Implicitly marking parameter $uriRetriever as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php:19
Deprecation Notice: JsonSchema\SchemaStorage::__construct(): Implicitly marking parameter $uriResolver as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php:19
Deprecation Notice: JsonSchema\Constraints\SchemaConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php:31
Deprecation Notice: JsonSchema\Constraints\UndefinedConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:34
Deprecation Notice: JsonSchema\Constraints\TypeConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php:42
Deprecation Notice: JsonSchema\Constraints\ObjectConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:30
Deprecation Notice: JsonSchema\Constraints\ObjectConstraint::validatePatternProperties(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:54
Deprecation Notice: JsonSchema\Constraints\ObjectConstraint::validateElement(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:93
Deprecation Notice: JsonSchema\Constraints\ObjectConstraint::validateProperties(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:135
Deprecation Notice: JsonSchema\Constraints\ObjectConstraint::validateMinMaxConstraint(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:177
Deprecation Notice: JsonSchema\Constraints\StringConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php:25
Deprecation Notice: JsonSchema\Constraints\FormatConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php:27
Deprecation Notice: JsonSchema\Constraints\CollectionConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php:25
Deprecation Notice: JsonSchema\Constraints\CollectionConstraint::validateItems(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php:64
Deprecation Notice: JsonSchema\Constraints\EnumConstraint::check(): Implicitly marking parameter $path as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php:25
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
Deprecation Notice: Composer\Util\ProcessExecutor::__construct(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/ProcessExecutor.php:57
Deprecation Notice: Composer\Util\StreamContextFactory::getTlsDefaults(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/StreamContextFactory.php:137
Deprecation Notice: Composer\CaBundle\CaBundle::getSystemCaRootBundlePath(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:67
Deprecation Notice: Composer\CaBundle\CaBundle::validateCaFile(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:163
Deprecation Notice: Composer\CaBundle\CaBundle::caFileUsable(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:343
Deprecation Notice: Composer\CaBundle\CaBundle::caDirUsable(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:356
Deprecation Notice: Composer\CaBundle\CaBundle::isFile(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:369
Deprecation Notice: Composer\CaBundle\CaBundle::isDir(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:384
Deprecation Notice: Composer\CaBundle\CaBundle::isReadable(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:399
Deprecation Notice: Composer\CaBundle\CaBundle::glob(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/vendor/composer/ca-bundle/src/CaBundle.php:414
Deprecation Notice: Composer\Util\RemoteFilesystem::__construct(): Implicitly marking parameter $authHelper as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:82
Deprecation Notice: Composer\Util\RemoteFilesystem::getRemoteContents(): Implicitly marking parameter $responseHeaders as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:564
Deprecation Notice: Composer\Util\Loop::__construct(): Implicitly marking parameter $processExecutor as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/Loop.php:33
Deprecation Notice: Composer\Util\Loop::wait(): Implicitly marking parameter $progress as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Util/Loop.php:65
Deprecation Notice: Composer\EventDispatcher\EventDispatcher::__construct(): Implicitly marking parameter $process as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:69
Deprecation Notice: Composer\EventDispatcher\EventDispatcher::dispatch(): Implicitly marking parameter $event as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:98
Deprecation Notice: Composer\Repository\RepositoryFactory::fromString(): Implicitly marking parameter $rm as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryFactory.php:67
Deprecation Notice: Composer\Repository\RepositoryFactory::createRepo(): Implicitly marking parameter $rm as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryFactory.php:80
Deprecation Notice: Composer\Repository\RepositoryFactory::defaultRepos(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryFactory.php:96
Deprecation Notice: Composer\Repository\RepositoryFactory::defaultRepos(): Implicitly marking parameter $config as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryFactory.php:96
Deprecation Notice: Composer\Repository\RepositoryFactory::defaultRepos(): Implicitly marking parameter $rm as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryFactory.php:96
Deprecation Notice: Composer\Repository\RepositoryFactory::manager(): Implicitly marking parameter $eventDispatcher as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryFactory.php:121
Deprecation Notice: Composer\Repository\RepositoryFactory::manager(): Implicitly marking parameter $process as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryFactory.php:121
Deprecation Notice: Composer\Repository\RepositoryManager::__construct(): Implicitly marking parameter $eventDispatcher as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryManager.php:48
Deprecation Notice: Composer\Repository\RepositoryManager::__construct(): Implicitly marking parameter $process as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/RepositoryManager.php:48
Deprecation Notice: Composer\Package\Loader\RootPackageLoader::__construct(): Implicitly marking parameter $parser as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Package/Loader/RootPackageLoader.php:52
Deprecation Notice: Composer\Package\Loader\RootPackageLoader::__construct(): Implicitly marking parameter $versionGuesser as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Package/Loader/RootPackageLoader.php:52
Deprecation Notice: Composer\Package\Loader\RootPackageLoader::__construct(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Package/Loader/RootPackageLoader.php:52
Deprecation Notice: Composer\Package\Loader\ArrayLoader::__construct(): Implicitly marking parameter $parser as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:40
Deprecation Notice: Composer\Package\Loader\ValidatingArrayLoader::__construct(): Implicitly marking parameter $parser as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Package/Loader/ValidatingArrayLoader.php:48
Deprecation Notice: Composer\Repository\PlatformRepository::__construct(): Implicitly marking parameter $runtime as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/PlatformRepository.php:71
Deprecation Notice: Composer\Repository\PlatformRepository::__construct(): Implicitly marking parameter $hhvmDetector as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/PlatformRepository.php:71
Deprecation Notice: Composer\Repository\ComposerRepository::__construct(): Implicitly marking parameter $eventDispatcher as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:136
Deprecation Notice: Composer\Repository\ComposerRepository::whatProvides(): Implicitly marking parameter $acceptableStabilities as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:708
Deprecation Notice: Composer\Repository\ComposerRepository::whatProvides(): Implicitly marking parameter $stabilityFlags as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:708
Deprecation Notice: Composer\Repository\ComposerRepository::loadAsyncPackages(): Implicitly marking parameter $acceptableStabilities as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:876
Deprecation Notice: Composer\Repository\ComposerRepository::loadAsyncPackages(): Implicitly marking parameter $stabilityFlags as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:876
Deprecation Notice: Composer\Repository\ComposerRepository::isVersionAcceptable(): Implicitly marking parameter $acceptableStabilities as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:991
Deprecation Notice: Composer\Repository\ComposerRepository::isVersionAcceptable(): Implicitly marking parameter $stabilityFlags as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:991
Deprecation Notice: Composer\Cache::__construct(): Implicitly marking parameter $filesystem as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Cache.php:51
Deprecation Notice: Composer\Repository\FilesystemRepository::__construct(): Implicitly marking parameter $rootPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/FilesystemRepository.php:50
Deprecation Notice: Composer\Repository\FilesystemRepository::__construct(): Implicitly marking parameter $filesystem as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Repository/FilesystemRepository.php:50
Deprecation Notice: Composer\Installer\InstallationManager::__construct(): Implicitly marking parameter $eventDispatcher as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:56
Deprecation Notice: Composer\Downloader\DownloadManager::__construct(): Implicitly marking parameter $filesystem as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:49
Deprecation Notice: Composer\Downloader\DownloadManager::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:187
Deprecation Notice: Composer\Downloader\DownloadManager::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:257
Deprecation Notice: Composer\Downloader\DownloadManager::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:374
Deprecation Notice: Composer\Downloader\DownloadManager::getAvailableSources(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:412
Deprecation Notice: Composer\Downloader\GitDownloader::__construct(): Implicitly marking parameter $process as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/GitDownloader.php:52
Deprecation Notice: Composer\Downloader\GitDownloader::__construct(): Implicitly marking parameter $fs as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/GitDownloader.php:52
Deprecation Notice: Composer\Downloader\GitDownloader::doDownload(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/GitDownloader.php:61
Deprecation Notice: Composer\Downloader\VcsDownloader::__construct(): Implicitly marking parameter $process as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:44
Deprecation Notice: Composer\Downloader\VcsDownloader::__construct(): Implicitly marking parameter $fs as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:44
Deprecation Notice: Composer\Downloader\VcsDownloader::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:63
Deprecation Notice: Composer\Downloader\VcsDownloader::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:96
Deprecation Notice: Composer\Downloader\VcsDownloader::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:113
Deprecation Notice: Composer\Downloader\VcsDownloader::doDownload(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/VcsDownloader.php:300
Deprecation Notice: Composer\Downloader\DownloaderInterface::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloaderInterface.php:39
Deprecation Notice: Composer\Downloader\DownloaderInterface::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloaderInterface.php:55
Deprecation Notice: Composer\Downloader\DownloaderInterface::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/DownloaderInterface.php:98
Deprecation Notice: Composer\Downloader\SvnDownloader::doDownload(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/SvnDownloader.php:34
Deprecation Notice: Composer\Downloader\FossilDownloader::doDownload(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FossilDownloader.php:27
Deprecation Notice: Composer\Downloader\HgDownloader::doDownload(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/HgDownloader.php:27
Deprecation Notice: Composer\Downloader\PerforceDownloader::doDownload(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/PerforceDownloader.php:30
Deprecation Notice: Composer\Downloader\ZipDownloader::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/ZipDownloader.php:42
Deprecation Notice: Composer\Downloader\ArchiveDownloader::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/ArchiveDownloader.php:38
Deprecation Notice: Composer\Downloader\ArchiveDownloader::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/ArchiveDownloader.php:48
Deprecation Notice: Composer\Downloader\FileDownloader::__construct(): Implicitly marking parameter $eventDispatcher as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:86
Deprecation Notice: Composer\Downloader\FileDownloader::__construct(): Implicitly marking parameter $cache as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:86
Deprecation Notice: Composer\Downloader\FileDownloader::__construct(): Implicitly marking parameter $filesystem as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:86
Deprecation Notice: Composer\Downloader\FileDownloader::__construct(): Implicitly marking parameter $process as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:86
Deprecation Notice: Composer\Downloader\FileDownloader::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:115
Deprecation Notice: Composer\Downloader\FileDownloader::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:299
Deprecation Notice: Composer\Downloader\FileDownloader::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:307
Deprecation Notice: Composer\Downloader\PathDownloader::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Downloader/PathDownloader.php:41
Deprecation Notice: Composer\Autoload\AutoloadGenerator::__construct(): Implicitly marking parameter $io as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:80
Deprecation Notice: Composer\Installer\BinaryInstaller::__construct(): Implicitly marking parameter $filesystem as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/BinaryInstaller.php:50
Deprecation Notice: Composer\Installer\LibraryInstaller::__construct(): Implicitly marking parameter $filesystem as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:58
Deprecation Notice: Composer\Installer\LibraryInstaller::__construct(): Implicitly marking parameter $binaryInstaller as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:58
Deprecation Notice: Composer\Installer\LibraryInstaller::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:111
Deprecation Notice: Composer\Installer\LibraryInstaller::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:122
Deprecation Notice: Composer\Installer\LibraryInstaller::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:133
Deprecation Notice: Composer\Installer\InstallerInterface::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/InstallerInterface.php:53
Deprecation Notice: Composer\Installer\InstallerInterface::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/InstallerInterface.php:68
Deprecation Notice: Composer\Installer\InstallerInterface::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/InstallerInterface.php:111
Deprecation Notice: Composer\Installer\PluginInstaller::__construct(): Implicitly marking parameter $fs as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:37
Deprecation Notice: Composer\Installer\PluginInstaller::__construct(): Implicitly marking parameter $binaryInstaller as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:37
Deprecation Notice: Composer\Installer\PluginInstaller::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:53
Deprecation Notice: Composer\Installer\PluginInstaller::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php:67
Deprecation Notice: Composer\Installer\MetapackageInstaller::download(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/MetapackageInstaller.php:56
Deprecation Notice: Composer\Installer\MetapackageInstaller::prepare(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/MetapackageInstaller.php:65
Deprecation Notice: Composer\Installer\MetapackageInstaller::cleanup(): Implicitly marking parameter $prevPackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Installer/MetapackageInstaller.php:74
Deprecation Notice: Composer\Package\Locker::__construct(): Implicitly marking parameter $process as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Package/Locker.php:63
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
Deprecation Notice: Composer\Plugin\PluginManager::__construct(): Implicitly marking parameter $globalComposer as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:79
Deprecation Notice: Composer\Plugin\PluginManager::addPlugin(): Implicitly marking parameter $sourcePackage as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:390
Deprecation Notice: Composer\Plugin\PluginManager::parseAllowedPlugins(): Implicitly marking parameter $locker as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:662
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
Deprecation Notice: Constant E_STRICT is deprecated in phar:///usr/local/bin/composer/src/Composer/Util/Silencer.php:36
In bin/composer, both error_reporting and display_errors are set to values that cause this: https://github.com/composer/composer/blob/5eeba719d3f1388f68773c28e3971a7f441ee919/bin/composer#L26,L45
This does not take into account that an out of the box PHP install already logs errors to stderr in the CLI SAPI, and that display_errors might already be set to stderr (that's not the default, but a possible setting).
I think there are several things that can be improved here:
- at least the 2.2 LTS release series should set
error_reporting(E_ALL & ~E_DEPRECATED)for PHP 8.4 compatibility; - if
display_errorsis already set tostderr, it should not be overridden to1; - generally,
display_errorsshould probably be set tostderrand not1(at least if the SAPI is CLI); - if
error_logis empty, or set tostderr,display_errorsshould probably not be enabled (since the error log will be printed to the CLI already, and all this then does is duplicate errors).
The compatibility issue in 2.2 LTS with PHP 8.4 is fixed by either options 1 or 2, which IMO are fairly low risk.
The other measures also make sense to me, but probably require a little testing (because who knows what kind of "creative" things people do with the composer binary ;))
Would it be possible to have options 1 and/or 2 applied to the 2.2 branch, and a release be cut?