Skip to content

Commit 1aaba36

Browse files
authored
Merge pull request #23 from mharmuth/feat/support-php84
Support PHP 8.4
2 parents f503d06 + c591b2d commit 1aaba36

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- '8.1'
1919
- '8.2'
2020
- '8.3'
21+
- '8.4'
2122
dependencies:
2223
- 'default'
2324
include:
@@ -29,6 +30,8 @@ jobs:
2930
dependencies: 'lowest'
3031
- php_version: '8.3'
3132
dependencies: 'lowest'
33+
- php_version: '8.4'
34+
dependencies: 'lowest'
3235
steps:
3336
- name: Setup PHP
3437
uses: shivammathur/setup-php@v2
@@ -44,7 +47,7 @@ jobs:
4447
run: |
4548
echo "::set-output name=dir::$(composer config cache-files-dir)"
4649
47-
- uses: actions/cache@v2
50+
- uses: actions/cache@v3
4851
with:
4952
path: ${{ steps.composer-cache.outputs.dir }}
5053
key: ${{ runner.os }}-composer-${{matrix.php_version}}-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## Unreleased
66

7+
## 1.3.2 / 2025-05-06
8+
9+
* Support PHP 8.4 (thanks @mharmuth)
10+
711
## 1.3.1 / 2024-09-03
812

913
* Support PHP 8.3

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"require": {
1515
"behat/gherkin": ">=2.0.0 <5.0.0",
1616
"masterminds/html5": "^2.7.5",
17-
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
17+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
1818
"ext-dom": "*",
1919
"ext-SimpleXML": "*",
2020
"ext-libxml": "*"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "^9.5",
23+
"phpunit/phpunit": "^9.6.22",
2424
"behat/mink": "^1.7"
2525
},
2626
"suggest": {

src/AssertTable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class AssertTable
3030
protected $formatter;
3131

3232
/**
33-
* @param \Ingenerator\BehatTableAssert\TableDiffer\TableDiffer|NULL $differ
34-
* @param \Ingenerator\BehatTableAssert\TableDiffer\DiffFormatter|NULL $formatter
33+
* @param \Ingenerator\BehatTableAssert\TableDiffer\TableDiffer|null $differ
34+
* @param \Ingenerator\BehatTableAssert\TableDiffer\DiffFormatter|null $formatter
3535
*/
36-
public function __construct(TableDiffer $differ = NULL, DiffFormatter $formatter = NULL)
36+
public function __construct(?TableDiffer $differ = NULL, ?DiffFormatter $formatter = NULL)
3737
{
3838
$this->differ = $differ ?: new TableDiffer;
3939
$this->formatter = $formatter ?: new DiffFormatter;

src/TableParser/CSV/CSVStreamTableParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function isValidStream($string)
6363
protected function readCSVRows($stream)
6464
{
6565
$rows = [];
66-
while ($row = \fgetcsv($stream)) {
66+
while ($row = \fgetcsv($stream, 0, ',', '"', '\\')) {
6767
if ($row === [NULL]) {
6868
$row = [];
6969
}

0 commit comments

Comments
 (0)