@@ -1181,44 +1181,44 @@ private function getUserAttributeValueAsStringArray(string $attributeName, mixed
1181
1181
1182
1182
private function logUserObjectIsMissing (string $ key ): void
1183
1183
{
1184
- $ this ->logger ->warning ("Cannot evaluate targeting rules and % options for setting ' {$ key }' (User Object is missing). " .
1185
- 'You should pass a User Object to the evaluation methods like `getValue()` in order to make targeting work properly. ' .
1186
- 'Read more: https://configcat.com/docs/advanced/user-object/ ' , [
1184
+ $ this ->logger ->warning ("Cannot evaluate targeting rules and % options for setting ' {$ key }' (User Object is missing). "
1185
+ . 'You should pass a User Object to the evaluation methods like `getValue()` in order to make targeting work properly. '
1186
+ . 'Read more: https://configcat.com/docs/advanced/user-object/ ' , [
1187
1187
'event_id ' => 3001 ,
1188
1188
]);
1189
1189
}
1190
1190
1191
1191
private function logUserObjectAttributeIsMissingPercentage (string $ key , string $ attributeName ): void
1192
1192
{
1193
- $ this ->logger ->warning ("Cannot evaluate % options for setting ' {$ key }' (the User. {$ attributeName } attribute is missing). " .
1194
- "You should set the User. {$ attributeName } attribute in order to make targeting work properly. " .
1195
- 'Read more: https://configcat.com/docs/advanced/user-object/ ' , [
1193
+ $ this ->logger ->warning ("Cannot evaluate % options for setting ' {$ key }' (the User. {$ attributeName } attribute is missing). "
1194
+ . "You should set the User. {$ attributeName } attribute in order to make targeting work properly. "
1195
+ . 'Read more: https://configcat.com/docs/advanced/user-object/ ' , [
1196
1196
'event_id ' => 3003 ,
1197
1197
]);
1198
1198
}
1199
1199
1200
1200
private function logUserObjectAttributeIsMissingCondition (string $ condition , string $ key , string $ attributeName ): void
1201
1201
{
1202
- $ this ->logger ->warning ("Cannot evaluate condition ( {$ condition }) for setting ' {$ key }' (the User. {$ attributeName } attribute is missing). " .
1203
- "You should set the User. {$ attributeName } attribute in order to make targeting work properly. " .
1204
- 'Read more: https://configcat.com/docs/advanced/user-object/ ' , [
1202
+ $ this ->logger ->warning ("Cannot evaluate condition ( {$ condition }) for setting ' {$ key }' (the User. {$ attributeName } attribute is missing). "
1203
+ . "You should set the User. {$ attributeName } attribute in order to make targeting work properly. "
1204
+ . 'Read more: https://configcat.com/docs/advanced/user-object/ ' , [
1205
1205
'event_id ' => 3003 ,
1206
1206
]);
1207
1207
}
1208
1208
1209
1209
private function logUserObjectAttributeIsInvalid (string $ condition , string $ key , string $ reason , string $ attributeName ): void
1210
1210
{
1211
- $ this ->logger ->warning ("Cannot evaluate condition ( {$ condition }) for setting ' {$ key }' ( {$ reason }). " .
1212
- "Please check the User. {$ attributeName } attribute and make sure that its value corresponds to the comparison operator. " , [
1211
+ $ this ->logger ->warning ("Cannot evaluate condition ( {$ condition }) for setting ' {$ key }' ( {$ reason }). "
1212
+ . "Please check the User. {$ attributeName } attribute and make sure that its value corresponds to the comparison operator. " , [
1213
1213
'event_id ' => 3004 ,
1214
1214
]);
1215
1215
}
1216
1216
1217
1217
private function logUserObjectAttributeIsAutoConverted (string $ condition , string $ key , string $ attributeName , string $ attributeValue ): void
1218
1218
{
1219
- $ this ->logger ->warning ("Evaluation of condition ( {$ condition }) for setting ' {$ key }' may not produce the expected result " .
1220
- "(the User. {$ attributeName } attribute is not a string value, thus it was automatically converted to the string value ' {$ attributeValue }'). " .
1221
- 'Please make sure that using a non-string value was intended. ' , [
1219
+ $ this ->logger ->warning ("Evaluation of condition ( {$ condition }) for setting ' {$ key }' may not produce the expected result "
1220
+ . "(the User. {$ attributeName } attribute is not a string value, thus it was automatically converted to the string value ' {$ attributeValue }'). "
1221
+ . 'Please make sure that using a non-string value was intended. ' , [
1222
1222
'event_id ' => 3005 ,
1223
1223
]);
1224
1224
}
@@ -1255,9 +1255,9 @@ private function checkDefaultValueTypeMismatch(mixed $returnValue, mixed $defaul
1255
1255
$ settingTypeName = $ settingType ->name ;
1256
1256
$ defaultValueType = gettype ($ defaultValue );
1257
1257
1258
- $ this ->logger ->warning ("The type of a setting does not match the type of the specified default value ( {$ defaultValue }). " .
1259
- "Setting's type was {$ settingTypeName } but the default value's type was {$ defaultValueType }. " .
1260
- "Please make sure that using a default value not matching the setting's type was intended. " , [
1258
+ $ this ->logger ->warning ("The type of a setting does not match the type of the specified default value ( {$ defaultValue }). "
1259
+ . "Setting's type was {$ settingTypeName } but the default value's type was {$ defaultValueType }. "
1260
+ . "Please make sure that using a default value not matching the setting's type was intended. " , [
1261
1261
'event_id ' => 4002 ,
1262
1262
]);
1263
1263
}
0 commit comments