From b366c07fd7f2bb361efe1a7c651995e1216516c3 Mon Sep 17 00:00:00 2001 From: Fahad Heylaal Date: Fri, 24 Jul 2026 23:58:39 +0200 Subject: [PATCH] chore: upgrade to latest PHP SDK --- .github/workflows/checks.yml | 50 +++++++++++ composer.json | 2 +- composer.lock | 158 +++-------------------------------- 3 files changed, 64 insertions(+), 146 deletions(-) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..dc68e69 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,50 @@ +name: Checks + +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +concurrency: + group: checks-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + checks: + name: PHP ${{ matrix.php-version }} + runs-on: ubuntu-latest + timeout-minutes: 10 + + strategy: + fail-fast: false + matrix: + php-version: + - "8.0" + - "8.5" + + steps: + - name: Check out repository + uses: actions/checkout@v7 + + - name: Set up PHP ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + tools: composer:v2 + coverage: none + + - name: Validate dependencies + run: composer validate --strict + + - name: Install dependencies + run: composer install --no-interaction --prefer-dist --no-progress + + - name: Check syntax + run: php -l src/index.php + + - name: Run application + run: php src/index.php diff --git a/composer.json b/composer.json index c0e0cbc..cd6f112 100644 --- a/composer.json +++ b/composer.json @@ -4,6 +4,6 @@ "type": "project", "license": "MIT", "require": { - "featurevisor/featurevisor-php": "^1.0" + "featurevisor/featurevisor-php": "^2.0" } } diff --git a/composer.lock b/composer.lock index a205668..a8ae55d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,31 +4,33 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e37b949b5b8e926fd7e5b1b3ede4e665", + "content-hash": "9b40ada326ff79a1d8fd2329f61a3cd5", "packages": [ { "name": "featurevisor/featurevisor-php", - "version": "v1.0.0", + "version": "v2.0.0", "source": { "type": "git", "url": "https://github.com/featurevisor/featurevisor-php.git", - "reference": "15366f65c108e634277d45cef9710952b17a8a63" + "reference": "bfd61c573892e5f7cdbaedf97757846392be4454" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/featurevisor/featurevisor-php/zipball/15366f65c108e634277d45cef9710952b17a8a63", - "reference": "15366f65c108e634277d45cef9710952b17a8a63", + "url": "https://api.github.com/repos/featurevisor/featurevisor-php/zipball/bfd61c573892e5f7cdbaedf97757846392be4454", + "reference": "bfd61c573892e5f7cdbaedf97757846392be4454", "shasum": "" }, "require": { "ext-json": "*", - "php": "^7.4 || ^8.0", - "psr/log": "^1.1", - "symfony/polyfill-php80": "^1.33" + "php": "^8.0" }, "require-dev": { - "phpstan/phpstan": "^2.1", - "phpunit/phpunit": "^9" + "open-feature/sdk": "^2.2", + "phpstan/phpstan": "^2.2", + "phpunit/phpunit": "^9.6.33" + }, + "suggest": { + "open-feature/sdk": "Required for Featurevisor\\OpenFeatureProvider (PHP 8.0+)" }, "bin": [ "featurevisor" @@ -64,141 +66,7 @@ "issues": "https://github.com/featurevisor/featurevisor-php/issues", "source": "https://github.com/featurevisor/featurevisor-php" }, - "time": "2026-07-13T21:48:56+00:00" - }, - { - "name": "psr/log", - "version": "1.1.4", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" - }, - "time": "2021-05-03T11:20:27+00:00" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.37.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", - "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2026-04-10T16:19:22+00:00" + "time": "2026-07-23T22:41:41+00:00" } ], "packages-dev": [],