Skip to content

add missing classes before toExtend on laravel preset#1569

Merged
nunomaduro merged 1 commit intopestphp:4.xfrom
treyssatvincent:patch-1
Apr 10, 2026
Merged

add missing classes before toExtend on laravel preset#1569
nunomaduro merged 1 commit intopestphp:4.xfrom
treyssatvincent:patch-1

Conversation

@treyssatvincent
Copy link
Copy Markdown
Contributor

@treyssatvincent treyssatvincent commented Nov 10, 2025

What:

  • Bug Fix
  • New Feature

Description:

Add missing ->classes() before ->toExtend() on the laravel preset for 2 namespaces.

Otherwise you can't use interfaces on theses namespace.

For example, if you create an interface YourSuperRequestContract on the app/Http/Requests namespace you will get this error:

Expecting 'app/Http/Requests/YourSuperRequestContract.php' to extend 'Illuminate\Foundation\Http\FormRequest'.

Add missing `->classes()` before `->toExtend()` on the laravel preset for 2 namespaces.

Otherwise you can't use interfaces on theses namespace.

For example, if you create an interface `YourSuperRequestContract` on the `app/Http/Requests` namespace you will get this error:

```
Expecting 'app/Http/Requests/YourSuperRequestContract.php' to extend 'Illuminate\Foundation\Http\FormRequest'.
```
@nunomaduro nunomaduro merged commit cd07c6d into pestphp:4.x Apr 10, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants