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;
class GeneralTypeTest extends TypeInferenceTestCase
{
/** @return iterable<mixed> */
public static function dataFileAsserts(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/data/abort.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/abstract-manager.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/app-make.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/application-make.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/auth.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/benchmark.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1346.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1565.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1760.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1830.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/carbon.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/conditionable.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/container-array-access.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/container-make.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/contracts.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/custom-eloquent-builder.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/custom-eloquent-collection.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/database-transaction.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/date-extension.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/eloquent-builder.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/environment-helper.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/facades.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/form-request.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/gate-facade.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/helpers.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/higher-order-collection-proxy-methods.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-factories.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-methods.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-properties-relations.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-properties.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-relations.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-scopes.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/optional-helper.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/paginator-extension.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/query-builder.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/request-header.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/request-object.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/route.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/tappable.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/throw.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/translate.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/translator.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/validator.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/view-exists.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/view.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/where-relation.php');
if (version_compare(LARAVEL_VERSION, '10.15.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/model-l10-15.php');
}
if (version_compare(LARAVEL_VERSION, '10.20.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/model-l10-20.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-relations-l10-20.php');
}
if (version_compare(LARAVEL_VERSION, '10.24.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/query-builder-l10-24.php');
}
if (version_compare(LARAVEL_VERSION, '10.44.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1819.php');
}
if (version_compare(LARAVEL_VERSION, '11.0.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/model-properties-l11.php');
}
//##############################################################################################################
// Console Commands
yield from self::gatherAssertTypes(__DIR__ . '/../application/app/Console/Commands/BarCommand.php');
yield from self::gatherAssertTypes(__DIR__ . '/../application/app/Console/Commands/BazCommand.php');
yield from self::gatherAssertTypes(__DIR__ . '/../application/app/Console/Commands/FooCommand.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__ . '/data/config-with-migrations.neon'];
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Type;
use PHPStan\Testing\TypeInferenceTestCase;
use function version_compare;
class GeneralTypeTest extends TypeInferenceTestCase
{
/** @return iterable<mixed> */
public static function dataFileAsserts(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/data/abort.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/abstract-manager.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/app-make.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/application-make.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/auth.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/benchmark.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1346.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1565.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1760.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1830.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/carbon.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/conditionable.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/container-array-access.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/container-make.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/contracts.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/custom-eloquent-builder.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/custom-eloquent-collection.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/database-transaction.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/date-extension.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/eloquent-builder.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/environment-helper.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/facades.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/form-request.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/gate-facade.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/helpers.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/higher-order-collection-proxy-methods.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-factories.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-methods.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-properties-relations.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-properties.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-relations.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-scopes.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/optional-helper.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/paginator-extension.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/query-builder.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/request-header.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/request-object.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/route.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/tappable.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/throw.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/translate.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/translator.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/validator.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/view-exists.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/view.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/where-relation.php');
if (version_compare(LARAVEL_VERSION, '10.15.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/model-l10-15.php');
}
if (version_compare(LARAVEL_VERSION, '10.20.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/model-l10-20.php');
yield from self::gatherAssertTypes(__DIR__ . '/data/model-relations-l10-20.php');
}
if (version_compare(LARAVEL_VERSION, '10.24.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/query-builder-l10-24.php');
}
if (version_compare(LARAVEL_VERSION, '10.44.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-1819.php');
}
if (version_compare(LARAVEL_VERSION, '11.0.0', '>=')) {
yield from self::gatherAssertTypes(__DIR__ . '/data/model-properties-l11.php');
}
//##############################################################################################################
// Console Commands
yield from self::gatherAssertTypes(__DIR__ . '/../application/app/Console/Commands/BarCommand.php');
yield from self::gatherAssertTypes(__DIR__ . '/../application/app/Console/Commands/BazCommand.php');
yield from self::gatherAssertTypes(__DIR__ . '/../application/app/Console/Commands/FooCommand.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__ . '/data/config-with-migrations.neon'];
}
}
Function Calls
| None |
Stats
| MD5 | 4d11ed4d5fde53ec05635b74872f779e |
| Eval Count | 0 |
| Decode Time | 96 ms |