Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed May 7, 2024
1 parent 3f43eea commit 25595dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on: [push]

jobs:
tests:
name: PHP ${{ matrix.php }}
name: PHP ${{ matrix.php }} (Composer Flags: ${{ matrix.composer }})'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.1]
php: [8.1, 8.2, 8.3]
composer: ['--prefer-stable', '--prefer-lowest']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -22,7 +23,7 @@ jobs:
uses: actions/checkout@v3

- name: Install the dependencies
run: composer install --no-interaction --no-progress
run: composer update --no-interaction --no-suggest ${{ matrix.composer }}

- name: Run the unit tests
run: vendor/bin/phpunit --colors=always
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"allow-plugins": {
"contao-components/installer": true,
"contao/manager-plugin": true,
"php-http/discovery": false
"php-http/discovery": false,
"terminal42/contao-build-tools": true
}
},
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/Form/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,6 @@ public function __construct($model, $value, $field, $name)
$this->field = $field;
$this->inputName = $name;
$this->activeRecord = $model; // BC

parent::__construct();
}

public function getCurrentRecord(int|string|null $id = null, string|null $table = null): array|null
Expand Down
2 changes: 1 addition & 1 deletion tests/StringParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function flattenDataProvider()
'foo',
[],
[
'foo_bar' => 'baz',
'foo_bar_baz' => '1',
'foo_bar' => 'baz',
'foo' => '',
],
],
Expand Down

0 comments on commit 25595dd

Please sign in to comment.