Skip to content

Commit 2ef78cf

Browse files
committedJan 12, 2023
Most classes are final
Because we don't want to deal with third-parties inheriting our classes and messing up with internal things
1 parent 89ee7ef commit 2ef78cf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎src/UploadType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Psr\Http\Message\UploadedFileInterface;
1313
use UnexpectedValueException;
1414

15-
class UploadType extends ScalarType
15+
final class UploadType extends ScalarType
1616
{
1717
public string $name = 'Upload';
1818

‎tests/Psr7/PsrUploadedFileStub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Laminas\Diactoros\UploadedFile;
88

9-
class PsrUploadedFileStub extends UploadedFile
9+
final class PsrUploadedFileStub extends UploadedFile
1010
{
1111
public function __construct(string $clientFilename, string $clientMediaType)
1212
{

‎tests/UploadMiddlewareTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Psr\Http\Server\RequestHandlerInterface;
2626
use stdClass;
2727

28-
class UploadMiddlewareTest extends TestCase
28+
final class UploadMiddlewareTest extends TestCase
2929
{
3030
private UploadMiddleware $middleware;
3131

‎tests/UploadTypeTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PHPUnit\Framework\TestCase;
1313
use UnexpectedValueException;
1414

15-
class UploadTypeTest extends TestCase
15+
final class UploadTypeTest extends TestCase
1616
{
1717
public function testCanParseUploadedFileInstance(): void
1818
{

0 commit comments

Comments
 (0)