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 namespace App\Console\Commands; use Illuminate\Console\Command; use function PHPS..

Decoded Output download

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

use function PHPStan\TestingssertType;

class BazCommand extends Command
{
    protected $signature = 'baz {optionalArgumentArray?*}';

    protected $description = 'Dummy command used to test console command types.';

    public function handle(): void
    {
        assertType('array{optionalArgumentArray: array<int, string>}', $this->argument());
        assertType('array{optionalArgumentArray: array<int, string>}', $this->arguments());
        assertType('array<int, string>', $this->argument('optionalArgumentArray'));

        assertType('true', $this->hasArgument('optionalArgumentArray'));
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

use function PHPStan\Testing\assertType;

class BazCommand extends Command
{
    protected $signature = 'baz {optionalArgumentArray?*}';

    protected $description = 'Dummy command used to test console command types.';

    public function handle(): void
    {
        assertType('array{optionalArgumentArray: array<int, string>}', $this->argument());
        assertType('array{optionalArgumentArray: array<int, string>}', $this->arguments());
        assertType('array<int, string>', $this->argument('optionalArgumentArray'));

        assertType('true', $this->hasArgument('optionalArgumentArray'));
    }
}

Function Calls

None

Variables

None

Stats

MD5 158ae92136d80ac8609aaa2d66429d24
Eval Count 0
Decode Time 86 ms