From e7d96c810b401428f164c10e12ca1ad94b77787e 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 82b743f406f6098685c6ac3bd058f028947a3e41 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 {