From e966f0e941c0c0531fe9d318e122b82dd65857fb Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Sun, 12 Jul 2026 21:44:50 +0800 Subject: [PATCH] refactor(tests): update stream write test with extension provider attribute - Add ExtensionProvider attribute to StreamExtensions class - Rename stream_write_test function to writeTest method - Convert function to static method in StreamExtensions class - Add proper class declaration and method signature - Maintain original stream write functionality --- tests/compiler/var_convert/002.phpt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/compiler/var_convert/002.phpt b/tests/compiler/var_convert/002.phpt index 277fe7d2..b82c480e 100644 --- a/tests/compiler/var_convert/002.phpt +++ b/tests/compiler/var_convert/002.phpt @@ -8,8 +8,13 @@ if (PHP_OS_FAMILY != 'Linux') { } --FILE-- write('world'); +#[ExtensionProvider(Type::Stream)] +final class StreamExtensions +{ + public static function writeTest(stream $stream): void + { + $stream->write('world'); + } } function main()