Author: Louis-Arnaud (lacatoire)
Committer: GitHub (web-flow)
Pusher: derickr
Date: 2026-03-17T11:00:29Z
Commit: Add natural URL shortcuts for operators and language constructs (#767… · php/web-php@03ab57c · GitHub
Raw diff: https://github.com/php/web-php/commit/03ab57cbb2bf44b284ba6adc4c4b09dc8ae09a79.diff
Add natural URL shortcuts for operators and language constructs (#767) (#1814)
Adds intuitive shortcut aliases like php.net/operator.precedence,
php.net/backtick.operator, php.net/string.type, php.net/statements,
etc. Supports both dot and hyphen separators for consistency.
Changed paths:
M error.php
Diff:
diff --git a/error.php b/error.php
index 6b4c2c6f1d..3feda731ca 100644
--- a/error.php
+++ b/error.php
@@ -398,6 +398,38 @@
"htaccess" => "configuration.changes",
"php_value" => "configuration.changes",
+ "operator.precedence" => "language.operators.precedence",
+ "operator-precedence" => "language.operators.precedence",
+ "precedence" => "language.operators.precedence",
+ "arithmetic.operators" => "language.operators.arithmetic",
+ "arithmetic-operators" => "language.operators.arithmetic",
+ "assignment.operators" => "language.operators.assignment",
+ "assignment-operators" => "language.operators.assignment",
+ "bitwise.operators" => "language.operators.bitwise",
+ "bitwise-operators" => "language.operators.bitwise",
+ "comparison.operators" => "language.operators.comparison",
+ "comparison-operators" => "language.operators.comparison",
+ "error.control" => "language.operators.errorcontrol",
+ "error-control" => "language.operators.errorcontrol",
+ "backtick" => "language.operators.execution",
+ "backtick.operator" => "language.operators.execution",
+ "backtick-operator" => "language.operators.execution",
+ "execution.operator" => "language.operators.execution",
+ "increment.operators" => "language.operators.increment",
+ "increment-operators" => "language.operators.increment",
+ "logical.operators" => "language.operators.logical",
+ "logical-operators" => "language.operators.logical",
+ "string.operators" => "language.operators.string",
+ "string-operators" => "language.operators.string",
+ "type.operators" => "language.operators.type",
+ "type-operators" => "language.operators.type",
+ "string.type" => "language.types.string",
+ "array.type" => "language.types.array",
+ "object.type" => "language.types.object",
+ "statements" => "control-structures.intro",
+ "control.structures" => "control-structures.intro",
+ "control-structures" => "control-structures.intro",
+
"ternary" => "language.operators.comparison",
"instanceof" => "language.operators.type",
"if" => "language.control-structures",