Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
"aliases": {
"Image": "Intervention\\Image\\Laravel\\Facades\\Image"
}
},
"phpstan": {
Copy link
Member

@olivervogel olivervogel Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this will cause problems, since phpstan is part of the dependencies. Also: Where is phpstan defined in the composer.json schema? I can't find anything about it. It's included in extra, I missed that.

"includes": [
"extension.neon"
]
}
}
}
3 changes: 3 additions & 0 deletions extension.neon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of this file is very ambiguous. Could you make it more clear, that this file belongs to phpstan?

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
stubFiles:
- stubs/ResponseFactory.stub
16 changes: 16 additions & 0 deletions stubs/ResponseFactory.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Illuminate\Contracts\Routing;

use Illuminate\Http\Response;
use Intervention\Image\FileExtension;
use Intervention\Image\Format;
use Intervention\Image\Image;
use Intervention\Image\MediaType;

/**
* @method Response image(Image $image, null|string|Format|MediaType|FileExtension $format = null, mixed ...$options)
*/
interface ResponseFactory
{
}