Skip to content

Commit

Permalink
Most classes are final
Browse files Browse the repository at this point in the history
Because we don't want to deal with third-parties inheriting
our classes and messing up with internal things
  • Loading branch information
PowerKiKi committed Jan 12, 2023
1 parent 89ee7ef commit 2ef78cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/UploadType.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Psr\Http\Message\UploadedFileInterface;
use UnexpectedValueException;

class UploadType extends ScalarType
final class UploadType extends ScalarType
{
public string $name = 'Upload';

Expand Down
2 changes: 1 addition & 1 deletion tests/Psr7/PsrUploadedFileStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Laminas\Diactoros\UploadedFile;

class PsrUploadedFileStub extends UploadedFile
final class PsrUploadedFileStub extends UploadedFile
{
public function __construct(string $clientFilename, string $clientMediaType)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/UploadMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use Psr\Http\Server\RequestHandlerInterface;
use stdClass;

class UploadMiddlewareTest extends TestCase
final class UploadMiddlewareTest extends TestCase
{
private UploadMiddleware $middleware;

Expand Down
2 changes: 1 addition & 1 deletion tests/UploadTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use PHPUnit\Framework\TestCase;
use UnexpectedValueException;

class UploadTypeTest extends TestCase
final class UploadTypeTest extends TestCase
{
public function testCanParseUploadedFileInstance(): void
{
Expand Down

0 comments on commit 2ef78cf

Please sign in to comment.