From 43f0662f6fec7e76bdd0e249409ec4da38daf2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimondas=20Rimkevi=C4=8Dius=20=28aka=20MekDrop=29?= Date: Thu, 5 Jun 2025 02:08:09 +0300 Subject: [PATCH] Bump min php version to 8.3 --- .github/workflows/on_pull_request.yml | 17 +++----- composer.json | 60 +++++++++++++++++---------- 2 files changed, 43 insertions(+), 34 deletions(-) diff --git a/.github/workflows/on_pull_request.yml b/.github/workflows/on_pull_request.yml index fe579c2..acd4281 100644 --- a/.github/workflows/on_pull_request.yml +++ b/.github/workflows/on_pull_request.yml @@ -13,25 +13,18 @@ jobs: max-parallel: 3 matrix: php: - - 7.2 - - 7.3 - - 7.4 - - 8.0 - - 8.1 - - 8.2 - 8.3 - composer: - - 2 + - 8.4 + composer: + - 2 name: Test - php:${{ matrix.php }}; composer:${{ matrix.composer }} steps: - name: Checkout uses: actions/checkout@v4 - name: Install PHP - uses: shivammathur/setup-php@master + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: curl, gd, pdo_mysql, json, mbstring, pcre, session - ini-values: post_max_size=256M coverage: none tools: composer:v${{ matrix.composer }} - name: Composer validate @@ -71,4 +64,4 @@ jobs: run: gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{ github.event.pull_request.html_url }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/composer.json b/composer.json index 042cce7..e19bd97 100644 --- a/composer.json +++ b/composer.json @@ -1,24 +1,40 @@ { - "name": "imponeer/toarray-interface", - "description": "PHP library that provides toArray interface, that could be used everywhere where you need to convert object into array and make sure that to that toArray function is because of same interface", - "type": "library", - "license": "MIT", - "keywords": [ - "toArray", - "interface" - ], - "authors": [ - { - "name": "Raimondas Rimkevičius", - "email": "github@mekdrop.name" - } - ], - "autoload": { - "psr-4": { - "Imponeer\\": "src/" - } - }, - "require": { - "php": ">=7.0" - } + "name": "imponeer/toarray-interface", + "description": "A PHP interface defining a standard method for converting objects to arrays. Ensures consistent method naming and return type for array conversion across different classes.", + "type": "library", + "license": "MIT", + "keywords": [ + "toarray", + "interface", + "contract", + "array-conversion", + "object-conversion", + "serializable", + "arrayable", + "php-interface" + ], + "homepage": "https://github.com/imponeer/toarray-interface", + "support": { + "issues": "https://github.com/imponeer/toarray-interface/issues", + "source": "https://github.com/imponeer/toarray-interface" + }, + "authors": [ + { + "name": "Raimondas Rimkevičius", + "email": "github@mekdrop.name", + "homepage": "https://mekdrop.name", + "role": "Developer" + } + ], + "require": { + "php": ">=8.3" + }, + "autoload": { + "psr-4": { + "Imponeer\\": "src/" + } + }, + "config": { + "sort-packages": true + } }