Fix: Handle null content in PlanResource::formatContent method

- Fix deprecated warning when passing null to str_replace() function\n- Use null coalescing operator to provide empty string as default value\n- Comply with PHP 8.2+ type requirements
This commit is contained in:
xboard
2025-02-25 19:14:19 +08:00
parent 220d306a54
commit 5a08754735
5 changed files with 10 additions and 3 deletions

View File

@@ -147,6 +147,9 @@ class UniProxyController extends Controller
'zero_rtt_handshake' => false,
'heartbeat' => "3s",
],
'socks' => [
'server_port' => (int) $serverPort,
],
default => []
};