File manager - Edit - /opt/alt/tests/alt-php84-pecl-psr_1.2.0-1.el8/tests/SampleUploadedFileFactory.inc
Back
<?php use Psr\Http\Message\UploadedFileFactoryInterface; use Psr\Http\Message\UploadedFileInterface; use Psr\Http\Message\StreamInterface; class SampleUploadedFileFactory implements UploadedFileFactoryInterface { public function createUploadedFile( StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null ): UploadedFileInterface { var_dump(__METHOD__, $stream, $size, $error, $clientFilename, $clientMediaType); return new SampleUploadedFile(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings