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 Tests\Type; use PHPStan\Testing\TypeInferenceT..
Decoded Output download
<?php
declare(strict_types=1);
namespace Tests\Type;
use PHPStan\Testing\TypeInferenceTestCase;
class CollectionDynamicReturnTypeExtensionsTest extends TypeInferenceTestCase
{
/** @return iterable<mixed> */
public static function dataFileAsserts(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-helper.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-make-static.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-stubs.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-generic-static-methods.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__ . '/../phpstan-tests.neon'];
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Tests\Type;
use PHPStan\Testing\TypeInferenceTestCase;
class CollectionDynamicReturnTypeExtensionsTest extends TypeInferenceTestCase
{
/** @return iterable<mixed> */
public static function dataFileAsserts(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-helper.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-make-static.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-stubs.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/collection-generic-static-methods.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__ . '/../phpstan-tests.neon'];
}
}
Function Calls
| None |
Stats
| MD5 | dcb55f950c0a8bfa313dd37c963076c0 |
| Eval Count | 0 |
| Decode Time | 111 ms |