| 1 |
diff --git a/lib/PostHog.php b/lib/PostHog.php |
| 2 |
index 4286212..5db0a49 100644 |
| 3 |
--- a/lib/PostHog.php |
| 4 |
+++ b/lib/PostHog.php |
| 5 |
@@ -173,7 +173,7 @@ class PostHog |
| 6 |
public static function validate($msg, $type) |
| 7 |
{ |
| 8 |
$distinctId = !empty($msg["distinctId"]); |
| 9 |
- self::assert($distinctId, "PostHog::${type}() requires distinctId"); |
| 10 |
+ self::assert($distinctId, "PostHog::{$type}() requires distinctId"); |
| 11 |
} |
| 12 |
|
| 13 |
/** |
| 14 |
diff --git a/lib/Consumer/ForkCurl.php b/lib/Consumer/ForkCurl.php |
| 15 |
index 262c270..7bc07ea 100644 |
| 16 |
--- a/lib/Consumer/ForkCurl.php |
| 17 |
+++ b/lib/Consumer/ForkCurl.php |
| 18 |
@@ -87,7 +87,7 @@ class ForkCurl extends Consumer |
| 19 |
// Send user agent in the form of {library_name}/{library_version} as per RFC 7231. |
| 20 |
$libName = $messages[0]['library']; |
| 21 |
$libVersion = $messages[0]['library_version']; |
| 22 |
- $cmd .= " -H 'User-Agent: ${libName}/${libVersion}'"; |
| 23 |
+ $cmd .= " -H 'User-Agent: {$libName}/{$libVersion}'"; |
| 24 |
|
| 25 |
if (!$this->debug()) { |
| 26 |
$cmd .= " > /dev/null 2>&1 &"; |
| 27 |
diff --git a/lib/Consumer/Socket.php b/lib/Consumer/Socket.php |
| 28 |
index f1db8bb..83aa2aa 100644 |
| 29 |
--- a/lib/Consumer/Socket.php |
| 30 |
+++ b/lib/Consumer/Socket.php |
| 31 |
@@ -187,7 +187,7 @@ class Socket extends Consumer |
| 32 |
$content_json = json_decode($content, true); |
| 33 |
$libName = $content_json['batch'][0]['library']; |
| 34 |
$libVersion = $content_json['batch'][0]['library_version']; |
| 35 |
- $req .= "User-Agent: ${libName}/${libVersion}\r\n"; |
| 36 |
+ $req .= "User-Agent: {$libName}/{$libVersion}\r\n"; |
| 37 |
|
| 38 |
// Compress content if compress_request is true |
| 39 |
if ($this->compress_request) { |
| 40 |
|