diff --git a/.github/workflows/lint-and-analyse-php.yml b/.github/workflows/lint-and-analyse-php.yml index 66aa7f4..7b6a6a8 100644 --- a/.github/workflows/lint-and-analyse-php.yml +++ b/.github/workflows/lint-and-analyse-php.yml @@ -11,10 +11,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up PHP 7.1 + - name: Set up PHP 7.2 uses: shivammathur/setup-php@v2 with: - php-version: 7.1 + php-version: 7.2 tools: composer:v2 - name: Validate composer.json and composer.lock @@ -34,10 +34,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up PHP 7.1 + - name: Set up PHP 7.2 uses: shivammathur/setup-php@v2 with: - php-version: 7.1 + php-version: 7.2 tools: composer:v2 extensions: dbase diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8c95f37..a5dd594 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: continue-on-error: ${{ matrix.experimental }} strategy: matrix: - php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] + php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] php-extensions: ['dbase', ':dbase'] os: [ubuntu-latest] experimental: [false] diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 4cb3591..812c345 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -18,7 +18,7 @@ build: analysis: environment: php: - version: 7.1 + version: 7.2 pecl_extensions: - dbase dependencies: diff --git a/composer.json b/composer.json index 6838b78..a30cc78 100644 --- a/composer.json +++ b/composer.json @@ -30,16 +30,16 @@ ] }, "require": { - "php": "^7.1 || ^8.0" + "php": "^7.2 || ^8.0" }, "suggest": { "ext-dbase": "For dbf files parsing" }, "require-dev": { "phpmyadmin/coding-standard": "^3.0.0", - "phpstan/phpstan": "^1.4.10", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.3" + "phpstan/phpstan": "^1.12", + "phpstan/phpstan-phpunit": "^1.4", + "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" }, "autoload": { "psr-4": { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1a658f5..2416aef 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -35,18 +35,13 @@ parameters: count: 1 path: src/ShapeFile.php - - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#" - count: 6 - path: src/ShapeFile.php - - message: "#^Parameter \\#1 \\$type of static method PhpMyAdmin\\\\ShapeFile\\\\Util\\:\\:nameShape\\(\\) expects int, int\\|false given\\.$#" count: 1 path: src/ShapeFile.php - - message: "#^Parameter \\#2 \\$length of function fread expects int\\<0, max\\>, int given\\.$#" + message: "#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int given\\.$#" count: 1 path: src/ShapeFile.php