From 98bc0b06dd3bc22dc637a21e7c822ebe11519c02 Mon Sep 17 00:00:00 2001 From: Sven Luijten <11269635+svenluijten@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:48:34 +0200 Subject: [PATCH] Abandon package in favor of Laravel's own `make:view` command (#105) * Make package uninstallable on Laravel versions after 10.23.0 * Add abandonment notice to README * Abandon in `composer.json` * Fix --- README.md | 6 ++++++ composer.json | 7 ++++--- phpunit.xml | 2 +- tests/TestCase.php | 3 +-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a650825..6e2dd0e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ [![Build Status][ico-build]][link-build] [![StyleCI][ico-styleci]][link-styleci] +> [!WARNING] +> This package has been **abandoned**. The `make:view` command is a part of Laravel +> since [v10.23.0](https://github.com/laravel/framework/releases/tag/v10.23.0), you +> should use that instead. You will still be able to install this package when using +> Laravel versions before `v10.23.0`. + This package adds a handful of view-related commands to Artisan in your Laravel project. Generate blade files that extend other views, scaffold out sections to add to those templates, and more. All from the command line we know and love! diff --git a/composer.json b/composer.json index 7ade51c..6b3ad6c 100644 --- a/composer.json +++ b/composer.json @@ -18,11 +18,11 @@ ], "require": { "php": "^8.1", - "laravel/framework": "^8.0 || ^9.0 || ^10.0" + "laravel/framework": "^8.0 || ^9.0 || ^10.0 < 10.23.0" }, "require-dev": { "phpunit/phpunit": "^9.0 || ^10.0", - "graham-campbell/testbench": "^5.6", + "graham-campbell/testbench": "^5.6 || ^6.0", "mockery/mockery": "^1.4" }, "autoload": { @@ -41,5 +41,6 @@ "Sven\\ArtisanView\\ServiceProvider" ] } - } + }, + "abandoned": "laravel/framework" } diff --git a/phpunit.xml b/phpunit.xml index 694d38f..52d903b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -12,7 +12,7 @@ > - ./tests/ + ./tests/ diff --git a/tests/TestCase.php b/tests/TestCase.php index 1ff482c..5684932 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -63,10 +63,9 @@ protected function view($name) } /** - * @param \Illuminate\Contracts\Foundation\Application $app * @return string */ - protected function getServiceProviderClass() + protected static function getServiceProviderClass(): string { return ServiceProvider::class; }