Skip to content

Commit

Permalink
Dropped PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
remorhaz committed Jun 16, 2023
1 parent d7fa0e2 commit 4b924a4
Show file tree
Hide file tree
Showing 209 changed files with 809 additions and 1,080 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:
strategy:
matrix:
php-version:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependencies:
- lowest
- highest
Expand Down Expand Up @@ -57,3 +56,15 @@ jobs:

- name: Run Infection
run: composer infection
env:
INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY }}

- name: Upload coverage to Codecov.io
run: bash <(curl -s https://codecov.io/bash -s "build/logs")
continue-on-error: true

- name: Upload coverage to Scrutinizer
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: --format=php-clover build/logs/clover.xml
continue-on-error: true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Removed
- Dropped support for PHP 7.

## [0.7.7] - 2021-10-13
### Fixed
- Queries now don't share same caching callback builder instance.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build](https://github.com/remorhaz/php-json-path/actions/workflows/build.yml/badge.svg)](https://github.com/remorhaz/php-json-path/actions/workflows/build.yml)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/remorhaz/php-json-path/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/remorhaz/php-json-path/?branch=master)
[![codecov](https://codecov.io/gh/remorhaz/php-json-path/branch/master/graph/badge.svg)](https://codecov.io/gh/remorhaz/php-json-path)
[![Infection MSI](https://badge.stryker-mutator.io/github.com/remorhaz/php-json-path/master)](https://infection.github.io)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fremorhaz%2Fphp-json-path%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/remorhaz/php-json-path/master)
[![Total Downloads](https://poser.pugx.org/remorhaz/php-json-path/downloads)](https://packagist.org/packages/remorhaz/php-json-path)
[![License](https://poser.pugx.org/remorhaz/php-json-path/license)](https://packagist.org/packages/remorhaz/php-json-path)

Expand All @@ -16,7 +16,7 @@ JSONPath is a simple query language for JSON documents, inspired by XPath for XM
- Transforms indefinite JSONPath query to set of definite queries for given JSON document.

## Requirements
- PHP 7.3+
- PHP 8
- [JSON extension](https://www.php.net/manual/en/book.json.php) (ext-json) - required by [remorhaz/php-json-data](https://github.com/remorhaz/php-json-data) that is used to access JSON documents.
- [Internationalization functions](https://www.php.net/manual/en/book.intl.php) (ext-intl)
- [Tokenizer extension](https://www.php.net/manual/en/book.tokenizer.php) (ext-tokenizer) - required by [nikic/php-parser](https://github.com/nikic/PHP-Parser) that is used for code generation.
Expand Down
24 changes: 16 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
}
],
"require": {
"php": "^7.3 || ^8",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"ext-intl": "*",
"ext-json": "*",
"remorhaz/php-unilex": "^0.4.1",
"remorhaz/php-json-data": "^0.5.3",
"remorhaz/php-unilex": "^0.5.2",
"remorhaz/php-json-data": "^0.6",
"nikic/php-parser": "^4.12"
},
"require-dev": {
"infection/infection": "^0.18 || ^0.24 || ^0.25",
"phpunit/phpunit": "^9.5.10",
"squizlabs/php_codesniffer": "^3.6.1"
"infection/infection": "^0.26 || ^0.27",
"phpunit/phpunit": "^9.6 || ^10",
"squizlabs/php_codesniffer": "^3.7.2"
},
"autoload": {
"psr-4": {
Expand All @@ -51,16 +51,24 @@
"vendor/bin/phpcs -sp"
],
"test-unit": [
"vendor/bin/phpunit --coverage-xml=build/log/coverage-xml --log-junit=build/log/junit.xml"
"vendor/bin/phpunit --coverage-xml=build/log/coverage-xml --coverage-clover=build/log/clover.xml --log-junit=build/log/junit.xml"
],
"test": [
"@test-cs",
"@test-unit"
],
"infection": [
"@test-unit",
"mkdir -p build/log/infection",
"vendor/bin/infection --threads=4 --coverage=build/log --no-progress --skip-initial-tests"
],
"test-infection": [
"@test-unit",
"@infection"
]
},
"config": {
"allow-plugins": {
"infection/extension-installer": true
}
}
}
17 changes: 5 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,21 @@ services:
php:
build:
context: .
dockerfile: php-7.3.Dockerfile
volumes:
- .:/app
working_dir: /app
php7.4:
build:
context: .
dockerfile: php-7.4.Dockerfile
dockerfile: php-8.0.Dockerfile
volumes:
- .:/app
working_dir: /app
php8.0:
php8.1:
build:
context: .
dockerfile: php-8.0.Dockerfile
dockerfile: php-8.1.Dockerfile
volumes:
- .:/app
working_dir: /app
php8.1:
php8.2:
build:
context: .
dockerfile: php-8.1.Dockerfile
dockerfile: php-8.2.Dockerfile
volumes:
- .:/app
working_dir: /app
Loading

0 comments on commit 4b924a4

Please sign in to comment.