Skip to content

Commit

Permalink
Update static parameters to match constructor of Analytics.php (#99)
Browse files Browse the repository at this point in the history
This should remove confusion from copying the readme code directly.
  • Loading branch information
aawnu authored Jan 17, 2025
2 parents 6a18e2e + b4a4049 commit 571a9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ public function post(): void
}
}

public static function new(string $measurementId, string $apiSecret, bool $debug = false): static
public static function new(string $measurement_id, string $api_secret, bool $debug = false): static
{
return new static($measurementId, $apiSecret, $debug);
return new static($measurement_id, $api_secret, $debug);
}

/**
Expand Down

2 comments on commit 571a9c6

@izdrail
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad I could help

@aawnu
Copy link
Owner Author

@aawnu aawnu commented on 571a9c6 Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad I could help

Thank you for reaching out, hope this clears up any confusion. Let me know if you find anything else, but please specify a but more.

Please sign in to comment.