Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Optimizely/DecisionService/DecisionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class DecisionService
* @param LoggerInterface $logger
* @param UserProfileServiceInterface $userProfileService
*/
public function __construct(LoggerInterface $logger, UserProfileServiceInterface $userProfileService = null)
public function __construct(LoggerInterface $logger, ?UserProfileServiceInterface $userProfileService = null)
Comment thread
Tamara-Barum marked this conversation as resolved.
{
$this->_logger = $logger;
$this->_bucketer = new Bucketer($logger);
Expand Down
12 changes: 6 additions & 6 deletions src/Optimizely/Optimizely.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ class Optimizely
*/
public function __construct(
$datafile,
EventDispatcherInterface $eventDispatcher = null,
LoggerInterface $logger = null,
ErrorHandlerInterface $errorHandler = null,
?EventDispatcherInterface $eventDispatcher = null,
?LoggerInterface $logger = null,
?ErrorHandlerInterface $errorHandler = null,
Comment thread
Tamara-Barum marked this conversation as resolved.
$skipJsonValidation = false,
UserProfileServiceInterface $userProfileService = null,
ProjectConfigManagerInterface $configManager = null,
NotificationCenter $notificationCenter = null,
?UserProfileServiceInterface $userProfileService = null,
?ProjectConfigManagerInterface $configManager = null,
?NotificationCenter $notificationCenter = null,
Comment thread
Tamara-Barum marked this conversation as resolved.
$sdkKey = null,
array $defaultDecideOptions = []
) {
Comment thread
Tamara-Barum marked this conversation as resolved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public function __construct(
$fetchOnInit = true,
$datafile = null,
$skipJsonValidation = false,
LoggerInterface $logger = null,
ErrorHandlerInterface $errorHandler = null,
NotificationCenter $notificationCenter = null,
?LoggerInterface $logger = null,
?ErrorHandlerInterface $errorHandler = null,
?NotificationCenter $notificationCenter = null,
$datafileAccessToken = null
) {
$this->_skipJsonValidation = $skipJsonValidation;
Expand Down
Loading