日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

MAC更新和使用composer

作者:007php007 更新時間: 2024-04-08 編程語言

最近有新項目需要搭建,發現composer安裝項目有報錯信息

PHP Deprecated:  Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112

Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112

初步排查,composer庫不是新的了

?經過翻譯,果然是版本長時間沒更新,Composer version 2.0.13?有些方法棄用了

查看當前composer版本和基本信息

composer -V

?

composer

確定了當前版本,就可以升級下版本看結果了

composer selfupdate

提示升級成功,如果想回退的話執行 就能回到上個版本(升級成功的話,切勿操作

composer self-update --rollback

最后看下升級完成后的版本?

composer -V

?

錯誤解決,又可以和composer一起玩耍了?

原文鏈接:https://blog.csdn.net/qq_33665793/article/details/129762665

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新