Skip to content

Switch to Yoast PHP Polyfill #235

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

Conversation

Lewiscowles1986
Copy link
Contributor

@Lewiscowles1986 Lewiscowles1986 commented Jun 27, 2022

See: #213 for history

Uses Yoast PHPUnit Polyfill, which I've personally used for 5.4 -> 8.1 compatibility previously.

Just need to see if the workflow passes.

This should unlock PHP8 / 8.1 compatibility.

It's another layer of indirection + a little bit of magic to not be coupled to the unstable API of PHPUnit.

⚠️ Warning
This commit history depends on another to pass CI a separate issue #236 has been raised to fix that.
Lewiscowles1986#4 shows the combination passing CI

"mf2/tests": "dev-master#e9e2b905821ba0a5b59dab1a8eaf40634ce9cd49",
"squizlabs/php_codesniffer": "^3.6.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"phpcompatibility/php-compatibility": "^9.3"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The indentation bothered me.

@@ -18,11 +18,11 @@
}
},
"require-dev": {
"phpunit/phpunit": "^5.7",
Copy link
Contributor Author

@Lewiscowles1986 Lewiscowles1986 Jun 27, 2022

Choose a reason for hiding this comment

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

This gets removed to add yoast/phpunit-polyfills dependency.

@@ -179,7 +178,7 @@ public function testMoreDetailedPerson() {
"type": ["h-card"],
"properties": {
"photo": [
{
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this one-liner may be a mistake... Lets see what CI says.

@Lewiscowles1986 Lewiscowles1986 force-pushed the feature/yoast-phpunit-polyfill branch from 95596ed to 13b5eb1 Compare June 27, 2022 08:48
@Lewiscowles1986 Lewiscowles1986 marked this pull request as ready for review June 27, 2022 08:48
@barnabywalters barnabywalters merged commit 662d2eb into microformats:main Jun 28, 2022
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