Skip to content

Commit 9af62e2

Browse files
authored
Bump minimum PHP version to 8.1 & misc maintenance (#1521)
* Bump minimum PHP version to 8.1 Laravel 10 doesn't support 8.0 anyway * Remove phpunit 9 * gha: remove unused matrix dimension * gha: bump runner os * tests: remove outdated version checks
1 parent 05259b6 commit 9af62e2

File tree

9 files changed

+15
-27
lines changed

9 files changed

+15
-27
lines changed

.github/workflows/composer-normalize.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
normalize:
1111
timeout-minutes: 15
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Git checkout
1515
uses: actions/checkout@v4

.github/workflows/fix-code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
fix-style:
88
name: Fix Code Style
99
timeout-minutes: 15
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
env:
1212
COMPOSER_NO_INTERACTION: 1
1313

.github/workflows/run-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
php-laravel-integration-tests:
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616
timeout-minutes: 15
1717
env:
1818
COMPOSER_NO_INTERACTION: 1

.github/workflows/run-static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
timeout-minutes: 15
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313

1414
steps:
1515
- uses: actions/checkout@v4

.github/workflows/run-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
os: [ubuntu-20.04, windows-2019]
23+
os: [ubuntu-22.04, windows-2019]
2424
php: [8.3, 8.2, 8.1]
2525
laravel: [10.*, 11.*]
2626
stability: [prefer-lowest, prefer-stable]
27-
dependency-version: [prefer-lowest, prefer-stable]
2827
exclude:
2928
- php: 8.1
3029
laravel: 11.*

CHANGELOG.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ All notable changes to this project will be documented in this file.
77

88
### Fixed
99

10-
### Changed
11-
- Use of doctrine/dbal [#1512 / barryvdh](https://github.com/barryvdh/laravel-ide-helper/pull/1512)
12-
With this functionality gone, a few changes have been made:
13-
- support for custom datatypes has been dropped (config `custom_db_types`) unknown data types default to `string` now and to fix the type, add a proper cast in Eloquent
14-
- You _might_ have top-level dependency on doctrine/dbal. This may have been in the past due to ide-helper, we suggest to check if you still need it and remove it otherwise
15-
1610
### Added
1711
- Support for Laravel 11 [#1520 / KentarouTakeda](https://github.com/barryvdh/laravel-ide-helper/pull/1520)
1812

13+
### Removed
14+
- Support for Laravel 9 and use of doctrine/dbal [#1512 / barryvdh](https://github.com/barryvdh/laravel-ide-helper/pull/1512)
15+
With this functionality gone, a few changes have been made:
16+
- support for custom datatypes has been dropped (config `custom_db_types`) unknown data types default to `string` now and to fix the type, add a proper cast in Eloquent
17+
- You _might_ have top-level dependency on doctrine/dbal. This may have been in the past due to ide-helper, we suggest to check if you still need it and remove it otherwise
18+
- Minimum PHP version, due to Laravel 10, is now PHP 8.1
19+
20+
1921
2024-02-15, 2.15.1
2022
------------------
2123

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^8.0",
23+
"php": "^8.1",
2424
"ext-json": "*",
2525
"barryvdh/reflection-docblock": "^2.1.1",
2626
"composer/class-map-generator": "^1.0",
@@ -38,7 +38,7 @@
3838
"illuminate/view": "^9 || ^10 || ^11",
3939
"mockery/mockery": "^1.4",
4040
"orchestra/testbench": "^8 || ^9",
41-
"phpunit/phpunit": "^9 || ^10.5",
41+
"phpunit/phpunit": "^10.5",
4242
"spatie/phpunit-snapshot-assertions": "^4 || ^5",
4343
"vimeo/psalm": "^5.4"
4444
},

tests/Console/ModelsCommand/AdvancedCasts/Test.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@
66

77
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
88
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand;
9-
use Illuminate\Foundation\Application;
109

1110
class Test extends AbstractModelsCommand
1211
{
1312
public function test(): void
1413
{
15-
if (!version_compare(Application::VERSION, '8.28', '>=')) {
16-
$this->markTestSkipped(
17-
'This test only works in Laravel >= 8.28'
18-
);
19-
}
20-
2114
$command = $this->app->make(ModelsCommand::class);
2215

2316
$tester = $this->runCommand($command, [

tests/Console/ModelsCommand/GenerateBasicPhpDocWithEnumDefaults/Test.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ class Test extends AbstractModelsCommand
1111
{
1212
public function test(): void
1313
{
14-
if (!version_compare(PHP_VERSION, '8.1', '>=')) {
15-
$this->markTestSkipped(
16-
'This test only works in PHP >= 8.1'
17-
);
18-
}
19-
2014
$command = $this->app->make(ModelsCommand::class);
2115

2216
$tester = $this->runCommand($command, [

0 commit comments

Comments
 (0)