From 7e582d2eba2a0b8adda2a8c8b025c1e932dc8543 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 15 Apr 2026 22:05:10 +0800 Subject: [PATCH] =?UTF-8?q?test(aot):=20=E6=B7=BB=E5=8A=A0=E5=B8=83?= =?UTF-8?q?=E5=B0=94=E5=B1=9E=E6=80=A7=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在测试类中添加了新的布尔类型属性 $attr5 - 更新了对象属性访问的测试方法以包含新属性 - 扩展了预期输出以验证布尔值的正确处理 - 确保 AOT 编译器正确处理布尔类型对象属性 --- tests/aot/object_property/002.phpt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/aot/object_property/002.phpt b/tests/aot/object_property/002.phpt index 94614e3b..8c182fc2 100644 --- a/tests/aot/object_property/002.phpt +++ b/tests/aot/object_property/002.phpt @@ -8,9 +8,10 @@ class Test { protected string $attr2 = 'hello'; protected int $attr3 = 1232; protected float $attr4 = 3.1415; + protected bool $attr5 = true; function bar() { - var_dump($this->attr1, $this->attr2, $this->attr3, $this->attr4); + var_dump($this->attr1, $this->attr2, $this->attr3, $this->attr4, $this->attr5); } } @@ -23,4 +24,5 @@ function main() { bool(false) string(5) "hello" int(1232) -float(3.1415) \ No newline at end of file +float(3.1415) +bool(true) \ No newline at end of file