install:debugbar reads the package folder from the working directory and uses the default storage adapter
Mantenedores costumam responder em até 1 dia
@armanist já está trabalhando nisso.
Desde 21/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- PHP
- Estrelas
- 43
- Forks
- 22
- Merge médio
- 54min
- PRs com merge (30d)
- 57
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de quantum-php/framework
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
quantum-php/framework#692 ·
Mantenedores costumam responder em até 1 dia
-
routing testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
quantum-php/framework#547 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
quantum-php/framework#694 ·
Mantenedores costumam responder em até 1 dia
-
Raise PHPStan to level 9Abertarefactoring tech debt
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
quantum-php/framework#693 ·
Mantenedores costumam responder em até 1 dia
-
console enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 74/100
quantum-php/framework#688 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de quantum-php/framework
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
Mantenedores costumam responder em até 1 dia
-
bug origin:interactive status:available
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia