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 Spatie\Permission\Exceptions; use InvalidArgumentException; class RoleD..

Decoded Output download

<?php

namespace Spatie\Permission\Exceptions;

use InvalidArgumentException;

class RoleDoesNotExist extends InvalidArgumentException
{
    public static function named(string $roleName, ?string $guardName)
    {
        return new static("There is no role named `{$roleName}` for guard `{$guardName}`.");
    }

    /**
     * @param  int|string  $roleId
     * @return static
     */
    public static function withId($roleId, ?string $guardName)
    {
        return new static("There is no role with ID `{$roleId}` for guard `{$guardName}`.");
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Spatie\Permission\Exceptions;

use InvalidArgumentException;

class RoleDoesNotExist extends InvalidArgumentException
{
    public static function named(string $roleName, ?string $guardName)
    {
        return new static("There is no role named `{$roleName}` for guard `{$guardName}`.");
    }

    /**
     * @param  int|string  $roleId
     * @return static
     */
    public static function withId($roleId, ?string $guardName)
    {
        return new static("There is no role with ID `{$roleId}` for guard `{$guardName}`.");
    }
}

Function Calls

None

Variables

None

Stats

MD5 253668d9c522a7ba6637cedcdcdfb971
Eval Count 0
Decode Time 91 ms