You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
You get an op-interactive with width = 320 and height = 160
Actual Result
When running the transform, you get the following error:
InvalidArgumentException: Method expects this value ----[ <pre class='xdebug-var-dump' dir='ltr'> <small>/var/www/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php:174:</small><small>string</small> <font color='#cc0000'>'320'</font> <i>(length=3)</i> </pre>]---- to be one of the types ====[ <pre class='xdebug-var-dump' dir='ltr'> <small>/var/www/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php:179:</small><small>string</small> <font color='#cc0000'>'INTEGER'</font> <i>(length=7)</i> </pre>]==== in Facebook\InstantArticles\Validators\Type::throwException() (line 182 of /var/www/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php).
Thanks for that @m4olivei .
Do you think if we add that type enforcing thing into our base code would be enough?
You can send that piece of code as PR.
@everton-rosario I don't have time to dig in to a point where I could add a test, so I'll leave it there for now, feel free to add a test if you think it needs it.
Steps required to reproduce the problem
Expected Result
op-interactive
with width = 320 and height = 160Actual Result
Additional comments
The problem here appears to be that the ConstantGetter requires a string value, whereas the Interactive element requires an integer.
I'm currently working around this by defining my own ConstantGetter extending the Facebook ConstantGetter:
The text was updated successfully, but these errors were encountered: