PluginProbe
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress / 9.1.2
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress v9.1.2
9.1.2 9.1.1 9.1.0 9.0.3 9.0.2 9.0.1 9.0.0 8.5.79 8.5.78 8.5.77 8.5.76 8.5.75 8.5.74 8.5.73 8.5.72 8.5.71 8.5.70 8.5.69 8.5.68 8.5.35 8.5.36 8.5.37 8.5.38 8.5.39 8.5.4 All 221 releases
wpvr / patches / posthog-php-php82.patch

posthog-php-php82.patch in WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress 9.1.2, at patches/posthog-php-php82.patch

40 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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