Skip to content

Commit

Permalink
Merge pull request #367 from alies-dev/no-laravel9
Browse files Browse the repository at this point in the history
Drop Laravel 9 support
  • Loading branch information
alies-dev authored Mar 12, 2024
2 parents 8c2f46b + 2bdcf3a commit 20d0530
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 85 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.0]
laravel: [^11.0, ^10.0, ^9.0]
php: [8.3, 8.2, 8.1]
laravel: [^11.0, ^10.0]
dependencies: [lowest, highest]
exclude:
- php: 8.0
laravel: ^10.0
- php: 8.0
- php: 8.1
laravel: ^11.0
name: Acceptance P${{ matrix.php }} | L${{ matrix.laravel }} | ${{ matrix.dependencies == 'highest' && '↑' || '↓' }}
steps:
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
],
"homepage": "https://github.com/psalm/psalm-plugin-laravel",
"require": {
"php": "^8.0.2",
"php": "^8.1",
"ext-simplexml": "*",
"barryvdh/laravel-ide-helper": "^2.13 || ^3.0",
"illuminate/config": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/container": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/contracts": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/database": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/events": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/http": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/routing": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/support": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/view": "^9.52.16 || ^10.48 || ^11.0",
"illuminate/config": "^10.48 || ^11.0",
"illuminate/container": "^10.48 || ^11.0",
"illuminate/contracts": "^10.48 || ^11.0",
"illuminate/database": "^10.48 || ^11.0",
"illuminate/events": "^10.48 || ^11.0",
"illuminate/http": "^10.48 || ^11.0",
"illuminate/routing": "^10.48 || ^11.0",
"illuminate/support": "^10.48 || ^11.0",
"illuminate/view": "^10.48 || ^11.0",
"nikic/php-parser": "^4.18 || ^5.0",
"orchestra/testbench": "^7.40 || ^8.21 || ^9.0",
"orchestra/testbench": "^8.21 || ^9.0",
"symfony/console": "^6.0 || ^7.0",
"vimeo/psalm": "^5.20"
},
Expand Down
16 changes: 0 additions & 16 deletions stubs/9/DBFacade.stubphp

This file was deleted.

12 changes: 0 additions & 12 deletions stubs/9/Foundation/helpers.stubphp

This file was deleted.

2 changes: 1 addition & 1 deletion stubs/legacy-factories/helpers.stubphp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Support old syntax of test factories (still used by some Laravel 9 projects using a composer package).
* Support old syntax of test factories (still used by some Laravel 9+ projects using a composer package).
* Stubs for {@see https://github.com/laravel/legacy-factories/blob/master/helpers.php}
*/

Expand Down
18 changes: 1 addition & 17 deletions tests/Acceptance/acceptance/DBFacadeAlias.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,7 @@ Feature: DB facade alias
</psalm>
"""

Scenario: call the DB facade alias [ Laravel 9 ]
Given I have the "laravel/framework" package satisfying the "^9.0"
And I have the following code
"""
<?php declare(strict_types=1);
namespace Tests\Psalm\LaravelPlugin\Sandbox;
function test_db_raw(): \Illuminate\Database\Query\Expression {
return \DB::raw(1);
}
"""
When I run Psalm
Then I see no errors

Scenario: call the DB facade alias [ Laravel 10 ]
Given I have the "laravel/framework" package satisfying the "^10.0"
Scenario: call the DB facade alias
And I have the following code
"""
<?php declare(strict_types=1);
Expand Down
23 changes: 0 additions & 23 deletions tests/Acceptance/acceptance/EloquentBuilderTypes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -155,29 +155,6 @@ Feature: Eloquent Builder types
When I run Psalm
Then I see no errors

Scenario: can call firstOrNew and firstOrCreate without parameters in [ Laravel 9 ]
Given I have the "laravel/framework" package satisfying the "^9.0"
And I have the following code
"""
/**
* @psalm-param Builder<User> $builder
* @psalm-return Builder<User>|User
*/
function test_firstOrCreate(Builder $builder): Builder|User {
return $builder->firstOrCreate();
}
/**
* @psalm-param Builder<User> $builder
* @psalm-return Builder<User>|User
*/
function test_firstOrNew(Builder $builder): Builder|User {
return $builder->firstOrNew();
}
"""
When I run Psalm
Then I see no errors

Scenario: can call whereDate with \DateTimeInterface|string|null
Given I have the following code
"""
Expand Down

0 comments on commit 20d0530

Please sign in to comment.