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 Webmozart\Assert\Tests\StaticAnalysis; use Webmozart\Assert\Assert; /**..

Decoded Output download

<?php

namespace Webmozart\Assert\Tests\StaticAnalysis;

use Webmozart\Assert\Assert;

/**
 * @psalm-pure
 *
 * @param mixed $value
 *
 * @return non-empty-array<string, mixed>
 */
function isNonEmptyMap($value): array
{
    Assert::isNonEmptyMap($value);

    return $value;
}

/**
 * Verifying that the type of the elements in the array is preserved by the assertion
 *
 * @psalm-pure
 *
 * @param array<int|string, \stdClass> $value
 *
 * @return array<string, \stdClass>
 */
function isNonEmptyMapWithKnownType(array $value): array
{
    Assert::isNonEmptyMap($value);

    return $value;
}

/**
 * @psalm-pure
 *
 * @param mixed $value
 *
 * @return mixed
 */
function nullOrIsNonEmptyMap($value)
{
    Assert::nullOrIsNonEmptyMap($value);

    return $value;
}

/**
 * @psalm-pure
 *
 * @param iterable<mixed|array<mixed>> $value
 *
 * @return iterable<mixed|array<mixed>>
 */
function allIsNonEmptyMap(iterable $value): iterable
{
    Assert::allIsNonEmptyMap($value);

    return $value;
}

/**
 * @psalm-pure
 *
 * @param iterable<mixed|array<mixed>> $value
 *
 * @return iterable<mixed|array<mixed>>
 */
function allNullOrIsNonEmptyMap(iterable $value): iterable
{
    Assert::allNullOrIsNonEmptyMap($value);

    return $value;
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Webmozart\Assert\Tests\StaticAnalysis;

use Webmozart\Assert\Assert;

/**
 * @psalm-pure
 *
 * @param mixed $value
 *
 * @return non-empty-array<string, mixed>
 */
function isNonEmptyMap($value): array
{
    Assert::isNonEmptyMap($value);

    return $value;
}

/**
 * Verifying that the type of the elements in the array is preserved by the assertion
 *
 * @psalm-pure
 *
 * @param array<int|string, \stdClass> $value
 *
 * @return array<string, \stdClass>
 */
function isNonEmptyMapWithKnownType(array $value): array
{
    Assert::isNonEmptyMap($value);

    return $value;
}

/**
 * @psalm-pure
 *
 * @param mixed $value
 *
 * @return mixed
 */
function nullOrIsNonEmptyMap($value)
{
    Assert::nullOrIsNonEmptyMap($value);

    return $value;
}

/**
 * @psalm-pure
 *
 * @param iterable<mixed|array<mixed>> $value
 *
 * @return iterable<mixed|array<mixed>>
 */
function allIsNonEmptyMap(iterable $value): iterable
{
    Assert::allIsNonEmptyMap($value);

    return $value;
}

/**
 * @psalm-pure
 *
 * @param iterable<mixed|array<mixed>> $value
 *
 * @return iterable<mixed|array<mixed>>
 */
function allNullOrIsNonEmptyMap(iterable $value): iterable
{
    Assert::allNullOrIsNonEmptyMap($value);

    return $value;
}

Function Calls

None

Variables

None

Stats

MD5 24eda2cae9db77ea2a6a861fd2365c1f
Eval Count 0
Decode Time 101 ms