From 73873406d3608f217c750cf4e2536f9fe5a7eb0e Mon Sep 17 00:00:00 2001 From: ArturOlarTC Date: Wed, 20 Aug 2025 10:56:19 +0300 Subject: [PATCH] feat: Upgrade php verison (#11) BREAKING CHANGE: Upgrade php version --- .github/workflows/tests.yml | 6 +++--- CONTRIBUTING.md | 8 ++++---- composer.json | 25 ++++++++++++------------- src/Properties/DTO/PropertyDTO.php | 2 +- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 44d41ec..001a679 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: true matrix: - php: [ 8.2 ] + php: [ 8.4 ] steps: - name: Checkout code @@ -59,7 +59,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.2 + php-version: 8.4 extensions: dom, curl, libxml, mbstring, zip tools: composer:v2 coverage: none @@ -85,7 +85,7 @@ jobs: strategy: fail-fast: true matrix: - php: [ 8.2 ] + php: [ 8.4 ] steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 69cf175..ef7cea4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Commands Here are some of the commands that you'll need: - - install dependencies: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer install` - - run tests with phpunit: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer test` - - reformat using php-cs-fixer: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer cs-fix` - - analyse with phpstan: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer phpstan` + - install dependencies: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer install` + - run tests with phpunit: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer test` + - reformat using php-cs-fixer: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer cs-fix` + - analyse with phpstan: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer phpstan` diff --git a/composer.json b/composer.json index 591c23b..60576c1 100644 --- a/composer.json +++ b/composer.json @@ -3,22 +3,21 @@ "description": "Snappt laravel partner API SDK.", "license": "MIT", "require": { - "php": ">=8.2", - "illuminate/contracts": "^9.0|^10.0", + "php": ">=8.3", "guzzlehttp/guzzle": "^7.8", - "tenantcloud/guzzle-helper": "^1.5", - "tenantcloud/data-transfer-objects": "^1.6" + "tenantcloud/guzzle-helper": "^1.5|^2.0", + "tenantcloud/data-transfer-objects": "^1.6|^2.0" }, "require-dev": { - "pestphp/pest": "^2.8", - "php-cs-fixer/shim": "^3.54", - "tenantcloud/php-cs-fixer-rule-sets": "~3.3.1", - "phpstan/phpstan": "~1.10.21", - "phpstan/phpstan-phpunit": "^1.3", - "phpstan/phpstan-webmozart-assert": "^1.2", - "phpstan/phpstan-mockery": "^1.1", - "nunomaduro/larastan": "^2.6", - "orchestra/testbench": "^7.0 || ^8.5" + "pestphp/pest": "^3.8", + "php-cs-fixer/shim": "^3.75", + "tenantcloud/php-cs-fixer-rule-sets": "~3.4.1", + "phpstan/phpstan": "^2.1.17", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-webmozart-assert": "^2.0", + "phpstan/phpstan-mockery": "^2.0", + "nunomaduro/larastan": "^3.0", + "orchestra/testbench": "^7.0|^8.5|^9.0|^10.0" }, "autoload": { "psr-4": { diff --git a/src/Properties/DTO/PropertyDTO.php b/src/Properties/DTO/PropertyDTO.php index ee198ab..a2e093b 100644 --- a/src/Properties/DTO/PropertyDTO.php +++ b/src/Properties/DTO/PropertyDTO.php @@ -64,7 +64,7 @@ * @method int|null getPaystub() * @method bool hasPaystub() * @method self setSupportedDoctypes(?SupportedDoctypesDTO $supportedDoctypes) - * @method array|null getSupportedDoctypes() + * @method array|null getSupportedDoctypes() * @method bool hasSupportedDoctypes() * @method list|null getIdentityVerificationReportImageTypes() * @method bool hasIdentityVerificationReportImageTypes()