# wpfunnels/3.12.2/patches/posthog-posthog-php-deprecated-string-interpolation.patch

WPFunnels – Funnel Builder for WooCommerce with Checkout &amp; One Click Upsell, version 3.12.2. 12 lines.

- Page: https://pluginprobe.com/plugins/wpfunnels/3.12.2/code/patches/posthog-posthog-php-deprecated-string-interpolation.patch
- Raw: https://pluginprobe.com/plugins/wpfunnels/3.12.2/raw/patches/posthog-posthog-php-deprecated-string-interpolation.patch
- Modified: 2026-04-27T12:32:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpfunnels/3.12.2/code/patches/posthog-posthog-php-deprecated-string-interpolation.patch#L10-L20`.

```diff
--- a/lib/PostHog.php
+++ b/lib/PostHog.php
@@ -173,7 +173,7 @@ class PostHog
     public static function validate($msg, $type)
     {
         $distinctId = !empty($msg["distinctId"]);
-        self::assert($distinctId, "PostHog::${type}() requires distinctId");
+        self::assert($distinctId, "PostHog::{$type}() requires distinctId");
     }

     /**

```
