chore: drop support for Laravel 7

Laravel 7 has reached its end-of-life.
This commit is contained in:
Claas Augner 2021-07-13 18:47:10 +02:00
parent c032e4eb8a
commit d475892ecc
3 changed files with 10 additions and 35 deletions

View File

@ -5,15 +5,15 @@
"require": {
"php": "^7.3|^8",
"ext-simplexml": "*",
"illuminate/config": "^6.0 || ^7.0 || ^8.0",
"illuminate/container": "^6.0 || ^7.0 || ^8.0",
"illuminate/contracts": "^6.0 || ^7.0 || ^8.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0",
"illuminate/events": "^6.0 || ^7.0 || ^8.0",
"illuminate/http": "^6.0 || ^7.0 || ^8.0",
"illuminate/routing": "^6.0 || ^7.0 || ^8.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0",
"illuminate/view": "^6.0 || ^7.0 || ^8.0",
"illuminate/config": "^6.0 || ^8.0",
"illuminate/container": "^6.0 || ^8.0",
"illuminate/contracts": "^6.0 || ^8.0",
"illuminate/database": "^6.0 || ^8.0",
"illuminate/events": "^6.0 || ^8.0",
"illuminate/http": "^6.0 || ^8.0",
"illuminate/routing": "^6.0 || ^8.0",
"illuminate/support": "^6.0 || ^8.0",
"illuminate/view": "^6.0 || ^8.0",
"vimeo/psalm": "^4.8.1",
"orchestra/testbench": "^3.8 || ^4.0 || ^5.0 || ^6.0",
"barryvdh/laravel-ide-helper": ">=2.8.0 <2.9.2"

View File

@ -1,25 +0,0 @@
<?php
/**
* @template TModel of \Illuminate\Database\Eloquent\Model
* @template TNameOrCountOrNull of string|int|null
* @template TCountOrNull of int|null
*
* @param class-string<TModel> $modelClassName
* @param TNameOrCountOrNull $nameOrCount
* @param TCountOrNull $count
*
* @return (
TCountOrNull is int
? Illuminate\Database\Eloquent\FactoryBuilder<TModel, TCountOrNull>
: (
TNameOrCountOrNull is int
? Illuminate\Database\Eloquent\FactoryBuilder<TModel, TNameOrCountOrNull>
: Illuminate\Database\Eloquent\FactoryBuilder<TModel, 1>
)
)
*/
function factory(string $modelClassName, $nameOrCount = null, $count = null)
{
}

View File

@ -25,7 +25,7 @@ Feature: factory()
"""
Scenario: can use factory helper in Laravel 6.x and 7.x
Given I have the "laravel/framework" package satisfying the "6.* || 7.*"
Given I have the "laravel/framework" package satisfying the "6.*"
And I have the following code
"""
class FactoryTest {