Skip to content

Commit 7ff60d9

Browse files
spazeondrejmirtes
authored andcommitted
Add stub with array shape for FileUpload::getImageSize()
https://doc.nette.org/en/http/request#toc-getimagesize
1 parent 200d192 commit 7ff60d9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

extension.neon

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ parameters:
2121
- stubs/Forms/Form.stub
2222
- stubs/Forms/Rules.stub
2323
- stubs/Http/SessionSection.stub
24+
- stubs/Http/FileUpload.stub
2425
- stubs/Routing/Router.stub
2526
- stubs/Utils/ArrayHash.stub
2627
- stubs/Utils/Arrays.stub

stubs/Http/FileUpload.stub

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Nette\Http;
4+
5+
class FileUpload
6+
{
7+
8+
/**
9+
* @return array{0:positive-int, 1:positive-int}|null
10+
*/
11+
public function getImageSize(): ?array
12+
{
13+
// nothing
14+
}
15+
16+
}

0 commit comments

Comments
 (0)