-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Custom Fields Support #5
base: main
Are you sure you want to change the base?
Conversation
a5a821d
to
00d7f83
Compare
src/Experiment.php
Outdated
@@ -25,6 +25,7 @@ class Experiment { | |||
public bool $audienceStrict; | |||
public array $applications; | |||
public array $variants; | |||
public ?array $customFieldValues; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not aligned with previous lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code style was different. Changed.
7be632b
to
4c04d35
Compare
|
||
class ContextCustomFieldValue { | ||
public string $type; | ||
public $value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the type is not mandatory right? but if you put it, you get some help from the compiler?
Another thing: the value seems to be badly formatted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not very familiar with PHP but is not required the type. I tried with object but don't work when I need to assign integer, booleans etc. The way I could make it work for all types is without the type declaration.
If you have another idea how to do that let me know.
The ideia is the value to be of Any type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The format was resolved already.
4c04d35
to
ed23fe1
Compare
No description provided.