Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hermeswaldemarin
Copy link

No description provided.

@hermeswaldemarin hermeswaldemarin force-pushed the feature/add-custom-fields-support branch 3 times, most recently from a5a821d to 00d7f83 Compare December 11, 2023 12:10
@hermeswaldemarin hermeswaldemarin marked this pull request as ready for review December 11, 2023 12:11
@@ -25,6 +25,7 @@ class Experiment {
public bool $audienceStrict;
public array $applications;
public array $variants;
public ?array $customFieldValues;
Copy link
Member

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

Copy link
Author

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.

@hermeswaldemarin hermeswaldemarin force-pushed the feature/add-custom-fields-support branch 3 times, most recently from 7be632b to 4c04d35 Compare December 11, 2023 13:00

class ContextCustomFieldValue {
public string $type;
public $value;

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?

Copy link
Author

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.

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants