Update the docs for 3.2: PHP 8.2 and the updated dependencies

Ouverte
#183 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
66/100
Type d'issue
Documentation
Clarté
Clairement spécifiée
Activité
Active
Stack technique
php
Domaine
documentation

Piste de recherche

Start with v3.0/upgrade-guide.md and write the new "Upgrading from 3.1 to 3.2" section above the 3.0→3.1 one, since it fixes the ordering and the scope for everything else. Then work through the per-page edits: README.md and v3.0/installation.md for PHP 8.2, v3.0/packages/cache/contracts.md for the PSR-16 v3 signatures and InvalidCacheKeyException, v3.0/packages/jwt/overview.md for the HS256 key length, and the three CLI pages for install:debugbar. The issue says the changes wait in the staging branch and every statement must be checked against the 3.2.x code, so diff the docs against that code before opening a PR; done means no page still describes PHP 8.1 or the old package behaviour.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

documentation

Summary

Framework 3.2.0 requires PHP 8.2 and updates its dependencies (quantum-php/framework#687, PR #689), and the starter project follows (quantum-php/project#220, PR #221). The docs still describe PHP 8.1 and the old package behaviour.

Pages

  • README.md, v3.0/installation.md: PHP 8.2 or newer (both say 8.1 now).
  • v3.0/upgrade-guide.md: a new "Upgrading from 3.1 to 3.2" part above "Upgrading from 3.0 to 3.1", covering what an application must do:
    • PHP 8.2; an application on 8.1 stays on 3.1.x
    • psr/log 3 and firebase/php-jwt 7 (allow the newer major); php-jwt 7 rejects an HMAC key shorter than 32 bytes for HS256 (Provided key is too short), so a shorter APP_KEY needs php qt core:key
    • psr/simple-cache 3: typed cache signatures, string keys for get()/set()/has()/delete(), InvalidCacheKeyException for an invalid key in the *Multiple() methods, custom adapters must declare the same types
    • Symfony 7.4: Application::addCommand() instead of the deprecated add()
    • php-debugbar 3.8: run php qt install:debugbar again
    • swagger-php 7.8: (new Generator())->generate() instead of Generator::scan()
    • gumlet/php-image-resize 3: the gd extension is required
    • the starter project: symfony/process and symfony/yaml 7.4, PHPUnit 11.5
  • v3.0/packages/cache/contracts.md: the signatures listed there are untyped (get($key, $default = null)); show the PSR-16 v3 types and the invalid-key exception.
  • v3.0/packages/jwt/overview.md: the minimum key length for HS256.
  • v3.0/cli/code-generation.md, v3.0/cli/console-commands.md, v3.0/packages/console/built-in-commands.md: what install:debugbar does now (3.x files, re-run over 2.x files, keeps the app's own files).

Every statement is checked against the 3.2.x code. The changes wait in staging until 3.2.0 is released.

Out of scope

  • quantum-php/framework#691 and #692: documented with their own changes if needed.
Langage dominant
Aucune donnée de langage
Étoiles
3
Forks
1
Merge moyen
2 min
PR mergées (30 j)
27

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de quantum-php/docs

Toutes les issues de quantum-php/docs

Issues similaires

Plus d'issues Documentation

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.