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 Type; use PHPStan\Testing\TypeInferenceTestCas..

Decoded Output download

<?php

declare(strict_types=1);

namespace Type;

use PHPStan\Testing\TypeInferenceTestCase;

use function version_compare;

use const PHP_VERSION;

class MethodsClassReflectionExtensionTest extends TypeInferenceTestCase
{
    /** @return iterable<mixed> */
    public static function dataFileAsserts(): iterable
    {
        yield from self::gatherAssertTypes(__DIR__ . '/data/macros.php');
        yield from self::gatherAssertTypes(__DIR__ . '/data/redirect-response.php');

        if (! version_compare(PHP_VERSION, '8.1.0', '>=') || ! version_compare(PHP_VERSION, '8.2.0', '<')) {
            return;
        }

        yield from self::gatherAssertTypes(__DIR__ . '/data/macros-php-81.php');
    }

    /** @dataProvider dataFileAsserts */
    public function testFileAsserts(
        string $assertType,
        string $file,
        mixed ...$args,
    ): void {
        $this->assertFileAsserts($assertType, $file, ...$args);
    }

    /** @return string[] */
    public static function getAdditionalConfigFiles(): array
    {
        return [__DIR__ . '/../../extension.neon'];
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Type;

use PHPStan\Testing\TypeInferenceTestCase;

use function version_compare;

use const PHP_VERSION;

class MethodsClassReflectionExtensionTest extends TypeInferenceTestCase
{
    /** @return iterable<mixed> */
    public static function dataFileAsserts(): iterable
    {
        yield from self::gatherAssertTypes(__DIR__ . '/data/macros.php');
        yield from self::gatherAssertTypes(__DIR__ . '/data/redirect-response.php');

        if (! version_compare(PHP_VERSION, '8.1.0', '>=') || ! version_compare(PHP_VERSION, '8.2.0', '<')) {
            return;
        }

        yield from self::gatherAssertTypes(__DIR__ . '/data/macros-php-81.php');
    }

    /** @dataProvider dataFileAsserts */
    public function testFileAsserts(
        string $assertType,
        string $file,
        mixed ...$args,
    ): void {
        $this->assertFileAsserts($assertType, $file, ...$args);
    }

    /** @return string[] */
    public static function getAdditionalConfigFiles(): array
    {
        return [__DIR__ . '/../../extension.neon'];
    }
}

Function Calls

None

Variables

None

Stats

MD5 84f8c6a8c2e0a338f3bc966f1f72388a
Eval Count 0
Decode Time 111 ms