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
// special_cases.php
- function fgetcsv($stream, int $length = null, string $separator = ",", string $enclosure = "\"", string $escape = "\\"): array|false+ function fgetcsv($stream, int $length = null, string $separator = ",", string $enclosure = "\"", string $escape = "\\")
It seems php 7.4 does not know the pipe symbol. Version 8 does know that.
I am not a php programmer, so I don't know what the best fix for that is. I just deleted the type definition of the function and it works now on my wordpress using php 7.
Composer says the package is compatible with php 7.3+, so I just wanted to let you know.
The text was updated successfully, but these errors were encountered:
Hi,
I am using your liquid parser in a wordpress plugin. I developed that plugin unsing the latest docker image of wordpress, which uses php 8.
When I tried to deploy it on our production wordpress, which still uses php 7.4 and I got a syntax error in
liquid/vendor/thecodingmachine/safe/lib/special_cases.php:434
I fixed it like this:
It seems php 7.4 does not know the pipe symbol. Version 8 does know that.
I am not a php programmer, so I don't know what the best fix for that is. I just deleted the type definition of the function and it works now on my wordpress using php 7.
Composer says the package is compatible with php 7.3+, so I just wanted to let you know.
The text was updated successfully, but these errors were encountered: