From e9d219703ca0387906d9d685ec3bf4f7982ef35e Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 4 Jan 2026 02:57:44 +0100 Subject: [PATCH 1/2] Fix syntax error in test PropertyHook --- tests/integration/data/PHP84/PropertyHookAsymmetric.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/data/PHP84/PropertyHookAsymmetric.php b/tests/integration/data/PHP84/PropertyHookAsymmetric.php index 85253613..f51d7d2f 100644 --- a/tests/integration/data/PHP84/PropertyHookAsymmetric.php +++ b/tests/integration/data/PHP84/PropertyHookAsymmetric.php @@ -8,7 +8,7 @@ class PropertyHook /** @var string this is my property */ #[Property(new DateTimeImmutable())] - public private(set) string $example = 'default value' { + public private(set) string $example { get { if ($this->modified) { return $this->foo . ' (modified)'; From cdf21276a2fd3495c2578ec0e3fcff9c985ef958 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 4 Jan 2026 03:12:20 +0100 Subject: [PATCH 2/2] Refactor example property to use getter method --- tests/integration/data/PHP84/PropertyHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/data/PHP84/PropertyHook.php b/tests/integration/data/PHP84/PropertyHook.php index a83ff756..c0351085 100644 --- a/tests/integration/data/PHP84/PropertyHook.php +++ b/tests/integration/data/PHP84/PropertyHook.php @@ -8,7 +8,7 @@ class PropertyHook /** @var string this is my property */ #[Property(new DateTimeImmutable())] - public string $example = 'default value' { + public string $example { /** Not sure this works, but it gets */ #[Getter(new DateTimeImmutable())] get {