aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/php
diff options
context:
space:
mode:
authorCaleb White <cdwhite3@pm.me>2024-08-18 05:30:04 -0500
committerGitHub <noreply@github.com>2024-08-18 12:30:04 +0200
commitec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631 (patch)
treec7ba6a551dc8fa364104378872d2cad5ff0b6d9b /tests/indent/php
parentbot(lockfile): update go, html, json, python, rust, swift, vhs (diff)
downloadnvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar
nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.gz
nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.bz2
nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.lz
nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.xz
nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.tar.zst
nvim-treesitter-ec8776ed9ef56ffe7a61e67b64d5d6b6aba2c631.zip
feat(php): php 8.4 support (#6741)
* chore(php): update maintainers * feat(php): update php rules, highlight imported functions/consts * feat(php): indent inside property hooks * chore: update php and php_only revision
Diffstat (limited to 'tests/indent/php')
-rw-r--r--tests/indent/php/property-hooks.php13
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);
+ }
+ }
+}