Skip to content

Commit 514b457

Browse files
author
Benjamin Schoch
committed
explicitly define properties
1 parent e9250ed commit 514b457

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: src/Optimizely/OptimizelyConfig/OptimizelyConfigService.php

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class OptimizelyConfigService
8383
*/
8484
private readonly LoggerInterface $logger;
8585

86+
private ProjectConfigInterface $projectConfig;
87+
8688
public function __construct(ProjectConfigInterface $projectConfig, LoggerInterface $logger = null)
8789
{
8890
$this->experiments = $projectConfig->getAllExperiments();

Diff for: src/Optimizely/Utils/CustomAttributeConditionEvaluator.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
use Monolog\Logger;
2121
use Optimizely\Enums\CommonAudienceEvaluationLogs as logs;
22+
use Optimizely\Logger\LoggerInterface;
2223
use Optimizely\Utils\SemVersionConditionEvaluator;
2324
use Optimizely\Utils\Validator;
2425

@@ -44,13 +45,15 @@ class CustomAttributeConditionEvaluator
4445
*/
4546
protected $userAttributes;
4647

48+
private LoggerInterface $logger;
49+
4750
/**
4851
* CustomAttributeConditionEvaluator constructor
4952
*
5053
* @param array $userAttributes Associative array of user attributes to values.
5154
* @param $logger LoggerInterface.
5255
*/
53-
public function __construct(array $userAttributes, $logger)
56+
public function __construct(array $userAttributes, LoggerInterface $logger)
5457
{
5558
$this->userAttributes = $userAttributes;
5659
$this->logger = $logger;

0 commit comments

Comments
 (0)