| 1 |
--- a/lib/PostHog.php |
| 2 |
+++ b/lib/PostHog.php |
| 3 |
@@ -173,7 +173,7 @@ class PostHog |
| 4 |
public static function validate($msg, $type) |
| 5 |
{ |
| 6 |
$distinctId = !empty($msg["distinctId"]); |
| 7 |
- self::assert($distinctId, "PostHog::${type}() requires distinctId"); |
| 8 |
+ self::assert($distinctId, "PostHog::{$type}() requires distinctId"); |
| 9 |
} |
| 10 |
|
| 11 |
/** |
| 12 |
|