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

Use latest readme parser #789

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft

Conversation

ernilambar
Copy link
Member

@ernilambar ernilambar commented Nov 14, 2024

This working fine in local.

Tests are failing in GitHub actions because Docker in which wp-env run does not have patch command which is required by cweagans/composer-patches.

@ernilambar ernilambar force-pushed the use-latest-readme-parser branch 23 times, most recently from 7de31c7 to 847879f Compare November 15, 2024 11:50
@afragen
Copy link
Member

afragen commented Nov 16, 2024

Or just don't specify a particular commit. The master branch of afragen/wordpress-plugin-readme-parser will always have the most recent version. It's set to auto-update when there's an update on .org and GA creates an automatic PR to my repository occurs. All I do is merge.

@ernilambar
Copy link
Member Author

@afragen Yes, I understand that. But I dont think removing version from there solves the actual issue at hand. Parser class is not PHP 7.2 compatible but PCP is. Patching I am trying to do here is that will make parser class compatible to PHP 7.2.

@afragen
Copy link
Member

afragen commented Nov 17, 2024

OK, you could try asking Dion to make the changes necessary.

@ernilambar
Copy link
Member Author

I have already made the ticket https://meta.trac.wordpress.org/ticket/7749 but looks like it wont be updated in the meta side.

@afragen
Copy link
Member

afragen commented Nov 17, 2024

Is there something else that won't run in PHP7.4?

@ernilambar
Copy link
Member Author

Is there something else that won't run in PHP7.4?

$this->warnings['contributor_ignored'] ??= []; Only this one line is incompatible with PHP 7.2.

@afragen
Copy link
Member

afragen commented Nov 17, 2024

My question was why not raise the requirement to 7.4?

@ernilambar
Copy link
Member Author

My question was why not raise the requirement to 7.4?

I have not seen the discussion about minimum PHP version support in PCP particularly. May be trying to follow approach which core uses (5% threshold).

Current usage (from Stats):

  • PHP 7.2: 2.78%
  • PHP 7.3: 3.31%

Combined would be greater than 5% if bumped to 7.4.
Saying that, I would be personally happy to get version bumped to 7.4 or even 8.0, since PCP is targeted mainly for devs. Will need discussion among senior maintainers about the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants