Skip to content

Commit

Permalink
chore: drop support for PHP 7.1 (influxdata#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar authored and peynman committed Mar 7, 2023
1 parent caae4a2 commit e1695c6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 33 deletions.
26 changes: 0 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,17 @@ commands:
parameters:
php-image:
type: string
guzzle-version:
type: string
guzzle-psr-version:
type: string
steps:
- restore_cache:
name: Restoring Composer Cache
keys:
- composer-v3-{{ checksum "composer.json" }}-<< parameters.php-image >>-<< parameters.guzzle-version >>-<< parameters.guzzle-psr-version >>
- composer-v3-{{ checksum "composer.json" }}-<< parameters.php-image >>-<< parameters.guzzle-version >>
- composer-v3-{{ checksum "composer.json" }}-<< parameters.php-image >>
- composer-v3-{{ checksum "composer.json" }}
- composer-v3-
- run:
name: Install dependencies
command: |
composer install -n --prefer-dist
composer require guzzlehttp/guzzle:<< parameters.guzzle-version >> guzzlehttp/psr7:<< parameters.guzzle-psr-version >>
- run:
name: Run tests
command: |
Expand Down Expand Up @@ -83,12 +76,6 @@ jobs:
influxdb-image:
type: string
default: &default-influxdb-image "influxdb:latest"
guzzle-version:
type: string
default: "^7"
guzzle-psr-version:
type: string
default: "^1.7"
docker:
- image: << parameters.php-image >>
- image: &influx-image << parameters.influxdb-image >>
Expand All @@ -98,8 +85,6 @@ jobs:
- prepare
- test:
php-image: << parameters.php-image >>
guzzle-version: << parameters.guzzle-version>>
guzzle-psr-version: << parameters.guzzle-psr-version>>
- storing-test-results
tests-windows:
machine:
Expand Down Expand Up @@ -139,10 +124,6 @@ workflows:
- tests-php:
name: php-8.1
php-image: "cimg/php:8.1"
- tests-php:
name: php-7.4-guzzle-7
guzzle-version: "7.0.1"
guzzle-psr-version: "^1.7"
- tests-php:
name: php-7.4-nightly
influxdb-image: "quay.io/influxdb/influxdb:nightly"
Expand All @@ -152,13 +133,6 @@ workflows:
- tests-php:
name: php-7.2
php-image: "cimg/php:7.2"
guzzle-version: "^6"
guzzle-psr-version: "^1.7"
- tests-php:
name: php-7.1
php-image: "cimg/php:7.1"
guzzle-version: "^6"
guzzle-psr-version: "^1.7"
- tests-windows:
name: php-windows
- check-code-style
Expand Down
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## 2.6.0 [unreleased]
## 3.0.0 [unreleased]

### Features
1. [#114](https://github.com/influxdata/influxdb-client-php/pull/114): Minimal supported version of PHP is `7.2`

## 2.5.0 [2022-01-20]

### Features
1. [#105](https://github.com/influxdata/influxdb-client-php/pull/105): Add support for latest `guzzlehttp/psr7"`
1. [#107](https://github.com/influxdata/influxdb-client-php/pull/107): Add support for Parameterized Queries
1. [#111](https://github.com/influxdata/influxdb-client-php/pull/111): Using ArrayAcces in FluxRecord
1. [#111](https://github.com/influxdata/influxdb-client-php/pull/111): Using `ArrayAccess` in `FluxRecord`

### Bug Fixes
1. [#109](https://github.com/influxdata/influxdb-client-php/pull/109): PHP 8.1 deprecation warnings
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.1-cli AS dev
FROM php:7.2-cli AS dev

COPY --from=composer /usr/bin/composer /usr/bin/

Expand All @@ -7,4 +7,4 @@ RUN yes | pecl install xdebug \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini

RUN apt-get update && apt-get -y install git procps make zsh
RUN apt-get update && apt-get -y install git procps make zsh unzip
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"homepage": "https://www.github.com/influxdata/influxdb-client-php",
"license": "MIT",
"require": {
"php": ">=7.1",
"php": ">=7.2",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.2|^7.0.1",
"guzzlehttp/psr7": "^1.7|^2.0.0"
"guzzlehttp/guzzle": "^7.0.1",
"guzzlehttp/psr7": "^2.0.0"
},
"require-dev": {
"phpunit/phpunit": "^7.4|^9.1",
Expand Down

0 comments on commit e1695c6

Please sign in to comment.