From 65dad549b4b14632504a3421174fd4b6ac4d3a23 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 31 Aug 2022 10:19:25 +0300 Subject: [PATCH] Spaces in type casting --- spec.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec.md b/spec.md index a26ea89..2c0ba7e 100644 --- a/spec.md +++ b/spec.md @@ -990,7 +990,9 @@ $i++; ++$j; ``` -Type casting operators MUST NOT have any space within the parentheses: +Type casting operators MUST NOT have any space within the parentheses and MUST be separated from the variable they are +operating on by exactly one space: + ```php $intValue = (int) $input; ```