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

PHP Compatibility Checker Fixes #359

Merged
merged 4 commits into from
Jul 2, 2020
Merged

PHP Compatibility Checker Fixes #359

merged 4 commits into from
Jul 2, 2020

Conversation

AlexGStapleton
Copy link
Member

@AlexGStapleton AlexGStapleton commented Jun 22, 2020

Resole #358. Related comment

This PR avoids a bug with the PHPCS version PHP Compatibility Checker is using. Basically, it has trouble with inline control structures without braces.

@Misplon I can't seem to get PHP Compatibility Checker to check Vantage quickly enough to avoid a timeout locally so you may need to use a website you have access too to confirm this PR helps.

@AlexGStapleton AlexGStapleton self-assigned this Jun 22, 2020
@Misplon
Copy link
Member

Misplon commented Jun 23, 2020

Awesome, thanks. PHP checker has no issues with this branch.

Can you confirm that the Circle Icon text, icon, and icon background settings are all still functional for you? They don't seem to be for me but could just be a caching/local issue.

@Misplon
Copy link
Member

Misplon commented Jun 24, 2020

Looking good, thanks mate.

@Misplon Misplon requested a review from gregpriday June 24, 2020 10:34
Copy link
Member

@gregpriday gregpriday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good. One small suggestion, but that might break the PHP compat checker.

inc/widgets.php Outdated Show resolved Hide resolved
Tested locally before merging. Edited comment to add spacing.

Co-authored-by: Greg Priday <greg@siteorigin.com>
@Misplon
Copy link
Member

Misplon commented Jul 1, 2020

Are you able to build this branch? I don't seem to be able to:

SyntaxError: Parse Error : syntax error, unexpected 'echo' (T_ECHO), expecting ';' on line 347 | Unable to parse inc/widgets.php

@Misplon
Copy link
Member

Misplon commented Jul 1, 2020

Cool, I've resolved for a build but perhaps you can resolve via a commit. Thanks!

@Misplon
Copy link
Member

Misplon commented Jul 1, 2020

This PR branch passes the PHP 7.3 checker.

I knew I should have committed the local version rather than using the commit button on GitHub. 😞
@Misplon Misplon merged commit bd982a7 into develop Jul 2, 2020
@Misplon Misplon deleted the php-compat-fix branch July 2, 2020 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants