install:debugbar reads the package folder from the working directory and uses the default storage adapter
Les mainteneurs répondent en général sous 1 jour
@armanist y travaille déjà.
Depuis le 21/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- PHP
- Étoiles
- 43
- Forks
- 22
- Merge moyen
- 54 min
- PR mergées (30 j)
- 57
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de quantum-php/framework
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
quantum-php/framework#692 ·
Les mainteneurs répondent en général sous 1 jour
-
routing testing
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
quantum-php/framework#547 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
quantum-php/framework#694 ·
Les mainteneurs répondent en général sous 1 jour
-
Raise PHPStan to level 9Ouverterefactoring tech debt
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
quantum-php/framework#693 ·
Les mainteneurs répondent en général sous 1 jour
-
console enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 74/100
quantum-php/framework#688 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de quantum-php/framework
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
bug origin:interactive status:available
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
Les mainteneurs répondent en général sous 1 jour
-
sync-en
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour