Browse Source
PHP permits functions to be defined like final public function foo() { } abstract protected function bar() { } but our hunk header pattern does not recognize these decorations. Add "final" and "abstract" to the list of function modifiers. Helped-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Javier Spagnoletti <phansys@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint


3 changed files with 15 additions and 1 deletions
@ -0,0 +1,7 @@ |
|||||||
|
abstract class Klass |
||||||
|
{ |
||||||
|
abstract public function RIGHT(): ?string |
||||||
|
{ |
||||||
|
return 'ChangeMe'; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
class Klass |
||||||
|
{ |
||||||
|
final public function RIGHT(): string |
||||||
|
{ |
||||||
|
return 'ChangeMe'; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue