網站首頁 編程語言 正文
最近有新項目需要搭建,發現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
- 上一篇:沒有了
- 下一篇:沒有了
相關推薦
- 2024-02-26 openJDK awt 字體支持
- 2022-03-18 C語言回溯法解八皇后問題(八皇后算法)_C 語言
- 2022-09-26 Linux系統監控(top,ps,netstat,kill命令),定時任務,系統啟動(系統的啟動級別
- 2022-04-18 C++中的命名空間詳細介紹_C 語言
- 2022-02-22 Android對話框AlertDialog詳解_Android
- 2023-05-15 GoLang中的加密方法小結_Golang
- 2023-03-29 C++中字符串全排列算法及next_permutation原理詳解_C 語言
- 2022-07-11 docker搭建redis 主從哨兵集群
- 欄目分類
-
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支