Skip to content

[PHP8.6] Test scaffolding for 8.6 + deprecation-clean audit #220

Closed

Description

@lisachenko

Part of epic #219.

Scope

  1. 8.6 stub/guard scaffolding: establish the per-feature stub pattern for 8.6 (tests/Stub/FileWith*86.php) and the PHP_VERSION_ID >= 80600 guard convention, mirroring how 8.5 stubs (FileWithConstExprClosures85.php, etc.) are wired into ReflectionFileTest/parity tests. Add at least one minimal 8.6 stub exercising already-parseable syntax so the wiring is proven.
  2. Deprecation audit: ensure the library itself runs deprecation-clean under PHP 8.6 — no is_double()/is_integer()/is_long(), no return from finally, no reserved-word identifiers, no other calls hit by the "Deprecations for PHP 8.6" RFC batch (check src/ and tests/).
  3. CI: verify the experimental 8.6 job in .github/workflows/phpunit.yml actually installs and runs on 8.6 beta (setup-php), and surface its result clearly; keep it allowed-to-fail until GA.

Acceptance criteria

  • New stub + guard pattern in place and exercised by at least one test.
  • vendor/bin/phpunit green on 8.5; no 8.6 deprecation warnings triggered by library code.
  • vendor/bin/phpstan analyse src --no-progress clean (level 10).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions