Closed andriichuk closed 3 years ago
Overall looks good, but I'm not sure it's worth to add a dependency for enums. I'd wait for 8.1 release to use native enums :)
- Did some manual encoding for
outcome_names
filter key to resolve issue with numeric keys in URL.
So http_build_query
wrongly builds the query?
- Did some manual encoding for
outcome_names
filter key to resolve issue with numeric keys in URL.So
http_build_query
wrongly builds the query?
Yes, it encodes like outcome_names[0]=click
, but we need outcome_names[]=click
without array index
I think preg_replace
would be enough after http_query_build then
Overall looks good, but I'm not sure it's worth to add a dependency for enums. I'd wait for 8.1 release to use native enums :)
After 8.1 release we can remove this dependency 😄. With enums it easier to manage groups of constants. If you don't like it I can remove this dependency
Overall looks good, but I'm not sure it's worth to add a dependency for enums. I'd wait for 8.1 release to use native enums :)
After 8.1 release we can remove this dependency . With enums it easier to manage groups of constants. If you don't like it I can remove this dependency
Constants are just constants so adding a dependency could introduce conflicts for consumers :) And then would need to deprecate the old ones and people would need to learn again so I'd prefer leaving as is. :)
Didn't think about it, yes it make sense, removed enums.
Squashed commits
Thank you @andriichuk :)
outcome_names
filter key to resolve issue with numeric keys in URL.Closes: https://github.com/norkunas/onesignal-php-api/issues/140