install:debugbar reads the package folder from the working directory and uses the default storage adapter
維護者通常 1 天內回覆
@armanist 已經在處理了。
開始於 2026年11月21日。
評估
這個 Issue 還沒有評估資料。
描述
Summary
php qt install:debugbar reads the php-debugbar package folder relative to the current working directory and works through the application's default storage adapter, so it fails in two setups where it should publish the assets. A few smaller issues of the same code and of the cache adapters, found while reviewing #687, are fixed alongside.
Problems
- Working directory: the vendor path
vendor/php-debugbar/php-debugbar/resourcesis relative. Run from another folder (cd public && php ../qt install:debugbar), the command throwsFileSystemException("directory does not exist") although the package is installed. Paths should resolve from the application base directory, as the target folder already does throughassets_dir(). - Storage adapter: the command copies local files through
FileSystemFactory::get(), which returns the application's default adapter. Withfs.defaultset todropboxorgdrive, it checks the local vendor folder in the cloud and fails. It should use the local adapter (FileSystemType::LOCAL). - Error message: a file that cannot be copied is reported as "The directory … is not writable", which hides the cause (for example a locked or unreadable file). The message should name the file.
- Typo: "The debug ber already installed" should read "The debug bar is already installed".
- Cache docblocks: the
@methodannotations of theCachefacade are untyped (get($key, $default = null)), while the adapters declare the PSR-16 v3 types, so static analysis acceptscache()->get(42), which throws aTypeError. The*Multiple()methods of the four adapters do not list@throws InvalidCacheKeyException.
Scope
src/Console/Commands/DebugBarCommand.php: vendor path frombase_dir(), the local adapter, a message that names the file, the typo; tests for the first three.src/Cache/Cache.phpand the four cache adapters: docblocks only.
Out of scope
- All-or-nothing behaviour of the
*Multiple()methods: PSR-16 does not require it. - Memcached and an expired TTL: a separate bug that also affects 3.1.x.
- 主要語言
- PHP
- 星號
- 43
- 分支
- 22
- 平均合併
- 54 分鐘
- 30 天內合併 PR
- 57
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
quantum-php/framework 的其他 Issue
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 78/100
quantum-php/framework#692 ·
維護者通常 1 天內回覆
-
routing testing
難度 2/5 1-3 小時 新手友好度 76/100
quantum-php/framework#547 ·
維護者通常 1 天內回覆
-
bug
難度 3/5 1-2 天 新手友好度 72/100
quantum-php/framework#694 ·
維護者通常 1 天內回覆
-
refactoring tech debt
難度 5/5 一週以上 新手友好度 20/100
quantum-php/framework#693 ·
維護者通常 1 天內回覆
-
console enhancement
難度 4/5 3-5 天 新手友好度 74/100
quantum-php/framework#688 ·
維護者通常 1 天內回覆
查看 quantum-php/framework 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
難度 2/5 1-3 小時 新手友好度 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 80/100
維護者通常 1 天內回覆
-
bug origin:interactive status:available
難度 2/5 1-3 小時 新手友好度 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
維護者通常 1 天內回覆
-
sync-en
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆