summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-10-27 15:09:46 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-10-27 15:09:46 -0700
commita8a49ebf61449f80d8c5ea2f9768f0ca590e51dd (patch)
tree7e2d330cdb4f7784076ed0e950d85b6b15b9cf47 /t
parentother small fixes for 2.29.2 (diff)
parentuserdiff: PHP: catch "abstract" and "final" functions (diff)
downloadtgif-a8a49ebf61449f80d8c5ea2f9768f0ca590e51dd.tar.xz
Merge branch 'js/userdiff-php'
Userdiff for PHP update. * js/userdiff-php: userdiff: PHP: catch "abstract" and "final" functions
Diffstat (limited to 't')
-rw-r--r--t/t4018/php-abstract-method7
-rw-r--r--t/t4018/php-final-method7
2 files changed, 14 insertions, 0 deletions
diff --git a/t/t4018/php-abstract-method b/t/t4018/php-abstract-method
new file mode 100644
index 0000000000..ce215df75a
--- /dev/null
+++ b/t/t4018/php-abstract-method
@@ -0,0 +1,7 @@
+abstract class Klass
+{
+ abstract public function RIGHT(): ?string
+ {
+ return 'ChangeMe';
+ }
+}
diff --git a/t/t4018/php-final-method b/t/t4018/php-final-method
new file mode 100644
index 0000000000..537fb8ad9a
--- /dev/null
+++ b/t/t4018/php-final-method
@@ -0,0 +1,7 @@
+class Klass
+{
+ final public function RIGHT(): string
+ {
+ return 'ChangeMe';
+ }
+}