From 6cfab3bf9a38e0c4951ba37c7cb288227cfbcf85 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Fri, 31 Jul 2026 20:17:51 +0800 Subject: [PATCH] refactor(bin): replace define with const in tpc.php - Changed TYPEPHP_PHP_SCRIPT_ENTRY from define to const declaration - Maintained same boolean value of true for the constant - Updated syntax to use PHP const keyword instead of define function --- bin/tpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tpc.php b/bin/tpc.php index f0fd0bff..6bfdb948 100755 --- a/bin/tpc.php +++ b/bin/tpc.php @@ -5,5 +5,5 @@ require __DIR__ . '/../src/polyfills.php'; require __DIR__ . '/../src/gen_stub.php'; require __DIR__ . '/../src/compiler.php'; -define('TYPEPHP_PHP_SCRIPT_ENTRY', true); +const TYPEPHP_PHP_SCRIPT_ENTRY = true; main($argc, $argv);