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 RequestHeader; use Illuminate\Http\Request; u..

Decoded Output download

<?php

declare(strict_types=1);

namespace RequestHeader;

use Illuminate\Http\Request;

use function PHPStan\TestingssertType;

function test(Request $request): void
{
    assertType('array<string, array<int, string|null>>', $request->header());
    assertType('string|null', $request->header('key'));
    assertType('string', $request->header('key', 'default'));
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace RequestHeader;

use Illuminate\Http\Request;

use function PHPStan\Testing\assertType;

function test(Request $request): void
{
    assertType('array<string, array<int, string|null>>', $request->header());
    assertType('string|null', $request->header('key'));
    assertType('string', $request->header('key', 'default'));
}

Function Calls

None

Variables

None

Stats

MD5 96e6237f4cdc0cd077fe4d2ef50baf6e
Eval Count 0
Decode Time 82 ms