repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Plugin/Condition/ConditionWithContextDefinitions.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Plugin/Condition/ConditionWithContextDefinitions.php
<?php namespace Drupal\phpstan_fixtures\Plugin\Condition; use Drupal\Core\Condition\ConditionPluginBase; /** * @Condition( * id = "condition_with_context", * label = @Translation("Condition with context"), * context_definitions = { * "user" = @ContextDefinition("entity:user", label = @Translation("Use...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Plugin/Condition/ConditionWithContext.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Plugin/Condition/ConditionWithContext.php
<?php namespace Drupal\phpstan_fixtures\Plugin\Condition; use Drupal\Core\Condition\ConditionPluginBase; /** * @Condition( * id = "condition_with_context", * label = @Translation("Condition with context"), * context = { * "user" = @ContextDefinition("entity:user", label = @Translation("User")) * },...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsDrupalCorePHPStanDrupalTestsInternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsDrupalCorePHPStanDrupalTestsInternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; use Drupal\Core\PHPStanDrupalTests\InternalClass; final class ExtendsDrupalCorePHPStanDrupalTestsInternalClass extends InternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/WithAnAnonymousClassExtendingAnInternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/WithAnAnonymousClassExtendingAnInternalClass.php
<?php declare(strict_types=1); namespace fixtures\drupal\modules\phpstan_fixtures\src\Internal; use Drupal\module_with_internal_classes\Foo\InternalClass; final class WithAnAnonymousClassExtendingAnInternalClass { public function foo(): void { $foo = new class() extends InternalClass {}; } }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/DoesNotExtendsAnyClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/DoesNotExtendsAnyClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; final class DoesNotExtendsAnyClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsDrupalCoreExternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsDrupalCoreExternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; use Drupal\Core\PHPStanDrupalTests\ExternalClass; final class ExtendsDrupalCoreExternalClass extends ExternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsRootInternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsRootInternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; use Drupal\phpstan_fixtures\InternalClass; final class ExtendsRootInternalClass extends InternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsPHPStanDrupalModuleWithInternalClassesExternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsPHPStanDrupalModuleWithInternalClassesExternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; use Drupal\module_with_internal_classes\Foo\ExternalClass; final class ExtendsPHPStanDrupalModuleWithInternalClassesExternalClass extends ExternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsPHPStanDrupalModuleWithInternalClassesInternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsPHPStanDrupalModuleWithInternalClassesInternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; use Drupal\module_with_internal_classes\Foo\InternalClass; final class ExtendsPHPStanDrupalModuleWithInternalClassesInternalClass extends InternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/InternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/InternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; /** * @internal */ class InternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsDrupalCoreInternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsDrupalCoreInternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; use Drupal\Core\InternalClass; final class ExtendsDrupalCoreInternalClass extends InternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsInternalClass.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/Internal/ExtendsInternalClass.php
<?php declare(strict_types=1); namespace Drupal\phpstan_fixtures\Internal; final class ExtendsInternalClass extends InternalClass { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/EntityFieldReflection/EntityFieldOriginalProperty.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/EntityFieldReflection/EntityFieldOriginalProperty.php
<?php namespace Drupal\phpstan_fixtures\EntityFieldReflection; use Drupal\entity_test\Entity\EntityTest; class EntityFieldOriginalProperty { public function testOriginal() { /** @var EntityTest $testEntity */ $testEntity = EntityTest::create([ 'name' => 'Llama', 'type' =>...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/fixtures/drupal/modules/phpstan_fixtures/src/EntityFieldReflection/EntityFieldMagicalGetters.php
tests/fixtures/drupal/modules/phpstan_fixtures/src/EntityFieldReflection/EntityFieldMagicalGetters.php
<?php namespace Drupal\phpstan_fixtures\EntityFieldReflection; use Drupal\entity_test\Entity\EntityTest; class EntityFieldMagicalGetters { public function testLabel() { /** @var EntityTest $testEntity */ $testEntity = EntityTest::create([ 'name' => 'Llama', 'type' => 'ent...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/DrupalRuleTestCase.php
tests/src/DrupalRuleTestCase.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests; use PHPStan\Testing\RuleTestCase; /** * @template TRule of \PHPStan\Rules\Rule */ abstract class DrupalRuleTestCase extends RuleTestCase { public static function getAdditionalConfigFiles(): array { return array_merge(parent::get...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/StubTest.php
tests/src/StubTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests; use PHPStan\Analyser\Error; use PHPStan\PhpDoc\StubFilesProvider; use PHPStan\PhpDoc\StubValidator; use PHPStan\Testing\PHPStanTestCase; final class StubTest extends PHPStanTestCase { use AdditionalConfigFilesTrait; public function testV...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/DrushIntegrationTest.php
tests/src/DrushIntegrationTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests; use PHPStan\Rules\Functions\CallToNonExistentFunctionRule; final class DrushIntegrationTest extends DrupalRuleTestCase { protected function getRule(): \PHPStan\Rules\Rule { // @phpstan-ignore phpstanApi.constructor return ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/ServiceMapFactoryTest.php
tests/src/ServiceMapFactoryTest.php
<?php namespace mglaman\PHPStanDrupal\Tests; use Drupal\Core\Logger\LoggerChannel; use mglaman\PHPStanDrupal\Drupal\DrupalServiceDefinition; use mglaman\PHPStanDrupal\Drupal\ServiceMap; use PHPUnit\Framework\TestCase; final class ServiceMapFactoryTest extends TestCase { /** * @dataProvider getServiceProvid...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/DrupalAutoloadingTest.php
tests/src/DrupalAutoloadingTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests; use mglaman\PHPStanDrupal\Tests\Rules\DummyRule; final class DrupalAutoloadingTest extends DrupalRuleTestCase { protected function getRule(): \PHPStan\Rules\Rule { return new DummyRule(); } /** * @dataProvider dataFi...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/AdditionalConfigFilesTrait.php
tests/src/AdditionalConfigFilesTrait.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests; trait AdditionalConfigFilesTrait { public static function getAdditionalConfigFiles(): array { return array_merge(parent::getAdditionalConfigFiles(), [ __DIR__ . '/../fixtures/config/phpunit-drupal-phpstan.neon', ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Reflection/EntityFieldMethodsViaMagicReflectionExtensionTest.php
tests/src/Reflection/EntityFieldMethodsViaMagicReflectionExtensionTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Reflection; use Drupal\Core\Field\FieldItemListInterface; use Drupal\entity_test\Entity\EntityTest; use Drupal\node\Entity\Node; use mglaman\PHPStanDrupal\Reflection\EntityFieldMethodsViaMagicReflectionExtension; use mglaman\PHPStanDrupal\Tests\Addi...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Reflection/EntityFieldsViaMagicReflectionExtensionTest.php
tests/src/Reflection/EntityFieldsViaMagicReflectionExtensionTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Reflection; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Field\FieldItemListInterface; use Drupal\entity_test\Entity\EntityTest; use Drupal\module_installer_config_test\Entity\TestConfigType; use Drupal\phpstan_fixtures\Entity\Refl...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/FieldTypesTest.php
tests/src/Type/FieldTypesTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class FieldTypesTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataFileAsserts...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityAccessControlHandlerReturnTypeExtensionTest.php
tests/src/Type/EntityAccessControlHandlerReturnTypeExtensionTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityAccessControlHandlerReturnTypeExtensionTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; pub...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/CacheBackendInterfaceStubTest.php
tests/src/Type/CacheBackendInterfaceStubTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class CacheBackendInterfaceStubTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/DrupalContainerDynamicReturnTypeTest.php
tests/src/Type/DrupalContainerDynamicReturnTypeTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class DrupalContainerDynamicReturnTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static fu...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityTypeManagerGetDefinitionTypeTest.php
tests/src/Type/EntityTypeManagerGetDefinitionTypeTest.php
<?php namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityTypeManagerGetDefinitionTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataFileAsserts()...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/LockBackendInterfaceStubTest.php
tests/src/Type/LockBackendInterfaceStubTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class LockBackendInterfaceStubTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function da...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/ContentEntityTranslationTypeTest.php
tests/src/Type/ContentEntityTranslationTypeTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class ContentEntityTranslationTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static functio...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/InspectorTypeExtensionTest.php
tests/src/Type/InspectorTypeExtensionTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class InspectorTypeExtensionTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataFi...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityTypesTest.php
tests/src/Type/EntityTypesTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityTypesTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataFileAssert...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/UrlToStringTypeTest.php
tests/src/Type/UrlToStringTypeTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class UrlToStringTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataFileAss...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityTypeManagerGetStorageDynamicReturnTypeExtensionTest.php
tests/src/Type/EntityTypeManagerGetStorageDynamicReturnTypeExtensionTest.php
<?php namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityTypeManagerGetStorageDynamicReturnTypeExtensionTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static functio...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/AccessResultTypeTest.php
tests/src/Type/AccessResultTypeTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class AccessResultTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataFileA...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityRepositoryTypeTest.php
tests/src/Type/EntityRepositoryTypeTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityRepositoryTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataF...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityDynamicReturnTypeTest.php
tests/src/Type/EntityDynamicReturnTypeTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityDynamicReturnTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function da...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityPropertyTypeTest.php
tests/src/Type/EntityPropertyTypeTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityPropertyTypeTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static function dataFil...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/AccessibleReturnTypeExtensionTest.php
tests/src/Type/AccessibleReturnTypeExtensionTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class AccessibleReturnTypeExtensionTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; public static funct...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/EntityQuery/EntityQueryDynamicReturnTypeExtensionTest.php
tests/src/Type/EntityQuery/EntityQueryDynamicReturnTypeExtensionTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Type\EntityQuery; use mglaman\PHPStanDrupal\Tests\AdditionalConfigFilesTrait; use PHPStan\Testing\TypeInferenceTestCase; final class EntityQueryDynamicReturnTypeExtensionTest extends TypeInferenceTestCase { use AdditionalConfigFilesTrait; ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/cache-backend-interface-stub.php
tests/src/Type/data/cache-backend-interface-stub.php
<?php namespace CacheBackendInterfaceStub; use Drupal\Core\Cache\DatabaseBackend; use Drupal\Core\Cache\MemoryBackend; use function PHPStan\Testing\assertType; $cids = ['foo']; assert($dbBackend instanceof DatabaseBackend); assertType('object{data: mixed, created: int, tags: array<string>, valid: bool, expire: int,...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-355-entity-storage.php
tests/src/Type/data/bug-355-entity-storage.php
<?php namespace DrupalEntity; use Drupal\node\NodeStorageInterface; use function PHPStan\Testing\assertType; $nodeStorage = \Drupal::entityTypeManager()->getStorage('node'); if ($nodeStorage instanceof NodeStorageInterface) { assertType('Drupal\node\Entity\Node', $nodeStorage->create(['type' => 'page', 'title' =...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-355-entity-query.php
tests/src/Type/data/bug-355-entity-query.php
<?php namespace DrupalEntity; use Drupal\node\NodeStorage; use function PHPStan\Testing\assertType; /** @var \Drupal\node\NodeStorage $typedNodeStorage */ $typedNodeStorage = \Drupal::entityTypeManager()->getStorage('node'); assertType( 'array<int, string>', $typedNodeStorage->getQuery() ->accessChec...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/field-types.php
tests/src/Type/data/field-types.php
<?php namespace DrupalEntityFields; use Drupal\comment\Plugin\Field\FieldType\CommentItem; use Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem; use Drupal\Core\Field\Plugin\Field\FieldType\ChangedItem; use Drupal\Core\Field\Plugin\Field\FieldType\CreatedItem; use Drupal\Core\Field\Plugin\Field\FieldType\DecimalI...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-type-manager.php
tests/src/Type/data/entity-type-manager.php
<?php namespace EntityTypeManagerGetStorage; use function PHPStan\Testing\assertType; $etm = \Drupal::entityTypeManager(); assertType('Drupal\node\NodeStorage', $etm->getStorage('node')); assertType('Drupal\user\UserStorage', $etm->getStorage('user')); assertType('Drupal\taxonomy\TermStorage', $etm->getStorage('tax...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity.php
tests/src/Type/data/entity.php
<?php namespace DrupalEntity; use Drupal\node\Entity\Node; use Drupal\node\NodeInterface; use function PHPStan\Testing\assertType; assertType('Drupal\node\Entity\Node', $node = Node::create(['type' => 'page', 'title' => 'foo'])); assertType('Drupal\node\Entity\Node', $node->createDuplicate()); assertType('Drupal\nod...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-852.php
tests/src/Type/data/bug-852.php
<?php use Drupal\Component\Assertion\Inspector; use Drupal\Core\Url; use function PHPStan\Testing\assertType; function foo(array $baz): void { assert(Inspector::assertAllArrays($baz)); assertType('array<array>', $baz); assert(Inspector::assertAll(fn (array $i): bool => $i['file'] instanceof Url, $baz));...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-type-manager-definition.php
tests/src/Type/data/entity-type-manager-definition.php
<?php namespace EntityTypeManagerGetDefinition; use function PHPStan\Testing\assertType; $etm = \Drupal::entityTypeManager(); // When $exception_on_invalid is true (default), it should always return EntityTypeInterface assertType('Drupal\Core\Entity\EntityTypeInterface', $etm->getDefinition('node')); assertType('Dr...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-499.php
tests/src/Type/data/bug-499.php
<?php namespace Bug499; use Drupal\Core\Field\FieldItemList; use Drupal\Core\TypedData\ComputedItemListTrait; use function PHPStan\Testing\assertType; class ComputedFieldItemList extends FieldItemList { use ComputedItemListTrait; protected function computeValue() { $item = $this->createItem(0, '...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-properties.php
tests/src/Type/data/entity-properties.php
<?php namespace DrupalEntity; use Drupal\node\Entity\Node; use Drupal\phpstan_fixtures\Entity\ReflectionEntityTest; use function PHPStan\Testing\assertType; $node = Node::create(['type' => 'page']); assertType('Drupal\Core\Field\FieldItemListInterface', $node->uid); $entity = ReflectionEntityTest::create(); assertT...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/drupal-service-static.php
tests/src/Type/data/drupal-service-static.php
<?php namespace DrupalServiceStatic; use Drupal\service_map\MyService; use function PHPStan\Testing\assertType; function test(): void { assertType(MyService::class, \Drupal::service('service_map.my_service')); assertType(MyService::class, \Drupal::service(MyService::class)); }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-414.php
tests/src/Type/data/bug-414.php
<?php namespace Bug414; use Drupal\Core\Access\AccessResultInterface; use Drupal\Core\Entity\EntityInterface; use function PHPStan\Testing\assertType; function (EntityInterface $entity): void { assertType('bool', $entity->access('view')); assertType(AccessResultInterface::class, $entity->access('view', null,...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/access-result.php
tests/src/Type/data/access-result.php
<?php namespace AccessResultType; use Drupal\Core\Access\AccessResult; use Drupal\Core\Access\AccessResultAllowed; use Drupal\Core\Access\AccessResultForbidden; use Drupal\Core\Access\AccessResultNeutral; use function PHPStan\Testing\assertType; assertType(AccessResultAllowed::class, AccessResult::allowedIf(true)); ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/drupal-class-resolver.php
tests/src/Type/data/drupal-class-resolver.php
<?php namespace DrupalClassResolver; use Drupal\Core\DependencyInjection\ClassResolver; use Drupal\service_map\MyService; use function PHPStan\Testing\assertType; class Foo {} function test(): void { assertType(Foo::class, (new ClassResolver())->getInstanceFromDefinition(Foo::class)); assertType(Foo::class,...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-909.php
tests/src/Type/data/bug-909.php
<?php namespace DrupalEntity; use function PHPStan\Testing\assertType; // Test case from issue #909: Entity query count() should return non-negative-int // Currently this fails because PHPStan returns 'int' instead of 'int<0, max>' assertType( 'int<0, max>', \Drupal::entityTypeManager() ->getStorage(...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-522.php
tests/src/Type/data/bug-522.php
<?php namespace Bug522; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\user\RoleInterface; use function PHPStan\Testing\assertType; class Foo { /** * The role storage used when changing the admin role. * * @var \Drupal\user\RoleStorageInterface */ protected $roleStorage; ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-repository.php
tests/src/Type/data/entity-repository.php
<?php namespace EntityRepository; use Drupal\node\Entity\Node; use function PHPStan\Testing\assertType; $entityRepository = \Drupal::service('entity.repository'); assertType( 'Drupal\node\Entity\Node|null', $entityRepository->loadEntityByUuid('node', '3f205175-04f7-4f57-b48b-9799299252c3') ); assertType( ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-storage.php
tests/src/Type/data/entity-storage.php
<?php namespace DrupalEntityStorage; use function PHPStan\Testing\assertType; // Content Entity types. $nodeStorage = \Drupal::entityTypeManager()->getStorage('node'); assertType('Drupal\node\Entity\Node', $nodeStorage->create(['type' => 'page', 'title' => 'foo'])); assertType('Drupal\node\Entity\Node|null', $nodeSt...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/accessible.php
tests/src/Type/data/accessible.php
<?php namespace PhpstanDrupalAccessible; use Drupal\Core\Access\AccessResultInterface; use function PHPStan\Testing\assertType; $entityTypeManager = \Drupal::entityTypeManager(); $entity = $entityTypeManager->getStorage('entity_test')->create(); assertType('bool', $entity->access('add')); assertType('bool', $entity...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-access-control-handler.php
tests/src/Type/data/entity-access-control-handler.php
<?php namespace PhpstanDrupalEntityAccessControlHandler; use Drupal\Core\Access\AccessResultInterface; use Drupal\Core\Field\FieldDefinition; use Drupal\node\Entity\Node; use function PHPStan\Testing\assertType; $entityTypeManager = \Drupal::entityTypeManager(); $accessControlHandler = $entityTypeManager->getAccessC...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/inspector.php
tests/src/Type/data/inspector.php
<?php use Drupal\Component\Assertion\Inspector; use Drupal\Core\StringTranslation\TranslatableMarkup; use Drupal\node\Entity\Node; use function PHPStan\Testing\assertType; /** * @see Inspector::assertAll() */ function assertAll(mixed $mixed_arg, array $array_arg): void { $callable = is_string(...); Inspec...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/lock-backend.php
tests/src/Type/data/lock-backend.php
<?php namespace Foo; use function PHPStan\Testing\assertType; $lock = \Drupal::lock(); if (!$lock->acquire('foo')) { assertType('bool', $lock->acquire('foo')); if ($lock->acquire('foo')) { assertType('bool', $lock->acquire('foo')); } }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/content-entity-translation.php
tests/src/Type/data/content-entity-translation.php
<?php namespace DrupalContentEntityTranslation; use Drupal\node\Entity\Node; use Drupal\taxonomy\Entity\Term; use function PHPStan\Testing\assertType; assertType(Node::class, $node = Node::create(['type' => 'page', 'title' => 'foo'])); assertType(Node::class, $node->getTranslation('en')); assertType(Node::class, $no...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/container.php
tests/src/Type/data/container.php
<?php namespace DrupalContainerStatic; use Drupal\service_map\AgainAnotherMyService; use Drupal\service_map\Concrete; use Drupal\service_map\MyService; use Drupal\service_map\Override; use function PHPStan\Testing\assertType; function test(): void { $container = \Drupal::getContainer(); assertType(MyService...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-377.php
tests/src/Type/data/bug-377.php
<?php namespace bug377; use Drupal\Core\Config\Entity\ConfigEntityStorageInterface; use Drupal\Core\Entity\ContentEntityStorageInterface; use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\node\NodeStorageInterface; use function PHPStan\Testing\assertType; cl...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-query-execute.php
tests/src/Type/data/entity-query-execute.php
<?php namespace DrupalEntity; use function PHPStan\Testing\assertType; assertType( 'array<int, string>', \Drupal::entityTypeManager()->getStorage('node')->getQuery() ->execute() ); assertType( 'array<int, string>', \Drupal::entityTypeManager()->getStorage('node')->getQuery() ->accessCh...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-857.php
tests/src/Type/data/bug-857.php
<?php use Drupal\Component\Assertion\Inspector; use function PHPStan\Testing\assertType; function mixed_function(): mixed {} // If the type is not narrowed from 'mixed' before call, it is narrowed to // 'iterable'. $array = mixed_function(); assertType('mixed', $array); \assert(Inspector::assertAll(fn (array $i): bo...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/synthetic.php
tests/src/Type/data/synthetic.php
<?php namespace DrupalContainerSyntheticServices; use Composer\Autoload\ClassLoader; use Drupal\Core\DrupalKernelInterface; use function PHPStan\Testing\assertType; function foo(): void { $container = \Drupal::getContainer(); assertType(DrupalKernelInterface::class, $container->get('kernel')); assertType...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/book-module.php
tests/src/Type/data/book-module.php
<?php namespace BookModuleProperty; use Drupal\node\Entity\Node; use function PHPStan\Testing\assertType; $node = Node::create(['type' => 'book']); assertType('array{nid?: int|numeric-string, bid?: \'new\'|int|numeric-string|false, original_bid?: int|numeric-string, pid?: int|numeric-string, parent_depth_limit?: int...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/url.php
tests/src/Type/data/url.php
<?php namespace DrupalUrl; use Drupal\Core\Access\AccessResultInterface; use Drupal\Core\Url; use Symfony\Component\HttpFoundation\Request; use function PHPStan\Testing\assertType; assertType('string', (new Url('route_name'))->toString()); assertType('string', Url::fromRoute('route_name')->toString()); assertType('s...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/bug-563.php
tests/src/Type/data/bug-563.php
<?php namespace Bug563; use Drupal\Core\Cache\CacheBackendInterface; use function PHPStan\Testing\assertType; function foo(): void { $container = \Drupal::getContainer(); assert($container !== null); $cache_bins = ['page', 'dynamic_page_cache', 'render']; foreach ($cache_bins as $cache_bin) { ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/container-optional.php
tests/src/Type/data/container-optional.php
<?php namespace DrupalContainerOptional; use Symfony\Component\DependencyInjection\ContainerInterface; use Drupal\service_map\MyService; use function PHPStan\Testing\assertType; function test(): void { $container = \Drupal::getContainer(); assertType( 'object|null', $container->get('unknown_...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Type/data/entity-type-stubs.php
tests/src/Type/data/entity-type-stubs.php
<?php namespace EntityTypeStubs; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityType; use Drupal\Core\Field\FieldItemListInterface; use Drupal\node\Entity\Node; use function PHPStan\Testing\assertType; function (ContentEntityInterface $entity): void { foreach ($entity as $name => $f...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/TestClassSuffixNameRuleTest.php
tests/src/Rules/TestClassSuffixNameRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\Tests\TestClassSuffixNameRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; class TestClassSuffixNameRuleTest extends DrupalRuleTestCase { protected function getRule...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/HookFormAlterRuleTest.php
tests/src/Rules/HookFormAlterRuleTest.php
<?php namespace mglaman\PHPStanDrupal\Tests\Rules; use Drupal; use mglaman\PHPStanDrupal\Rules\Drupal\HookFormAlterRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; /** * Test the HookFormAlterRule. */ class HookFormAlterRuleTest extends DrupalRuleTestCase { /** * {@inheri...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/ImpossibleCheckTypeStaticMethodCallRuleTest.php
tests/src/Rules/ImpossibleCheckTypeStaticMethodCallRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\Tests\TestClassSuffixNameRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper; use PHPStan\Rules\Comparison\ImpossibleCheckTypeStaticMethodCal...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/EntityQueryHasAccessCheckRuleTest.php
tests/src/Rules/EntityQueryHasAccessCheckRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\EntityQuery\EntityQueryHasAccessCheckRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; final class EntityQueryHasAccessCheckRuleTest extends DrupalRuleTestCase { protected function getRule(...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/TestClassesProtectedPropertyModulesRuleTest.php
tests/src/Rules/TestClassesProtectedPropertyModulesRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\TestClassesProtectedPropertyModulesRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; class TestClassesProtectedPropertyModulesRuleTest extends DrupalRuleTestCase { ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/CachableDependencyRuleTest.php
tests/src/Rules/CachableDependencyRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\CacheableDependencyRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; final class CachableDependencyRuleTest extends DrupalRuleTestCase { protected function getRule(): \PHPStan\Rules\Rule ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/ConfigEntityConfigExportRuleTest.php
tests/src/Rules/ConfigEntityConfigExportRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Deprecations\ConfigEntityConfigExportRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; final class ConfigEntityConfigExportRuleTest extends DrupalRuleTestCase { protected function getRule(): \PHPS...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/LoadIncludesRuleTest.php
tests/src/Rules/LoadIncludesRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\LoadIncludes; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; final class LoadIncludesRuleTest extends DrupalRuleTestCase { protected function getRule(): \PHPStan\Rules\Rule { return...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/RevisionableStorageInterfaceStubTest.php
tests/src/Rules/RevisionableStorageInterfaceStubTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\RestrictedUsage\RestrictedMethodUsageRule; use PHPStan\Rules\Rule; final class RevisionableStorageInterfaceStubTest extends DrupalRuleTestCase { protected function g...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/ClassExtendsInternalClassRuleTest.php
tests/src/Rules/ClassExtendsInternalClassRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Classes\ClassExtendsInternalClassRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; final class ClassExtendsInternalClassRuleTest extends DrupalRuleTestCase { private const D...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/AccessResultConditionRuleTest.php
tests/src/Rules/AccessResultConditionRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\AccessResultConditionRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; final class AccessResultConditionRuleTest extends DrupalRuleTestCase { protected function get...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/GlobalDrupalDependencyInjectionRuleTest.php
tests/src/Rules/GlobalDrupalDependencyInjectionRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\GlobalDrupalDependencyInjectionRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; final class GlobalDrupalDependencyInjectionRuleTest extends DrupalRuleTestCase { protected function getRule(...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/DependencySerializationTraitPropertyRuleTest.php
tests/src/Rules/DependencySerializationTraitPropertyRuleTest.php
<?php namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\DependencySerializationTraitPropertyRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; final class DependencySerializationTraitPropertyRuleTest extends DrupalRuleTestCase { protected function...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/PluginManagerSetsCacheBackendRuleTest.php
tests/src/Rules/PluginManagerSetsCacheBackendRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\PluginManager\PluginManagerSetsCacheBackendRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; final class PluginManagerSetsCacheBackendRuleTest extends DrupalRuleTestCase...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/DummyRule.php
tests/src/Rules/DummyRule.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use PhpParser\Node; use PHPStan\Analyser\Scope; final class DummyRule implements \PHPStan\Rules\Rule { public function getNodeType(): string { return 'PhpParser\Node\Expr\FuncCall'; } public function processNode(Node...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/DeprecatedHookImplementationTest.php
tests/src/Rules/DeprecatedHookImplementationTest.php
<?php namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Deprecations\DeprecatedHookImplementation; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Reflection\ReflectionProvider; use PHPStan\Rules\Rule; /** * Test the rule to detected deprecated hook implementations. */ cl...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/BrowserTestBaseDefaultThemeRuleTest.php
tests/src/Rules/BrowserTestBaseDefaultThemeRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\Tests\BrowserTestBaseDefaultThemeRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; /** * @extends \mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase<\mglaman\PHPStanDrupal\Rules\Drupal\Tests\Brows...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/AccessCheckImpossibleTypeCallRuleTest.php
tests/src/Rules/AccessCheckImpossibleTypeCallRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper; use PHPStan\Rules\Comparison\ImpossibleCheckTypeMethodCallRule; use PHPStan\Rules\Rule; final class AccessCheckImpossibleTypeCallRul...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/PluginAnnotationContextDefinitionsRuleTest.php
tests/src/Rules/PluginAnnotationContextDefinitionsRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Deprecations\PluginAnnotationContextDefinitionsRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; final class PluginAnnotationContextDefinitionsRuleTest extends DrupalRuleTestCase { protected funct...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/RenderCallbackRuleTest.php
tests/src/Rules/RenderCallbackRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Drupal\ServiceMap; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use mglaman\PHPStanDrupal\Rules\Drupal\RenderCallbackRule; use PHPStan\Rules\Rule; final class RenderCallbackRuleTest extends DrupalRuleTestCas...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/PluginManagerInspectionRuleTest.php
tests/src/Rules/PluginManagerInspectionRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Classes\PluginManagerInspectionRule; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Rule; final class PluginManagerInspectionRuleTest extends DrupalRuleTestCase { protected function...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/ModuleLoadIncludeRuleTest.php
tests/src/Rules/ModuleLoadIncludeRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Rules\Drupal\ModuleLoadInclude; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; final class ModuleLoadIncludeRuleTest extends DrupalRuleTestCase { protected function getRule(): \PHPStan\Rules\Rule { ...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/EntityParameterTypehintRuleTest.php
tests/src/Rules/EntityParameterTypehintRuleTest.php
<?php declare(strict_types=1); namespace mglaman\PHPStanDrupal\Tests\Rules; use mglaman\PHPStanDrupal\Tests\DrupalRuleTestCase; use PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule; use PHPStan\Rules\MissingTypehintCheck; use PHPStan\Rules\Rule; final class EntityParameterTypehintRuleTest extends DrupalR...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/data/access-result-condition-check.php
tests/src/Rules/data/access-result-condition-check.php
<?php namespace AccessResultConditionCheck; use Drupal\Core\Access\AccessResult; use Drupal\Core\Access\AccessResultInterface; function foo(bool $x): AccessResultInterface { return AccessResult::allowedIf($x); } function bar(): AccessResultInterface { return AccessResult::allowedIf(false === false); } functi...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/data/hook-form-alter-invalid.php
tests/src/Rules/data/hook-form-alter-invalid.php
<?php namespace mglaman\PHPStanDrupal\Tests\Rules\data; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Hook\Attribute\Hook; /** * Invalid form alter hook implementations for testing. */ class InvalidFormAlterHooks { /** * Too few parameters (missing $form_state). */ #[Hook('form_alter')] pub...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/data/bug-554.php
tests/src/Rules/data/bug-554.php
<?php namespace Bug554; use Drupal\Core\Datetime\DrupalDateTime; use Drupal\Core\Form\FormInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Security\TrustedCallbackInterface; /** * Tests callbacks for '#date_date_callbacks/' and '#date_time_callbacks'. * * Code snippets based on \Drupal\KernelTe...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/data/entity-parameters.php
tests/src/Rules/data/entity-parameters.php
<?php namespace ContentEntityParameters; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\user\Entity\User; function node_insert(\Drupal\node\NodeInterface $node): void { } function user_insert(User $user): void { } function config_insert(EntityViewDisplay $viewDisplay): void { }
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false
mglaman/phpstan-drupal
https://github.com/mglaman/phpstan-drupal/blob/5fe2128306061a04361e4818e306faa0e3d639c7/tests/src/Rules/data/bug-516.php
tests/src/Rules/data/bug-516.php
<?php namespace Bug516; use Drupal\Core\Extension\ModuleHandlerInterface; /** * Tests moduleHandler::loadInclude where first argument is a variable. */ class TestClass { /** * Code snippet from \Drupal\TestTools\Extension\SchemaInspector. * * @param \Drupal\Core\Extension\ModuleHandlerInterface...
php
MIT
5fe2128306061a04361e4818e306faa0e3d639c7
2026-01-05T02:09:52.644045Z
false