Skip to content

Commit

Permalink
update return type of build() in amplitude and assignment config
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Dec 30, 2023
1 parent ffad979 commit 1e5d2ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ parameters:
- src

excludePaths:
- src/Assignment/AssignmentConfigBuilder.php
- src/EvaluationCore

scanFiles:
Expand Down
5 changes: 4 additions & 1 deletion src/Amplitude/AmplitudeConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ public function guzzleClientConfig(array $guzzleClientConfig): AmplitudeConfigBu
return $this;
}

public function build(): AmplitudeConfig
/**
* @phpstan-ignore-next-line
*/
public function build()
{
if (!$this->serverUrl) {
if ($this->useBatch) {
Expand Down
3 changes: 3 additions & 0 deletions src/Assignment/AssignmentConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public function cacheCapacity(int $cacheCapacity): AssignmentConfigBuilder
return $this;
}

/**
* @phpstan-ignore-next-line
*/
public function build()
{
return new AssignmentConfig(
Expand Down

0 comments on commit 1e5d2ce

Please sign in to comment.