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

Đang mở
#183 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
66/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
documentation

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
3
Fork
1
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
27

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quantum-php/docs

Tất cả issue của quantum-php/docs

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.