From 564ca925030e3dd6490f589b014d410fdf3b4ba1 Mon Sep 17 00:00:00 2001 From: freek Date: Fri, 14 Jan 2022 21:22:44 +0100 Subject: [PATCH 01/42] wip --- .github/workflows/run-tests.yml | 6 ++++-- composer.json | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f296bd3..d4b79a6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,10 +9,12 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1, 8.0, 7.4] - laravel: [8.*] + php: [8.1, 8.0] + laravel: [9.*, 8.*] dependency-version: [prefer-lowest, prefer-stable] include: + - laravel: 9.* + testbench: 7.* - laravel: 8.* testbench: ^6.23 diff --git a/composer.json b/composer.json index 6aa75b5..fcc37f7 100644 --- a/composer.json +++ b/composer.json @@ -16,8 +16,9 @@ } ], "require": { - "php": "^7.4|^8.0", - "laravel/framework": "^8.71" + "php": "^8.0", + "laravel/framework": "^8.71|^9.0", + "orchestra/testbench": "^6.24|^7.0" }, "require-dev": { "phpunit/phpunit": "^9.4", From 3c131da57c9b889058e2bc18b0154d3152f20923 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Fri, 14 Jan 2022 20:24:33 +0000 Subject: [PATCH 02/42] Update CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e140b29..539440c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.4.0 - 2022-01-14 + +- support Laravel 9 + ## 2.3.1 - 2021-12-01 ## What's Changed From 824c267a3df4e5f30fbf8a43f9a96fe50440d58c Mon Sep 17 00:00:00 2001 From: Geidel Guerra Date: Wed, 2 Feb 2022 23:14:28 -0500 Subject: [PATCH 03/42] Move orchestra/testbench to dev dependencies --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index fcc37f7..eb99ae9 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,12 @@ ], "require": { "php": "^8.0", - "laravel/framework": "^8.71|^9.0", - "orchestra/testbench": "^6.24|^7.0" + "laravel/framework": "^8.71|^9.0" }, "require-dev": { "phpunit/phpunit": "^9.4", - "mockery/mockery": "^1.4" + "mockery/mockery": "^1.4", + "orchestra/testbench": "^6.24|^7.0" }, "autoload": { "psr-4": { From cca255130506194d2173fa616a44dc917cd73bf1 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Thu, 3 Feb 2022 07:51:45 +0000 Subject: [PATCH 04/42] Update CHANGELOG --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 539440c..79c7b38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.4.1 - 2022-02-03 + +## What's Changed + +- Move orchestra/testbench to dev dependencies by @geidelguerra in https://github.com/spatie/laravel-stubs/pull/17 + +## New Contributors + +- @geidelguerra made their first contribution in https://github.com/spatie/laravel-stubs/pull/17 + +**Full Changelog**: https://github.com/spatie/laravel-stubs/compare/2.4.0...2.4.1 + ## 2.4.0 - 2022-01-14 - support Laravel 9 From e6cf5a0d72b0cf1b0ba1137863282719e7aa106c Mon Sep 17 00:00:00 2001 From: Max Hoogenbosch Date: Mon, 7 Feb 2022 15:47:27 +0100 Subject: [PATCH 05/42] Removed docblock from policy method --- stubs/policy.stub | 7 ------- 1 file changed, 7 deletions(-) diff --git a/stubs/policy.stub b/stubs/policy.stub index 1556126..abb584f 100644 --- a/stubs/policy.stub +++ b/stubs/policy.stub @@ -40,13 +40,6 @@ class {{ class }} // } - /** - * Determine whether the user can permanently delete the model. - * - * @param \{{ namespacedUserModel }} $user - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return mixed - */ public function forceDelete({{ user }} $user, {{ model }} ${{ modelVariable }}) { // From e7e1ef2e72044dec31f9289408896de3b66e71bc Mon Sep 17 00:00:00 2001 From: freekmurze Date: Mon, 7 Feb 2022 15:28:07 +0000 Subject: [PATCH 06/42] Update CHANGELOG --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79c7b38..f68a7d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.4.2 - 2022-02-07 + +## What's Changed + +- Remove docblock from policy method by @Xammie in https://github.com/spatie/laravel-stubs/pull/18 + +## New Contributors + +- @Xammie made their first contribution in https://github.com/spatie/laravel-stubs/pull/18 + +**Full Changelog**: https://github.com/spatie/laravel-stubs/compare/2.4.1...2.4.2 + ## 2.4.1 - 2022-02-03 ## What's Changed From 684013624b9aab9ee46a0602e8484a1fd6dec6aa Mon Sep 17 00:00:00 2001 From: Geidel Guerra Date: Tue, 8 Feb 2022 17:08:46 -0500 Subject: [PATCH 07/42] Add event stub --- stubs/event.stub | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 stubs/event.stub diff --git a/stubs/event.stub b/stubs/event.stub new file mode 100644 index 0000000..50e75b3 --- /dev/null +++ b/stubs/event.stub @@ -0,0 +1,26 @@ + Date: Wed, 9 Feb 2022 07:57:40 +0000 Subject: [PATCH 08/42] Update CHANGELOG --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f68a7d5..fa965ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.4.3 - 2022-02-09 + +## What's Changed + +- Add event stub by @geidelguerra in https://github.com/spatie/laravel-stubs/pull/19 + +**Full Changelog**: https://github.com/spatie/laravel-stubs/compare/2.4.2...2.4.3 + ## 2.4.2 - 2022-02-07 ## What's Changed From d15b874ff5fca7d6b93598b79bd890a9785be89d Mon Sep 17 00:00:00 2001 From: Adriaan Marain Date: Wed, 9 Mar 2022 17:23:30 +0100 Subject: [PATCH 09/42] Add banner --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c62b425..4cdfb1c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ + +[](https://supportukrainenow.org) + # Opinionated Laravel stubs [![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs) From d87f81cc86e1217d7c28270c0f5165262f0f9cb0 Mon Sep 17 00:00:00 2001 From: Adriaan Marain Date: Mon, 21 Mar 2022 13:11:06 +0100 Subject: [PATCH 10/42] Change copy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4cdfb1c..d25b6b4 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details. ## Security -If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker. +If you've found a bug regarding security please mail [security@spatie.be](mailto:security@spatie.be) instead of using the issue tracker. ## Credits From f84b7f632f52078c1f5f4ab72942cbda7067aa20 Mon Sep 17 00:00:00 2001 From: Adriaan Marain Date: Mon, 21 Mar 2022 13:40:00 +0100 Subject: [PATCH 11/42] Change copy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d25b6b4..1fdef5a 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed re ## Contributing -Please see [CONTRIBUTING](CONTRIBUTING.md) for details. +Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details. ## Security From 57005ebcdd715fe0efadbbda62f87c68cfe928de Mon Sep 17 00:00:00 2001 From: Adriaan Marain Date: Mon, 21 Mar 2022 15:37:54 +0100 Subject: [PATCH 12/42] Use organisation-wide community health files --- CONTRIBUTING.md | 55 ------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index b4ae1c4..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,55 +0,0 @@ -# Contributing - -Contributions are **welcome** and will be fully **credited**. - -Please read and understand the contribution guide before creating an issue or pull request. - -## Etiquette - -This project is open source, and as such, the maintainers give their free time to build and maintain the source code -held within. They make the code freely available in the hope that it will be of use to other developers. It would be -extremely unfair for them to suffer abuse or anger for their hard work. - -Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the -world that developers are civilized and selfless people. - -It's the duty of the maintainer to ensure that all submissions to the project are of sufficient -quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used. - -## Viability - -When requesting or submitting new features, first consider whether it might be useful to others. Open -source projects are used by many developers, who may have entirely different needs to your own. Think about -whether or not your feature is likely to be used by other users of the project. - -## Procedure - -Before filing an issue: - -- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident. -- Check to make sure your feature suggestion isn't already present within the project. -- Check the pull requests tab to ensure that the bug doesn't have a fix in progress. -- Check the pull requests tab to ensure that the feature isn't already in progress. - -Before submitting a pull request: - -- Check the codebase to ensure that your feature doesn't already exist. -- Check the pull requests to ensure that another person hasn't already submitted the feature or fix. - -## Requirements - -If the project maintainer has any additional requirements, you will find them listed here. - -- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](https://pear.php.net/package/PHP_CodeSniffer). - -- **Add tests!** - Your patch won't be accepted if it doesn't have tests. - -- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date. - -- **Consider our release cycle** - We try to follow [SemVer v2.0.0](https://semver.org/). Randomly breaking public APIs is not an option. - -- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests. - -- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](https://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting. - -**Happy coding**! From 53bebaf2d5fd72517260831f836db2ea3e884e27 Mon Sep 17 00:00:00 2001 From: Max Hoogenbosch Date: Wed, 20 Jul 2022 14:53:42 +0200 Subject: [PATCH 13/42] Updated factory stub to use generics This is already used in the default laravel stubs https://github.com/laravel/framework/blob/9.x/src/Illuminate/Database/Console/Factories/stubs/factory.stub --- stubs/factory.stub | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stubs/factory.stub b/stubs/factory.stub index e90f2c9..931a03b 100644 --- a/stubs/factory.stub +++ b/stubs/factory.stub @@ -6,6 +6,9 @@ use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; use {{ namespacedModel }}; +/** + * @extends Factory<{{ model }}> + */ class {{ model }}Factory extends Factory { protected $model = {{ model }}::class; From aee341fef1b415d6cf56322b5e6968eec33fbb42 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Fri, 29 Jul 2022 14:12:55 +0000 Subject: [PATCH 14/42] Update CHANGELOG --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa965ff..da45ce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.4.4 - 2022-07-29 + +### What's Changed + +- Updated factory stub to use generics by @Xammie in https://github.com/spatie/laravel-stubs/pull/21 + +**Full Changelog**: https://github.com/spatie/laravel-stubs/compare/2.4.3...2.4.4 + ## 2.4.3 - 2022-02-09 ## What's Changed From 9ff225d9b651b87093732f106df6b1b721a6314d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Silvan=20Kr=C3=A4henb=C3=BChl?= Date: Mon, 8 Aug 2022 05:37:53 +0200 Subject: [PATCH 15/42] Update request stub to use generics This is already used in the default laravel stubs https://github.com/laravel/framework/blob/9.x/src/Illuminate/Foundation/Console/stubs/request.stub#L22 --- stubs/request.stub | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stubs/request.stub b/stubs/request.stub index a602007..7334a9c 100644 --- a/stubs/request.stub +++ b/stubs/request.stub @@ -6,6 +6,9 @@ use Illuminate\Foundation\Http\FormRequest; class {{ class }} extends FormRequest { + /** + * @return array + */ public function rules(): array { return []; From 1c244e4f494424f0b70396aedb721d18f56ea274 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Wed, 14 Sep 2022 20:21:05 +0200 Subject: [PATCH 16/42] wip --- stubs/rule.stub | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/stubs/rule.stub b/stubs/rule.stub index eddbf54..7452364 100644 --- a/stubs/rule.stub +++ b/stubs/rule.stub @@ -2,17 +2,12 @@ namespace {{ namespace }}; -use Illuminate\Contracts\Validation\Rule; +use Illuminate\Contracts\Validation\InvokableRule; -class {{ class }} implements Rule +class {{ class }} implements InvokableRule { - public function passes($attribute, $value) + public function __invoke($attribute, $value, $fail) { // } - - public function message() - { - return 'The validation error message.'; - } } From 049798ec02de4df153f5910a69297b814afbf1b1 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Wed, 14 Sep 2022 18:22:47 +0000 Subject: [PATCH 17/42] Update CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index da45ce7..caf1ad5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.5.0 - 2022-09-14 + +- use invokable rule by default + ## 2.4.4 - 2022-07-29 ### What's Changed From 2c60ecdb0a9f4e5631c315f69ca0e04918dd3550 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Sun, 18 Sep 2022 21:13:56 +0200 Subject: [PATCH 18/42] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1fdef5a..3046a8a 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ We invest a lot of resources into creating [best in class open source packages]( We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards). +## Exploring laravel-stubs + +In this [video on YouTube](https://www.youtube.com/watch?v=I-y-VSOL93I), Povilas Korop explores our package. + ## Installation You can install the package via composer: From 0813d4b4bd2e12f743aa1802b801c014dad5da18 Mon Sep 17 00:00:00 2001 From: Alex Manase Date: Fri, 6 Jan 2023 18:24:24 +0200 Subject: [PATCH 19/42] install Pest --- composer.json | 10 +++++++--- tests/Pest.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 tests/Pest.php diff --git a/composer.json b/composer.json index eb99ae9..1bf03a7 100644 --- a/composer.json +++ b/composer.json @@ -20,9 +20,10 @@ "laravel/framework": "^8.71|^9.0" }, "require-dev": { - "phpunit/phpunit": "^9.4", "mockery/mockery": "^1.4", - "orchestra/testbench": "^6.24|^7.0" + "orchestra/testbench": "^6.24|^7.0", + "pestphp/pest": "^1.22", + "phpunit/phpunit": "^9.4" }, "autoload": { "psr-4": { @@ -40,7 +41,10 @@ "test-coverage": "vendor/bin/phpunit --coverage-html coverage" }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } }, "extra": { "laravel": { diff --git a/tests/Pest.php b/tests/Pest.php new file mode 100644 index 0000000..5949c61 --- /dev/null +++ b/tests/Pest.php @@ -0,0 +1,45 @@ +in('Feature'); + +/* +|-------------------------------------------------------------------------- +| Expectations +|-------------------------------------------------------------------------- +| +| When you're writing tests, you often need to check that values meet certain conditions. The +| "expect()" function gives you access to a set of "expectations" methods that you can use +| to assert different things. Of course, you may extend the Expectation API at any time. +| +*/ + +expect()->extend('toBeOne', function () { + return $this->toBe(1); +}); + +/* +|-------------------------------------------------------------------------- +| Functions +|-------------------------------------------------------------------------- +| +| While Pest is very powerful out-of-the-box, you may have some testing code specific to your +| project that you don't want to repeat in every file. Here you can also expose helpers as +| global functions to help you to reduce the number of lines of code in your test files. +| +*/ + +function something() +{ + // .. +} From ec3dfeab7fd14dec021d0418c6a0dc52bae1ee80 Mon Sep 17 00:00:00 2001 From: Alex Manase Date: Fri, 6 Jan 2023 18:26:01 +0200 Subject: [PATCH 20/42] refactor: StubPublishCommandTest --- tests/Pest.php | 44 +------------------------------- tests/StubPublishCommandTest.php | 25 ++++++++---------- 2 files changed, 11 insertions(+), 58 deletions(-) diff --git a/tests/Pest.php b/tests/Pest.php index 5949c61..7edd303 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,45 +1,3 @@ in('Feature'); - -/* -|-------------------------------------------------------------------------- -| Expectations -|-------------------------------------------------------------------------- -| -| When you're writing tests, you often need to check that values meet certain conditions. The -| "expect()" function gives you access to a set of "expectations" methods that you can use -| to assert different things. Of course, you may extend the Expectation API at any time. -| -*/ - -expect()->extend('toBeOne', function () { - return $this->toBe(1); -}); - -/* -|-------------------------------------------------------------------------- -| Functions -|-------------------------------------------------------------------------- -| -| While Pest is very powerful out-of-the-box, you may have some testing code specific to your -| project that you don't want to repeat in every file. Here you can also expose helpers as -| global functions to help you to reduce the number of lines of code in your test files. -| -*/ - -function something() -{ - // .. -} +uses(Spatie\Stubs\Tests\TestCase::class)->in('.'); diff --git a/tests/StubPublishCommandTest.php b/tests/StubPublishCommandTest.php index c300a02..9cc0c91 100644 --- a/tests/StubPublishCommandTest.php +++ b/tests/StubPublishCommandTest.php @@ -1,24 +1,19 @@ app->basePath('stubs'); +use function PHPUnit\Framework\assertFileEquals; + +it('can publish stubs', function () { + $targetStubsPath = $this->app->basePath('stubs'); - File::deleteDirectory($targetStubsPath); + File::deleteDirectory($targetStubsPath); - $this->artisan('spatie-stub:publish')->assertExitCode(0); + $this->artisan('spatie-stub:publish')->assertExitCode(0); - $stubPath = __DIR__ . '/../stubs/migration.stub'; + $stubPath = __DIR__ . '/../stubs/migration.stub'; - $publishedStubPath = $targetStubsPath . '/migration.stub'; + $publishedStubPath = $targetStubsPath . '/migration.stub'; - $this->assertFileEquals($stubPath, $publishedStubPath); - } -} + assertFileEquals($stubPath, $publishedStubPath); +}); From 0836abd53f7ba3272ab093fe0d82409215e43e49 Mon Sep 17 00:00:00 2001 From: Alex Manase Date: Fri, 6 Jan 2023 18:26:34 +0200 Subject: [PATCH 21/42] replace test suite in Github action and `composer.json` --- .github/workflows/run-tests.yml | 2 +- composer.json | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index d4b79a6..c83e7de 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -37,4 +37,4 @@ jobs: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests - run: vendor/bin/phpunit + run: vendor/bin/pest diff --git a/composer.json b/composer.json index 1bf03a7..f8595ef 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,6 @@ "mockery/mockery": "^1.4", "orchestra/testbench": "^6.24|^7.0", "pestphp/pest": "^1.22", - "phpunit/phpunit": "^9.4" }, "autoload": { "psr-4": { @@ -37,8 +36,8 @@ }, "scripts": { "format": "vendor/bin/php-cs-fixer fix", - "test": "vendor/bin/phpunit", - "test-coverage": "vendor/bin/phpunit --coverage-html coverage" + "test": "vendor/bin/pest", + "test-coverage": "vendor/bin/pest --coverage-html coverage" }, "config": { "sort-packages": true, @@ -55,4 +54,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} +} \ No newline at end of file From c22b3dc5da4a699ec8785aae9f3873f4804b1699 Mon Sep 17 00:00:00 2001 From: Alex Manase Date: Fri, 6 Jan 2023 18:27:06 +0200 Subject: [PATCH 22/42] fix: composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f8595ef..2434f86 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "require-dev": { "mockery/mockery": "^1.4", "orchestra/testbench": "^6.24|^7.0", - "pestphp/pest": "^1.22", + "pestphp/pest": "^1.22" }, "autoload": { "psr-4": { From b6932f7075438064780c4d31e4198f730770d7ad Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Sun, 15 Jan 2023 12:41:39 +0100 Subject: [PATCH 23/42] add comment --- stubs/rule.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/rule.stub b/stubs/rule.stub index 7452364..c0f30fc 100644 --- a/stubs/rule.stub +++ b/stubs/rule.stub @@ -8,6 +8,6 @@ class {{ class }} implements InvokableRule { public function __invoke($attribute, $value, $fail) { - // + // $fail('This rule failed'); } } From dd61079f6f9c1d8d6e6742cee853dfc80ecd1e6f Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Sun, 15 Jan 2023 12:47:20 +0100 Subject: [PATCH 24/42] update stubs --- stubs/event.stub | 15 ----------- stubs/factory.stub | 3 --- stubs/mail.stub | 59 ++++++++++++++++++++++++++++++++++++++++++++ stubs/pest.stub | 7 ++++++ stubs/pest.unit.stub | 5 ++++ 5 files changed, 71 insertions(+), 18 deletions(-) create mode 100644 stubs/mail.stub create mode 100644 stubs/pest.stub create mode 100644 stubs/pest.unit.stub diff --git a/stubs/event.stub b/stubs/event.stub index 50e75b3..5fbf9e7 100644 --- a/stubs/event.stub +++ b/stubs/event.stub @@ -2,25 +2,10 @@ namespace {{ namespace }}; -use Illuminate\Broadcasting\Channel; -use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; -use Illuminate\Foundation\Events\Dispatchable; -use Illuminate\Queue\SerializesModels; - class {{ class }} { - use Dispatchable, InteractsWithSockets, SerializesModels; - public function __construct() { // } - - public function broadcastOn(): Channel|array - { - return new PrivateChannel('channel-name'); - } } diff --git a/stubs/factory.stub b/stubs/factory.stub index 931a03b..e90f2c9 100644 --- a/stubs/factory.stub +++ b/stubs/factory.stub @@ -6,9 +6,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; use {{ namespacedModel }}; -/** - * @extends Factory<{{ model }}> - */ class {{ model }}Factory extends Factory { protected $model = {{ model }}::class; diff --git a/stubs/mail.stub b/stubs/mail.stub new file mode 100644 index 0000000..aa6104c --- /dev/null +++ b/stubs/mail.stub @@ -0,0 +1,59 @@ +get('/'); + + $response->assertStatus(200); +}); diff --git a/stubs/pest.unit.stub b/stubs/pest.unit.stub new file mode 100644 index 0000000..b5d36cc --- /dev/null +++ b/stubs/pest.unit.stub @@ -0,0 +1,5 @@ +toBeTrue(); +}); From 374397b50789c00b0ac6e8665185d5f1de49de31 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Sun, 15 Jan 2023 12:47:40 +0100 Subject: [PATCH 25/42] Update README.md --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 3046a8a..bc52c13 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ - -[](https://supportukrainenow.org) - # Opinionated Laravel stubs [![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs) From 3219a0a48c3a43cc9d674efb7907fdad5b824eb8 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Sun, 15 Jan 2023 11:48:41 +0000 Subject: [PATCH 26/42] Update CHANGELOG --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index caf1ad5..4f2f306 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.5.1 - 2023-01-15 + +### What's Changed + +- Polish stubs (by @freekmurze) +- Convert all tests to pest by @alexmanase in https://github.com/spatie/laravel-stubs/pull/26 + +### New Contributors + +- @alexmanase made their first contribution in https://github.com/spatie/laravel-stubs/pull/26 + +**Full Changelog**: https://github.com/spatie/laravel-stubs/compare/2.5.0...2.5.1 + ## 2.5.0 - 2022-09-14 - use invokable rule by default From 5037adf01f74bca9b1bd59745295a91f6b899483 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Mon, 23 Jan 2023 15:55:50 +0100 Subject: [PATCH 27/42] wip --- .github/workflows/run-tests.yml | 11 ++++++++--- composer.json | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c83e7de..153ff36 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,20 +9,25 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1, 8.0] - laravel: [9.*, 8.*] + php: [8.2, 8.1, 8.0] + laravel: [10.*, 9.*, 8.*] dependency-version: [prefer-lowest, prefer-stable] include: + - laravel: 10.* + testbench: 8.* - laravel: 9.* testbench: 7.* - laravel: 8.* testbench: ^6.23 + exclude: + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/composer.json b/composer.json index 2434f86..c1c390b 100644 --- a/composer.json +++ b/composer.json @@ -17,11 +17,11 @@ ], "require": { "php": "^8.0", - "laravel/framework": "^8.71|^9.0" + "laravel/framework": "^8.71|^9.0|^10.0" }, "require-dev": { "mockery/mockery": "^1.4", - "orchestra/testbench": "^6.24|^7.0", + "orchestra/testbench": "^6.24|^7.0|^8.0", "pestphp/pest": "^1.22" }, "autoload": { From 66aecc1d86948d67a8ae089f66ba5fa487e4aac4 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Mon, 23 Jan 2023 14:57:21 +0000 Subject: [PATCH 28/42] Update CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f2f306..ed1d3f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.5.2 - 2023-01-23 + +- support L10 + ## 2.5.1 - 2023-01-15 ### What's Changed From cc140ca1e3b798dc1e575086efd0a559cccfa7bb Mon Sep 17 00:00:00 2001 From: Filippo Montani <78483736+Carnicero90@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:10:39 +0100 Subject: [PATCH 29/42] Update rule stub removing reference to deprecated InvokableRule into rule.stub (using ValidationRule instead) --- stubs/rule.stub | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/stubs/rule.stub b/stubs/rule.stub index c0f30fc..e54d7ef 100644 --- a/stubs/rule.stub +++ b/stubs/rule.stub @@ -2,12 +2,18 @@ namespace {{ namespace }}; -use Illuminate\Contracts\Validation\InvokableRule; +use Closure; +use Illuminate\Contracts\Validation\ValidationRule; -class {{ class }} implements InvokableRule +class {{ class }} implements ValidationRule { - public function __invoke($attribute, $value, $fail) + /** + * Run the validation rule. + * + * @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail + */ + public function validate(string $attribute, mixed $value, Closure $fail): void { - // $fail('This rule failed'); + // } } From 9526a29f15d9ab741fe9708f31a9765b58f53660 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Thu, 21 Dec 2023 15:02:51 +0000 Subject: [PATCH 30/42] Update CHANGELOG --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed1d3f3..97d53e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.5.3 - 2023-12-21 + +### What's Changed + +* Update rule stub by @Carnicero90 in https://github.com/spatie/laravel-stubs/pull/27 + +### New Contributors + +* @Carnicero90 made their first contribution in https://github.com/spatie/laravel-stubs/pull/27 + +**Full Changelog**: https://github.com/spatie/laravel-stubs/compare/2.5.2...2.5.3 + ## 2.5.2 - 2023-01-23 - support L10 From a5d1ce487a3d074d018ba8c1a96f135b60585011 Mon Sep 17 00:00:00 2001 From: Mo Khosh Date: Sat, 10 Feb 2024 23:59:29 +0330 Subject: [PATCH 31/42] remove unnecessary dockblocks --- stubs/mail.stub | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/stubs/mail.stub b/stubs/mail.stub index aa6104c..e773365 100644 --- a/stubs/mail.stub +++ b/stubs/mail.stub @@ -13,46 +13,26 @@ class {{ class }} extends Mailable { use Queueable, SerializesModels; - /** - * Create a new message instance. - * - * @return void - */ - public function __construct() + public function __construct(): void { // } - /** - * Get the message envelope. - * - * @return \Illuminate\Mail\Mailables\Envelope - */ - public function envelope() + public function envelope(): Envelope { return new Envelope( subject: '{{ subject }}', ); } - /** - * Get the message content definition. - * - * @return \Illuminate\Mail\Mailables\Content - */ - public function content() + public function content(): Content { return new Content( markdown: 'markdown.view.name', ); } - /** - * Get the attachments for the message. - * - * @return array - */ - public function attachments() + public function attachments(): array { return []; } From 12246d04a69173d32a9b9cfca213e5a84be42d0b Mon Sep 17 00:00:00 2001 From: Mo Khosh Date: Wed, 14 Feb 2024 15:01:57 +0330 Subject: [PATCH 32/42] add laravel 11 support --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index c1c390b..5118139 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,12 @@ ], "require": { "php": "^8.0", - "laravel/framework": "^8.71|^9.0|^10.0" + "laravel/framework": "^8.71|^9.0|^10.0|^11.0" }, "require-dev": { "mockery/mockery": "^1.4", - "orchestra/testbench": "^6.24|^7.0|^8.0", - "pestphp/pest": "^1.22" + "orchestra/testbench": "^6.24|^7.0|^8.0|^9.0", + "pestphp/pest": "^1.22|^2.0" }, "autoload": { "psr-4": { @@ -54,4 +54,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} \ No newline at end of file +} From 3969770fa48076ad9527c640c39fedd5658f5451 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Wed, 14 Feb 2024 13:42:52 +0100 Subject: [PATCH 33/42] Update run-tests.yml --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 153ff36..52352dc 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -11,7 +11,7 @@ jobs: os: [ubuntu-latest, windows-latest] php: [8.2, 8.1, 8.0] laravel: [10.*, 9.*, 8.*] - dependency-version: [prefer-lowest, prefer-stable] + dependency-version: [prefer-stable] include: - laravel: 10.* testbench: 8.* From 4c5c620f2a8c106aff899140b775ae9ffdbe469b Mon Sep 17 00:00:00 2001 From: freekmurze Date: Wed, 14 Feb 2024 12:43:28 +0000 Subject: [PATCH 34/42] Update CHANGELOG --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97d53e0..06dfc88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to `laravel-stubs` will be documented in this file +## 2.5.4 - 2024-02-14 + +### What's Changed + +* remove unnecessary dockblocks by @mokhosh in https://github.com/spatie/laravel-stubs/pull/28 +* add laravel 11 support by @mokhosh in https://github.com/spatie/laravel-stubs/pull/29 + +### New Contributors + +* @mokhosh made their first contribution in https://github.com/spatie/laravel-stubs/pull/28 + +**Full Changelog**: https://github.com/spatie/laravel-stubs/compare/2.5.3...2.5.4 + ## 2.5.3 - 2023-12-21 ### What's Changed From 3ed09cb27cf443418de0e21ecf4fc2812e060f46 Mon Sep 17 00:00:00 2001 From: Mo Khosh Date: Wed, 14 Feb 2024 20:36:02 +0330 Subject: [PATCH 35/42] remoce unnecessary docblock --- stubs/request.stub | 3 --- 1 file changed, 3 deletions(-) diff --git a/stubs/request.stub b/stubs/request.stub index 7334a9c..a602007 100644 --- a/stubs/request.stub +++ b/stubs/request.stub @@ -6,9 +6,6 @@ use Illuminate\Foundation\Http\FormRequest; class {{ class }} extends FormRequest { - /** - * @return array - */ public function rules(): array { return []; From 158c8d25096caae6ababf070fedaea41a56a81bc Mon Sep 17 00:00:00 2001 From: Mo Khosh Date: Wed, 14 Feb 2024 20:36:33 +0330 Subject: [PATCH 36/42] remove unused import --- stubs/factory.stub | 1 - 1 file changed, 1 deletion(-) diff --git a/stubs/factory.stub b/stubs/factory.stub index e90f2c9..985b52b 100644 --- a/stubs/factory.stub +++ b/stubs/factory.stub @@ -3,7 +3,6 @@ namespace {{ factoryNamespace }}; use Illuminate\Database\Eloquent\Factories\Factory; -use Illuminate\Support\Str; use {{ namespacedModel }}; class {{ model }}Factory extends Factory From 460a6c0df0fc1774cbdad57a6959c1ba5ba0cd19 Mon Sep 17 00:00:00 2001 From: Mo Khosh Date: Wed, 14 Feb 2024 20:36:45 +0330 Subject: [PATCH 37/42] remove unnecessary property override --- stubs/factory.stub | 3 --- 1 file changed, 3 deletions(-) diff --git a/stubs/factory.stub b/stubs/factory.stub index 985b52b..f0a576b 100644 --- a/stubs/factory.stub +++ b/stubs/factory.stub @@ -3,12 +3,9 @@ namespace {{ factoryNamespace }}; use Illuminate\Database\Eloquent\Factories\Factory; -use {{ namespacedModel }}; class {{ model }}Factory extends Factory { - protected $model = {{ model }}::class; - public function definition() { return [ From d270dc4ed17a37842de42a40cc95040ee1d3ada9 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Fri, 8 Mar 2024 20:45:37 +0100 Subject: [PATCH 38/42] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc52c13..ceed7ac 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Opinionated Laravel stubs [![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs) -[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/spatie/laravel-stubs/run-tests?label=tests)](https://github.com/spatie/laravel-stubs/actions?query=workflow%3Arun-tests+branch%3Amaster) +[![run-tests](https://github.com/spatie/laravel-stubs/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-stubs/actions/workflows/run-tests.yml) [![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs) This repo contains opinionated versions of the Laravel stubs. The most notable changes are: From c9a191ca7045ec3b8d75f69f487a38e0bd22ccc5 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Fri, 8 Mar 2024 20:49:25 +0100 Subject: [PATCH 39/42] L11 only --- .github/workflows/run-tests.yml | 18 ++++-------------- composer.json | 8 ++++---- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 52352dc..d4708b2 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,25 +9,15 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.2, 8.1, 8.0] - laravel: [10.*, 9.*, 8.*] + php: [8.2] + laravel: [11.*] dependency-version: [prefer-stable] - include: - - laravel: 10.* - testbench: 8.* - - laravel: 9.* - testbench: 7.* - - laravel: 8.* - testbench: ^6.23 - exclude: - - laravel: 10.* - php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -38,7 +28,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests diff --git a/composer.json b/composer.json index 5118139..bb4f518 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,13 @@ } ], "require": { - "php": "^8.0", - "laravel/framework": "^8.71|^9.0|^10.0|^11.0" + "php": "^8.2", + "laravel/framework": "^11.0" }, "require-dev": { "mockery/mockery": "^1.4", - "orchestra/testbench": "^6.24|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.22|^2.0" + "orchestra/testbench": "^9.0", + "pestphp/pest": "^2.0" }, "autoload": { "psr-4": { From 67530cacdc2a2829f82cc8d0de6e16968c2d0899 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Fri, 8 Mar 2024 20:53:15 +0100 Subject: [PATCH 40/42] add L11 stubs --- stubs/cast.inbound.stub | 14 +++++++ stubs/cast.stub | 19 ++++++++++ stubs/class.invokable.stub | 11 ++++++ stubs/class.stub | 8 ++++ stubs/controller.nested.singleton.api.stub | 30 +++++++++++++++ stubs/controller.nested.singleton.stub | 40 ++++++++++++++++++++ stubs/controller.singleton.api.stub | 29 +++++++++++++++ stubs/controller.singleton.stub | 39 ++++++++++++++++++++ stubs/enum.backed.stub | 8 ++++ stubs/enum.stub | 8 ++++ stubs/markdown-mail.stub | 43 ++++++++++++++++++++++ stubs/markdown-notification.stub | 35 ++++++++++++++++++ stubs/notification.stub | 38 +++++++++++++++++++ stubs/observer.plain.stub | 8 ++++ stubs/observer.stub | 33 +++++++++++++++++ stubs/scope.stub | 15 ++++++++ stubs/trait.stub | 8 ++++ stubs/view-component.stub | 20 ++++++++++ 18 files changed, 406 insertions(+) create mode 100644 stubs/cast.inbound.stub create mode 100644 stubs/cast.stub create mode 100644 stubs/class.invokable.stub create mode 100644 stubs/class.stub create mode 100644 stubs/controller.nested.singleton.api.stub create mode 100644 stubs/controller.nested.singleton.stub create mode 100644 stubs/controller.singleton.api.stub create mode 100644 stubs/controller.singleton.stub create mode 100644 stubs/enum.backed.stub create mode 100644 stubs/enum.stub create mode 100644 stubs/markdown-mail.stub create mode 100644 stubs/markdown-notification.stub create mode 100644 stubs/notification.stub create mode 100644 stubs/observer.plain.stub create mode 100644 stubs/observer.stub create mode 100644 stubs/scope.stub create mode 100644 stubs/trait.stub create mode 100644 stubs/view-component.stub diff --git a/stubs/cast.inbound.stub b/stubs/cast.inbound.stub new file mode 100644 index 0000000..e2425f3 --- /dev/null +++ b/stubs/cast.inbound.stub @@ -0,0 +1,14 @@ + + */ + public function attachments(): array + { + return []; + } +} diff --git a/stubs/markdown-notification.stub b/stubs/markdown-notification.stub new file mode 100644 index 0000000..cec12db --- /dev/null +++ b/stubs/markdown-notification.stub @@ -0,0 +1,35 @@ +markdown('{{ view }}'); + } + + public function toArray(object $notifiable): array + { + return [ + // + ]; + } +} diff --git a/stubs/notification.stub b/stubs/notification.stub new file mode 100644 index 0000000..0090235 --- /dev/null +++ b/stubs/notification.stub @@ -0,0 +1,38 @@ +line('The introduction to the notification.') + ->action('Notification Action', url('/')) + ->line('Thank you for using our application!'); + } + + public function toArray(object $notifiable): array + { + return [ + // + ]; + } +} diff --git a/stubs/observer.plain.stub b/stubs/observer.plain.stub new file mode 100644 index 0000000..e2506b7 --- /dev/null +++ b/stubs/observer.plain.stub @@ -0,0 +1,8 @@ + Date: Fri, 8 Mar 2024 19:54:12 +0000 Subject: [PATCH 41/42] Update CHANGELOG --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06dfc88..2bc41dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to `laravel-stubs` will be documented in this file +## 3.0.0 - 2024-03-08 + +### What's Changed + +* Add L11 stubs +* Simplify request and factory by @mokhosh in https://github.com/spatie/laravel-stubs/pull/32 + ## 2.5.4 - 2024-02-14 ### What's Changed From 1b3401bf7f06202d09807b178b24d4799884ae45 Mon Sep 17 00:00:00 2001 From: Jidbo Date: Tue, 12 Mar 2024 17:03:21 +0000 Subject: [PATCH 42/42] Fix styling --- tests/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 22e3f8b..7f2032e 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,8 +2,8 @@ namespace Clickbar\Stubs\Tests; -use Orchestra\Testbench\TestCase as Orchestra; use Clickbar\Stubs\StubsServiceProvider; +use Orchestra\Testbench\TestCase as Orchestra; abstract class TestCase extends Orchestra {