diff options
Diffstat (limited to 'tests/indent/php')
| -rw-r--r-- | tests/indent/php/property-hooks.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/indent/php/property-hooks.php b/tests/indent/php/property-hooks.php new file mode 100644 index 000000000..e4aea4fdd --- /dev/null +++ b/tests/indent/php/property-hooks.php @@ -0,0 +1,13 @@ +<?php + +class Foo +{ + private string $_baz; + + public string $baz { + &get => $this->_baz; + set { + $this->_baz = strtoupper($value); + } + } +} |
