php / php/doc-en

Documentation of operators should include the info about which PHP versions support them

Open
#4,677 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

Affected page

https://www.php.net/manual/en/language.operators.assignment.php (and other operator pages)

Current issue

I wanted to check in which version ??= was added (as my day-to-day work uses a recent PHP version where I'm able to use it, but my open-source contributions can have to deal with support for older versions and I forgot whether I could use that operator in such code or no). My first attempt was to look at the official documentation, expecting to have such info available (similar to how documentation for functions or classes provides this info). However, this info is not available.

Suggested improvement

It would be great to have the info about supported versions for each operator.

Additional context

Contributor guide

No contributing guide indexed for this repository

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 with the affected assignment-operator page and compare its version information with the function and class documentation mentioned in the issue. Review the other operator pages to determine the full scope; done means each operator documents the PHP versions that support it.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.