Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace RequestObject; use Illuminate\Http\Request; u..

Decoded Output download

<?php

declare(strict_types=1);

namespace RequestObject;

use Illuminate\Http\Request;

use function PHPStan\Testing\assertType;

function test(Request $request): void
{
    assertType('array<int, Illuminate\Http\UploadedFile>', $request->file());
    assertType('array<int, Illuminate\Http\UploadedFile>|Illuminate\Http\UploadedFile|null', $request->file('foo'));
    assertType('array<int, Illuminate\Http\UploadedFile>|Illuminate\Http\UploadedFile|stdClass', $request->file('foo', new \stdClass()));
    assertType('Illuminate\Routing\Route|null', $request->route());
    assertType('object|string|null', $request->route('foo'));
    assertType('object|string|null', $request->route('foo', 'bar'));
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace RequestObject;

use Illuminate\Http\Request;

use function PHPStan\Testing\assertType;

function test(Request $request): void
{
    assertType('array<int, Illuminate\Http\UploadedFile>', $request->file());
    assertType('array<int, Illuminate\Http\UploadedFile>|Illuminate\Http\UploadedFile|null', $request->file('foo'));
    assertType('array<int, Illuminate\Http\UploadedFile>|Illuminate\Http\UploadedFile|stdClass', $request->file('foo', new \stdClass()));
    assertType('Illuminate\Routing\Route|null', $request->route());
    assertType('object|string|null', $request->route('foo'));
    assertType('object|string|null', $request->route('foo', 'bar'));
}

Function Calls

None

Variables

None

Stats

MD5 e3830dc2def0ec2c42ee337bcea4a485
Eval Count 0
Decode Time 90 ms