phpDocumentor / phpDocumentor/guides

[DEPRECATION] Extending CompilerContext is deprecated, please use the CompilerContextInterface instead.

Open
#971 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

deprecation
Dominant language
PHP
Stars
36
Forks
22
Avg merge
2d 2h
Merged PRs (30d)
24

Description

Feature request

In version 1 it's possible to extend the compiler context to add extra functionality to the compiler. A better way of doing this is using encapsulation using the CompilerContextInterface.

In v2 we will make the compilercontext final and extending this class will be impossible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating CompilerContext and CompilerContextInterface and identify where CompilerContext is extended or exposed. Review the surrounding parser and compiler integration points before determining the migration scope. Done means the v1 extension path is replaced or deprecated in favor of interface-based encapsulation, with relevant checks updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
compilers
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.