Skip to content

Commit

Permalink
fix: use namespaced version constant (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc authored Feb 22, 2024
1 parent 760cdaf commit a9a6d50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Flag/FlagConfigFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use AmplitudeExperiment\Local\LocalEvaluationConfig;
use Psr\Http\Client\ClientExceptionInterface;
use Psr\Log\LoggerInterface;
use const AmplitudeExperiment\VERSION;

require_once __DIR__ . '/../Version.php';

Expand Down
2 changes: 1 addition & 1 deletion src/Remote/RemoteEvaluationClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
use AmplitudeExperiment\Variant;
use Psr\Http\Client\ClientExceptionInterface;
use Psr\Log\LoggerInterface;
use const AmplitudeExperiment\VERSION;

require_once __DIR__ . '/../Version.php';
require_once __DIR__ . '/../Util.php';

/**
* Experiment client for fetching variants for a user remotely.
Expand Down
1 change: 1 addition & 0 deletions src/Version.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<?php
namespace AmplitudeExperiment;
const VERSION = '0.5.0';

0 comments on commit a9a6d50

Please sign in to comment.