cedaro / satispress

Expose installed WordPress plugins and themes as Composer packages.
500 stars 48 forks source link

PHP Parse error: syntax error, unexpected '===' (T_IS_IDENTICAL) in /var/www/wordpress/web/app/plugins/satispress/src/Integration/EnvatoMarket.php on line 78 #159

Closed dakhran closed 3 years ago

dakhran commented 3 years ago

When I upload and activate the plugin Envato Market, the site becomes nonfunctional, and I receive the PHP parse error above.

SatisPress version: 1.0.1 nginx version: nginx/1.18.0 (Ubuntu) PHP version: PHP 7.4.3

dakhran commented 3 years ago

Just wanted to add, it looks like a simple parenthesis issue, I was able to update the line to the following and get it to work:

if ( (int) $item['id'] === (int) $id ) {

bradyvercher commented 3 years ago

@dakhran Thanks for the report and tracking down the issue! I've pushed a fix for this and will get it out in the next release.

pixelbrad commented 3 years ago

@bradyvercher Any ETA on that release? Just dealt with this bug on my repo site.