diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30077e8f..1a198860 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=10s --health-retries=10 strategy: matrix: - php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3'] + php-versions: ['7.2', '7.3'] steps: - name: Checkout diff --git a/README.md b/README.md index ddcc8bd5..165f7c9f 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ add_filter( 'dt_blacklisted_meta', function( $blacklisted_metas ) { ## Requirements -- PHP 7.0+ +- PHP 7.2+ - [WordPress](http://wordpress.org) 4.7+ ## Installation diff --git a/autoshare-for-twitter.php b/autoshare-for-twitter.php index d06fd321..be1ac6b8 100644 --- a/autoshare-for-twitter.php +++ b/autoshare-for-twitter.php @@ -5,7 +5,7 @@ * Disclaimer: TWITTER, TWEET, RETWEET and the Twitter logo are trademarks of Twitter, Inc. or its affiliates. * Version: 1.0.3 * Requires at least: 4.7 - * Requires PHP: 7.0 + * Requires PHP: 7.2 * Author: 10up * Author URI: https://10up.com * License: GPL-2.0-or-later diff --git a/bin/composer-5.6.json b/bin/composer-5.6.json deleted file mode 100644 index 51aebf85..00000000 --- a/bin/composer-5.6.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "require": { - "abraham/twitteroauth": "^0.7.4" - }, - "require-dev": { - "phpunit/phpunit": "^5" - }, - "scripts": { - "test": "phpunit", - "setup-local-tests": "bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest" - } -} diff --git a/bin/test.sh b/bin/test.sh index baec250f..0c8735b5 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -1,14 +1,5 @@ set -e -if [[ '5.6' == $PHP_VERSION || '7.0' == $PHP_VERSION || '7.1' == $PHP_VERSION ]]; then - php -v - rm composer.lock composer.json - cp bin/composer-5.6.json composer.json - composer install - composer run setup-local-tests - composer run test -fi; - if [[ '7.2' == $PHP_VERSION ]]; then php -v composer install diff --git a/composer.json b/composer.json index 6425d784..7df42d89 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "abraham/twitteroauth": "^0.7.4" + "abraham/twitteroauth": "1.2.0" }, "require-dev": { "phpunit/phpunit": "^7.5", diff --git a/composer.lock b/composer.lock index 7f3753e7..aeb28b15 100644 --- a/composer.lock +++ b/composer.lock @@ -4,30 +4,33 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e282c61f9606e014d7f296e0832a49af", + "content-hash": "3c44bba831c087e8d74ef5a80952973e", "packages": [ { "name": "abraham/twitteroauth", - "version": "0.7.4", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/abraham/twitteroauth.git", - "reference": "c6f9e692552dd037b2324ed0dfa28a4e60875acf" + "reference": "f5cda73d1deae8b9e3e54f1572a6d28d03e06644" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/abraham/twitteroauth/zipball/c6f9e692552dd037b2324ed0dfa28a4e60875acf", - "reference": "c6f9e692552dd037b2324ed0dfa28a4e60875acf", + "url": "https://api.github.com/repos/abraham/twitteroauth/zipball/f5cda73d1deae8b9e3e54f1572a6d28d03e06644", + "reference": "f5cda73d1deae8b9e3e54f1572a6d28d03e06644", "shasum": "" }, "require": { + "composer/ca-bundle": "^1.2", "ext-curl": "*", - "php": "^5.6 || ^7.0" + "php": "^7.2 || ^7.3 || ^7.4" }, "require-dev": { - "phpmd/phpmd": "~2.6", - "phpunit/phpunit": "~5.7", - "squizlabs/php_codesniffer": "~3.0" + "php-vcr/php-vcr": "^1", + "php-vcr/phpunit-testlistener-vcr": "^3", + "phpmd/phpmd": "^2", + "phpunit/phpunit": "^8", + "squizlabs/php_codesniffer": "^3" }, "type": "library", "autoload": { @@ -58,7 +61,78 @@ "social", "twitter" ], - "time": "2017-06-30T22:02:01+00:00" + "time": "2020-09-22T14:27:00+00:00" + }, + { + "name": "composer/ca-bundle", + "version": "dev-main", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "9dea32b6bb602918b0144d4784b166cb95d45099" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/9dea32b6bb602918b0144d4784b166cb95d45099", + "reference": "9dea32b6bb602918b0144d4784b166cb95d45099", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.55", + "psr/log": "^1.0", + "symfony/phpunit-bridge": "^4.2 || ^5", + "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-02-01T12:43:46+00:00" } ], "packages-dev": [ @@ -369,12 +443,12 @@ "version": "v1.4.1", "source": { "type": "git", - "url": "https://github.com/clue/php-stream-filter.git", + "url": "https://github.com/clue/stream-filter.git", "reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/clue/php-stream-filter/zipball/5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71", + "url": "https://api.github.com/repos/clue/stream-filter/zipball/5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71", "reference": "5a58cc30a8bd6a4eb8f856adf61dd3e013f53f71", "shasum": "" }, @@ -536,6 +610,7 @@ "MIT" ], "description": "A Docker PHP client", + "abandoned": true, "time": "2019-10-25T18:36:58+00:00" }, { @@ -2724,6 +2799,7 @@ "keywords": [ "tokenizer" ], + "abandoned": true, "time": "2019-09-17T06:23:10+00:00" }, { @@ -4624,12 +4700,12 @@ "version": "1.7.0", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", + "url": "https://github.com/webmozarts/assert.git", "reference": "aed98a490f9a8f78468232db345ab9cf606cf598" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598", "reference": "aed98a490f9a8f78468232db345ab9cf606cf598", "shasum": "" }, @@ -4721,5 +4797,6 @@ "prefer-stable": false, "prefer-lowest": false, "platform": [], - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } diff --git a/readme.txt b/readme.txt index dc4371ff..23d292d5 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: 10up, johnwatkins0, adamsilverstein, scottlee, dinhtungdu Tags: twitter, tweet, autoshare, auto-share, auto share, share, social media Requires at least: 4.7 Tested up to: 5.4.2 -Requires PHP: 7.0 +Requires PHP: 7.2 Stable tag: 1.0.3 License: GPL-2.0-or-later License URI: https://spdx.org/licenses/GPL-2.0-or-later.html