-
Notifications
You must be signed in to change notification settings - Fork 43
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
Enhancement/140 Bump WordPress and PHP minimums #143
Changes from 4 commits
57a9a9a
89fdc51
0e17708
0712ba0
c46a733
2b8e160
971021d
916a8e6
021c85c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
"source": "https://github.com/10up/simple-local-avatars" | ||
}, | ||
"require": { | ||
"php": ">=5.6" | ||
"php": ">=7.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we put 7.4 here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had put There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed that the PHPUnit failure was due to the fix required in the upstream and the PR is already raised 10up/wp_mock#164. Upgraded to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. getAnnotations() error is fixed by changing But there are still 3 tests fail after this fix
|
||
}, | ||
"require-dev": { | ||
"10up/phpcs-composer": "dev-master", | ||
|
@@ -28,12 +28,12 @@ | |
}, | ||
"scripts": { | ||
"lint": [ | ||
"phpcs . --runtime-set testVersion 5.6-" | ||
"phpcs . --runtime-set testVersion 7.4-" | ||
], | ||
"lint-fix": [ | ||
"phpcbf ." | ||
], | ||
"phpcs:compat": "vendor/bin/phpcs simple-local-avatars.php includes --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6-" | ||
"phpcs:compat": "vendor/bin/phpcs simple-local-avatars.php includes --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-" | ||
}, | ||
"minimum-stability": "dev" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
<phpunit | ||
bootstrap="tests/phpunit/bootstrap.php" | ||
backupGlobals="false" | ||
processIsolation="false" | ||
colors="false"> | ||
<testsuites> | ||
<testsuite name="Simple Local Avatars"> | ||
<directory suffix="Test.php">./tests/phpunit</directory> | ||
<exclude>tests/phpunit/multisite</exclude> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">includes</directory> | ||
<exclude></exclude> | ||
</whitelist> | ||
</filter> | ||
<php> | ||
<ini name="error_reporting" value="32767" /> | ||
<ini name="display_errors" value="1" /> | ||
<ini name="display_startup_errors" value="1" /> | ||
</php> | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/phpunit/bootstrap.php" backupGlobals="false" processIsolation="false" colors="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">includes</directory> | ||
</include> | ||
<exclude/> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Simple Local Avatars"> | ||
<directory suffix="Test.php">./tests/phpunit</directory> | ||
<exclude>tests/phpunit/multisite</exclude> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<ini name="error_reporting" value="32767"/> | ||
<ini name="display_errors" value="1"/> | ||
<ini name="display_startup_errors" value="1"/> | ||
</php> | ||
</phpunit> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7.1 and 7.2 looks like a deprecated support, needs to be updated to 7.4 and 8.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should, but need to fix the PHPUnit test failure issue first as mentioned above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, c46a733