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

Aperta
#183 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
php
Ambito
documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Nessun dato sulla lingua
Stelle
3
Fork
1
Merge medio
2m
PR unite (30g)
27

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quantum-php/docs

Tutte le issue di quantum-php/docs

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.