mirror of
https://github.com/git/git.git
synced 2026-01-10 18:20:27 +00:00
Merge branch 'js/userdiff-php'
Userdiff for PHP update. * js/userdiff-php: userdiff: PHP: catch "abstract" and "final" functions
This commit is contained in:
7
t/t4018/php-abstract-method
Normal file
7
t/t4018/php-abstract-method
Normal file
@@ -0,0 +1,7 @@
|
||||
abstract class Klass
|
||||
{
|
||||
abstract public function RIGHT(): ?string
|
||||
{
|
||||
return 'ChangeMe';
|
||||
}
|
||||
}
|
||||
7
t/t4018/php-final-method
Normal file
7
t/t4018/php-final-method
Normal file
@@ -0,0 +1,7 @@
|
||||
class Klass
|
||||
{
|
||||
final public function RIGHT(): string
|
||||
{
|
||||
return 'ChangeMe';
|
||||
}
|
||||
}
|
||||
@@ -147,7 +147,7 @@ PATTERNS("perl",
|
||||
"|=~|!~"
|
||||
"|<<|<>|<=>|>>"),
|
||||
PATTERNS("php",
|
||||
"^[\t ]*(((public|protected|private|static)[\t ]+)*function.*)$\n"
|
||||
"^[\t ]*(((public|protected|private|static|abstract|final)[\t ]+)*function.*)$\n"
|
||||
"^[\t ]*((((final|abstract)[\t ]+)?class|interface|trait).*)$",
|
||||
/* -- */
|
||||
"[a-zA-Z_][a-zA-Z0-9_]*"
|
||||
|
||||
Reference in New Issue
Block a user