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分
- マージ済み PR(30日)
- 57
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 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 日以内に返信