aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4018/php-enum
diff options
context:
space:
mode:
authorUSAMI Kenta <tadsan@zonu.me>2021-08-31 06:01:25 +0000
committerJunio C Hamano <gitster@pobox.com>2021-08-31 12:13:36 -0700
commit2c7f3aacd31b564beca3a3d93a98f4efded6af58 (patch)
tree6f0e507634c14ad2f1f15f7c563948d46396c1f7 /t/t4018/php-enum
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf (diff)
downloadgit-2c7f3aacd31b564beca3a3d93a98f4efded6af58.tar.gz
userdiff: support enum keyword in PHP hunk header
"enum" keyword will be introduced in PHP 8.1. https://wiki.php.net/rfc/enumerations Signed-off-by: USAMI Kenta <tadsan@zonu.me> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/php-enum')
-rw-r--r--t/t4018/php-enum4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t4018/php-enum b/t/t4018/php-enum
new file mode 100644
index 0000000000..91a69c1a2b
--- /dev/null
+++ b/t/t4018/php-enum
@@ -0,0 +1,4 @@
+enum RIGHT: string
+{
+ case Foo = 'ChangeMe';
+}