doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

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

Open stof opened this issue 8 months ago • 2 comments

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

stof avatar May 14 '25 09:05 stof

Just in case anyone comes across this ticket and is wondering - ??= was added in PHP 7.4 ;-)

jrfnl avatar Oct 26 '25 18:10 jrfnl

This is effectively available on the token appendix page: https://www.php.net/manual/en/tokens.php

Girgias avatar Nov 04 '25 06:11 Girgias