Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jrfnl/5ac6cf10e4553a5e2174cf0f58d5e305 to your computer and use it in GitHub Desktop.
Save jrfnl/5ac6cf10e4553a5e2174cf0f58d5e305 to your computer and use it in GitHub Desktop.
RFC GetDeclaredEnums: usage of combinations of *_exists() functions
FILE: antecedent\patchwork--2.2.0\src\Utils.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 156: WARNING Detected use of combination of class_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
154: }
155:
>> 156: function classOrTraitExists($classOrTrait, $shouldAutoload = true)
157: {
158: return class_exists($classOrTrait, $shouldAutoload)
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: api-platform\core--v4.0.3\src\Metadata\Property\Factory\ExtractorPropertyNameCollectionFactory.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 56: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
54: }
55:
>> 56: if (!class_exists($resourceClass) && !interface_exists($resourceClass)) {
57: if (null !== $propertyNameCollection) {
58: return $propertyNameCollection;
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: api-platform\core--v4.0.3\src\Metadata\Resource\Factory\ExtractorResourceMetadataCollectionFactory.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 52: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
50: }
51:
>> 52: if (!(class_exists($resourceClass) || interface_exists($resourceClass)) || !$resources = $this->extractor->getResources()[$resourceClass] ?? false) {
53: return $resourceMetadataCollection;
54: }
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: api-platform\core--v4.0.3\src\Symfony\Bundle\DependencyInjection\ApiPlatformExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 330: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
328: $container->getDefinition('api_platform.metadata.property_extractor.xml')->replaceArgument(0, $xmlResources);
329:
>> 330: if (class_exists(PhpDocParser::class) || interface_exists(DocBlockFactoryInterface::class)) {
331: $loader->load('metadata/php_doc.xml');
332: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: api-platform\core--v4.0.3\src\Symfony\Bundle\DependencyInjection\Compiler\TestClientPass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 29: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
27: {
28: if (
>> 29: !class_exists(AbstractBrowser::class)
30: || !trait_exists(HttpClientTrait::class)
31: || !$container->hasParameter('test.client.parameters')
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: api-platform\core--v4.0.3\src\Symfony\Bundle\DependencyInjection\Configuration.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 197: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
195: }
196:
>> 197: private function addDoctrineOrmSection(ArrayNodeDefinition $rootNode): void
198: {
199: $rootNode
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 419: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
417: }
418:
>> 419: private function addMessengerSection(ArrayNodeDefinition $rootNode): void
420: {
421: $rootNode
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: async-aws\async-aws-bundle--1.12.2\src\DependencyInjection\AsyncAwsExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 143: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
141: * } $config
142: */
>> 143: private function addServiceDefinition(ContainerBuilder $container, string $name, array $config, string $clientClass): void
144: {
145: if (\array_key_exists('logger', $config)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: barryvdh\laravel-ide-helper--v3.1.0\src\Alias.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 103: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
101: $classes = (array)$classes;
102: foreach ($classes as $class) {
>> 103: if (class_exists($class) || interface_exists($class)) {
104: $this->classes[] = $class;
105: } else {
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 292: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
290:
291: //If it doesn't exist, skip it
>> 292: if (!class_exists($root) && !interface_exists($root)) {
293: return;
294: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 328: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
326: foreach ($this->magicMethods as $magic => $real) {
327: [$className, $name] = explode('::', $real);
>> 328: if ((!class_exists($className) && !interface_exists($className)) || !method_exists($className, $name)) {
329: continue;
330: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: barryvdh\laravel-ide-helper--v3.1.0\src\Console\ModelsCommand.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1403: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1401: protected function checkForCastableCasts(string $type, array $params = []): string
1402: {
>> 1403: if (!class_exists($type) || !interface_exists(Castable::class)) {
1404: return $type;
1405: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1435: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1433: protected function checkForCustomLaravelCasts(string $type): ?string
1434: {
>> 1435: if (!class_exists($type) || !interface_exists(CastsAttributes::class)) {
1436: return $type;
1437: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: codeception\codeception--5.1.2\src\Codeception\Lib\ModuleContainer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 498: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
496: private function normalizeConflictSpecification(string $conflicts)
497: {
>> 498: if (interface_exists($conflicts) || class_exists($conflicts)) {
499: return $conflicts;
500: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: codeception\stub--4.1.3\RoboFile.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 24: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
22: {
23: foreach ($this->docs as $file => $class) {
>> 24: if (!class_exists($class, true) && !trait_exists($class, true)) {
25: throw new Exception('ups');
26: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: consolidation\robo--5.0.0\src\Task\Development\GenerateMarkdownDoc.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 480: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
478: protected function documentClass($class)
479: {
>> 480: if (!class_exists($class) && !trait_exists($class)) {
481: return "";
482: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: cuyz\valinor--1.13.0\src\Utility\Reflection\Reflection.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 41: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
39: {
40: // @infection-ignore-all / We don't need to test the cache
>> 41: return self::$classOrInterfaceExists[$name] ??= (class_exists($name) || interface_exists($name))
42: && self::class($name)->name === ltrim($name, '\\');
43: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: dedoc\scramble--v0.11.16\src\Infer\Services\FileNameResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 17: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
15: }
16:
>> 17: public function __invoke(string $shortName): string
18: {
19: $name = $this->nameContext->getResolvedName(new Name([$shortName]), 1)->toString();
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\annotations--2.0.2\lib\Doctrine\Common\Annotations\DocParser.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1115: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1113: case ! empty($this->namespaces):
1114: foreach ($this->namespaces as $ns) {
>> 1115: if (class_exists($ns . '\\' . $className) || interface_exists($ns . '\\' . $className)) {
1116: $className = $ns . '\\' . $className;
1117: $found = true;
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1135: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1133: $ns = $this->imports['__NAMESPACE__'];
1134:
>> 1135: if (class_exists($ns . '\\' . $className) || interface_exists($ns . '\\' . $className)) {
1136: $className = $ns . '\\' . $className;
1137: $found = true;
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\common--3.4.4\src\ClassLoader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 279: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
277: * @return bool
278: */
>> 279: private static function typeExists($type, $autoload = false)
280: {
281: return class_exists($type, $autoload)
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\common--3.4.4\src\Proxy\ProxyGenerator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1263: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1261: }
1262:
>> 1263: if (! $type->isBuiltin() && ! class_exists($name) && ! interface_exists($name) && $name !== 'static') {
1264: if ($parameter !== null) {
1265: throw UnexpectedValueException::invalidParameterTypeHint(
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\mongodb-odm--2.9.0\lib\Doctrine\ODM\MongoDB\Mapping\ClassMetadata.php
------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 2407: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------------
2405: }
2406:
>> 2407: if (isset($mapping['targetDocument']) && ! class_exists($mapping['targetDocument']) && ! interface_exists($mapping['targetDocument'])) {
2408: throw MappingException::invalidTargetDocument(
2409: $mapping['targetDocument'],
------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 2417: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------------
2415: if (isset($mapping['discriminatorMap'])) {
2416: foreach ($mapping['discriminatorMap'] as $value => $class) {
>> 2417: if (! class_exists($class) && ! interface_exists($class)) {
2418: throw MappingException::invalidClassInReferenceDiscriminatorMap($class, $this->name, $mapping['fieldName']);
2419: }
------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\mongodb-odm--2.9.0\lib\Doctrine\ODM\MongoDB\PersistentCollection\DefaultPersistentCollectionGenerator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 327: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
325: }
326:
>> 327: if ($nameLower !== 'static' && ! $type->isBuiltin() && ! class_exists($name) && ! interface_exists($name)) {
328: if ($parameter !== null) {
329: throw PersistentCollectionException::invalidParameterTypeHint(
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\mongodb-odm-bundle--5.0.1\src\DependencyInjection\DoctrineMongoDBExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 383: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
381: {
382: /** @psalm-suppress UndefinedClass Optional dependency */
>> 383: if (! interface_exists(MessageBusInterface::class) || ! class_exists(DoctrineClearEntityManagerWorkerSubscriber::class)) {
384: return;
385: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\orm--3.2.2\src\Mapping\ClassMetadata.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 907: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
905: foreach ($this->associationMappings as $mapping) {
906: if (
>> 907: ! class_exists($mapping->targetEntity)
908: && ! interface_exists($mapping->targetEntity)
909: && ! trait_exists($mapping->targetEntity)
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 2199: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
2197: }
2198:
>> 2199: if (! (class_exists($className) || interface_exists($className))) {
2200: throw MappingException::invalidClassInDiscriminatorMap($className, $this->name);
2201: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: doctrine\orm--3.2.2\src\Query\Parser.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 871: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
869: {
870: assert($this->lexer->token !== null);
>> 871: if (! (class_exists($schemaName, true) || interface_exists($schemaName, true))) {
872: $this->semanticalError(
873: sprintf("Class '%s' is not defined.", $schemaName),
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: dragon-code\support--6.15.0\src\Instances\Instance.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 71: WARNING Detected use of combination of class_exists(), interface_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-enumexistsInSameFunctionFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
69: * Gets the class name of the object.
70: */
>> 71: public function classname(object|string|null $class = null): ?string
72: {
73: if (IsHelper::object($class)) {
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 91: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists(), enum_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-trait-enumexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
89: }
90:
>> 91: return IsHelper::string($haystack) && (class_exists($haystack) || interface_exists($haystack) || trait_exists($haystack) || enum_exists($haystack));
92: }
93:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: drupal\core--11.0.5\lib\Drupal\Core\Theme\Component\ComponentValidator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 88: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
86: foreach ($classes_per_prop as $prop_name => $class_types) {
87: // For each possible type, check if it is a class.
>> 88: $missing_classes = array_filter($class_types, static fn(string $class) => !class_exists($class) && !interface_exists($class));
89: $missing_class_errors = [
90: ...$missing_class_errors,
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: drupal\core--11.0.5\modules\serialization\src\Normalizer\NormalizerBase.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 55: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
53:
54: $subclass_check = function ($name) use ($type) {
>> 55: return (class_exists($name) || interface_exists($name)) && is_subclass_of($type, $name, TRUE);
56: };
57:
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: e0ipso\shaper--1.2.4\src\Validator\InstanceofValidator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 25: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
23: public function __construct($supported_class_or_interface) {
24: if (
>> 25: !class_exists($supported_class_or_interface) &&
26: !interface_exists($supported_class_or_interface)
27: ) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: enlightn\enlightn--v2.10.0\src\Analyzers\Security\LoginThrottlingAnalyzer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 109: WARNING Detected use of combination of class_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
107: * @throws \ReflectionException
108: */
>> 109: public function skip()
110: {
111: // Skip this analyzer if the app is stateless (there is no login for stateless apps) or if the app
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: friendsofphp\php-cs-fixer--v3.64.0\src\Fixer\LanguageConstruct\ClassKeywordFixer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 92: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
90: private function exists(string $name): bool
91: {
>> 92: if (class_exists($name) || interface_exists($name) || trait_exists($name)) {
93: $rc = new \ReflectionClass($name);
94:
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: gedmo\doctrine-extensions--v3.16.1\src\Mapping\Driver\AbstractAnnotationDriver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 149: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
147: * @phpstan-return class-string|''
148: */
>> 149: protected function getRelatedClassName($metadata, $name)
150: {
151: if (class_exists($name) || interface_exists($name)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 151: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
149: protected function getRelatedClassName($metadata, $name)
150: {
>> 151: if (class_exists($name) || interface_exists($name)) {
152: return $name;
153: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: gedmo\doctrine-extensions--v3.16.1\src\Mapping\Driver\File.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 152: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
150: * @phpstan-return class-string|''
151: */
>> 152: protected function getRelatedClassName($metadata, $name)
153: {
154: if (class_exists($name) || interface_exists($name)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 154: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
152: protected function getRelatedClassName($metadata, $name)
153: {
>> 154: if (class_exists($name) || interface_exists($name)) {
155: return $name;
156: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: hoa\consistency--2.17.08.29\Source\Consistency.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 60: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
58: * ```
59: */
>> 60: public static function entityExists(string $entityName, bool $autoloader = false): bool
61: {
62: return
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: illuminate\support--v11.26.0\Reflector.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 139: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
137:
138: return $paramClassName
>> 139: && (class_exists($paramClassName) || interface_exists($paramClassName))
140: && (new ReflectionClass($paramClassName))->isSubclassOf($className);
141: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: jlevers\selling-partner-api--v7.2.0\src\Traits\Deserializes.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 93: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
91: }
92:
>> 93: if (! class_exists($type) && ! interface_exists($type)) {
94: throw new InvalidAttributeTypeException("Neither the Class nor Interface `$type` exists");
95: } elseif ($type == DateTimeInterface::class) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: jms\serializer--3.30.0\src\GraphNavigator\SerializationGraphNavigator.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 191: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
189: // If we're serializing a polymorphic type, then we'll be interested in the
190: // metadata for the actual type of the object, not the base class.
>> 191: if (class_exists($type['name'], false) || interface_exists($type['name'], false)) {
192: if (is_subclass_of($data, $type['name'], false) && null === $this->handlerRegistry->getHandler(GraphNavigatorInterface::DIRECTION_SERIALIZATION, $type['name'], $this->format)) {
193: $type = ['name' => \get_class($data), 'params' => $type['params'] ?? []];
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: jms\serializer--3.30.0\src\Metadata\Driver\DocBlockDriver\DocBlockTypeResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 351: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
349: }
350:
>> 351: private function isClassOrInterface(string $typeHint): bool
352: {
353: return class_exists($typeHint) || interface_exists($typeHint);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: jms\serializer--3.30.0\src\Metadata\Driver\TypedPropertiesDriver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 125: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
123: * @phpstan-assert-if-true \ReflectionNamedType $reflectionType
124: */
>> 125: private function shouldTypeHint(?ReflectionType $reflectionType): bool
126: {
127: if (!$reflectionType instanceof ReflectionNamedType) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: johnpbloch\wordpress-core--6.6.2\wp-admin\includes\update-core.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1564: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1562:
1563: // Skip if it's already loaded.
>> 1564: if ( class_exists( $name ) || interface_exists( $name ) ) {
1565: continue;
1566: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: laminas\laminas-config--3.9.0\src\Writer\PhpArray.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 243: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
241: * @return bool
242: */
>> 243: protected function checkStringIsFqn($string)
244: {
245: if (! preg_match('/^(?:\x5c[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)+$/', $string)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: laminas\laminas-di--3.14.0\src\Config.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 131: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
129: isset($this->types[$name]['typeOf'])
130: && is_string($this->types[$name]['typeOf'])
>> 131: && (class_exists($this->types[$name]['typeOf']) || interface_exists($this->types[$name]['typeOf']))
132: ) {
133: return $this->types[$name]['typeOf'];
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 242: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
240: public function setAlias(string $name, string $class): self
241: {
>> 242: if (! class_exists($class) && ! interface_exists($class)) {
243: throw new Exception\ClassNotFoundException($class);
244: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: laminas\laminas-di--3.14.0\src\Resolver\DependencyResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 210: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
208: }
209:
>> 210: if (! class_exists($type) && ! interface_exists($type)) {
211: return false;
212: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: laminas\laminas-servicemanager--4.2.0\src\Tool\AheadOfTimeFactoryCompiler\AheadOfTimeFactoryCompiler.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 114: WARNING Detected use of combination of class_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
112: * @psalm-assert-if-true class-string $service
113: */
>> 114: private function canServiceBeUsedWithReflectionBasedFactory(string $service): bool
115: {
116: if (! class_exists($service)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: laminas\laminas-servicemanager--4.2.0\src\Tool\ConstructorParameterResolver\ConstructorParameterResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 116: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
114: $type = $type instanceof ReflectionNamedType ? $type->getName() : null;
115:
>> 116: if ($type === null || (! class_exists($type) && ! interface_exists($type))) {
117: if (! $parameter->isDefaultValueAvailable()) {
118: throw new ServiceNotFoundException(sprintf(
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: laminas\laminas-zendframework-bridge--1.8.0\src\Autoloader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 164: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
162:
163: $loaded[$alias] = true;
>> 164: if (class_exists($alias) || interface_exists($alias) || trait_exists($alias)) {
165: class_alias($alias, $class);
166: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: laravel\framework--v11.26.0\src\Illuminate\Support\Reflector.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 139: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
137:
138: return $paramClassName
>> 139: && (class_exists($paramClassName) || interface_exists($paramClassName))
140: && (new ReflectionClass($paramClassName))->isSubclassOf($className);
141: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: league\csv--9.16.0\src\Serializer\CallbackCasting.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 116: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
114: * @param Closure(?string, bool, mixed...): TValue $callback
115: */
>> 116: public static function register(string $type, Closure $callback, ?string $alias = null): void
117: {
118: if (null === $alias) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: league\csv--9.16.0\src\Serializer\CastToDate.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 57: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
55: * @throws MappingFailed
56: */
>> 57: public function setOptions(
58: ?string $default = null,
59: ?string $format = null,
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: league\csv--9.16.0\src\Serializer\Type.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 122: WARNING Detected use of combination of class_exists(), interface_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
120: }
121:
>> 122: public static function tryFromName(string $propertyType): ?self
123: {
124: $interfaceExists = interface_exists($propertyType);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: livewire\volt--v1.6.5\functions.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 311: WARNING Detected use of combination of interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
309:
310: foreach ($uses as $use) {
>> 311: if (! trait_exists($use) && ! interface_exists($use)) {
312: throw new TraitOrInterfaceNotFound($use);
313: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: magento\magento2-functional-testing-framework--4.8.2\src\Magento\FunctionalTestingFramework\ObjectManager\Relations\Runtime.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 42: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
40: * @return boolean
41: */
>> 42: public function has($type)
43: {
44: return class_exists($type) || interface_exists($type);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: magento\zend-loader--1.16.1\library\Zend\Loader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 54: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
52: public static function loadClass($class, $dirs = null)
53: {
>> 54: if (class_exists($class, false) || interface_exists($class, false)) {
55: return;
56: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 85: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
83: }
84:
>> 85: if (!class_exists($class, false) && !interface_exists($class, false)) {
86: #require_once 'Zend/Exception.php';
87: throw new Zend_Exception("File \"$file\" does not exist or class \"$class\" was not found in the file");
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: magento\zendframework1--1.15.1\library\Zend\Loader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 54: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
52: public static function loadClass($class, $dirs = null)
53: {
>> 54: if (class_exists($class, false) || interface_exists($class, false)) {
55: return;
56: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 85: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
83: }
84:
>> 85: if (!class_exists($class, false) && !interface_exists($class, false)) {
86: #require_once 'Zend/Exception.php';
87: throw new Zend_Exception("File \"$file\" does not exist or class \"$class\" was not found in the file");
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: mglaman\phpstan-drupal--1.3.1\src\Drupal\DrupalAutoloader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 246: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
244: $service_map->setDrupalServices($this->serviceMap);
245:
>> 246: if (interface_exists(Test::class)
247: && class_exists('Drupal\TestTools\PhpUnitCompatibility\PhpUnit8\ClassWriter')) {
248: ClassWriter::mutateTestBase($this->autoloader);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: mockery\mockery--1.6.12\library\Mockery\Container.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 303: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
301: $class = $parts[0];
302:
>> 303: if (! class_exists($class, true) && ! interface_exists($class, true)) {
304: throw new Exception('Can only create a partial mock from an existing class or interface');
305: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 326: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
324: }
325:
>> 326: if (class_exists($type, true) || interface_exists($type, true) || trait_exists($type, true)) {
327: $builder->addTarget($type);
328:
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: mockery\mockery--1.6.12\library\Mockery\Matcher\Type.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 53: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
51: }
52:
>> 53: if (class_exists($this->_expected) || interface_exists($this->_expected)) {
54: return $actual instanceof $this->_expected;
55: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: mustache\mustache--v2.14.2\bin\build_bootstrap.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 115: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
113: $content = '';
114: foreach ($classes as $class) {
>> 115: if (!class_exists($class) && !interface_exists($class) && (!function_exists('trait_exists') || !trait_exists($class))) {
116: throw new InvalidArgumentException(sprintf('Unable to load class "%s"', $class));
117: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nelmio\api-doc-bundle--v4.32.0\src\DependencyInjection\NelmioApiDocExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 62: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
60: }
61:
>> 62: public function load(array $configs, ContainerBuilder $container): void
63: {
64: $config = $this->processConfiguration(new Configuration(), $configs);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nelmio\api-doc-bundle--v4.32.0\src\ModelDescriber\ObjectModelDescriber.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 239: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
237: {
238: return Type::BUILTIN_TYPE_OBJECT === $model->getType()->getBuiltinType()
>> 239: && (class_exists($model->getType()->getClassName()) || interface_exists($model->getType()->getClassName()));
240: }
241: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\di--v3.2.3\src\DI\Autowiring.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 48: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
46: if (empty($types[$type])) {
47: if ($throw) {
>> 48: if (!class_exists($type) && !interface_exists($type)) {
49: throw new MissingServiceException(sprintf("Service of type '%s' not found. Check the class name because it cannot be found.", $type));
50: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 99: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
97: {
98: foreach ($types as $type) {
>> 99: if (class_exists($type) || interface_exists($type)) {
100: $type = Helpers::normalizeClass($type);
101: $this->excludedClasses += class_parents($type) + class_implements($type) + [$type => $type];
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\di--v3.2.3\src\DI\Container.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 253: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
251:
252: } elseif ($throw) {
>> 253: if (!class_exists($type) && !interface_exists($type)) {
254: throw new MissingServiceException(sprintf("Service of type '%s' not found. Check the class name because it cannot be found.", $type));
255: } elseif ($this->findByType($type)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\di--v3.2.3\src\DI\Definitions\Definition.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 57: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
55: if ($type === null) {
56: $this->type = null;
>> 57: } elseif (!class_exists($type) && !interface_exists($type)) {
58: throw new Nette\InvalidArgumentException(sprintf(
59: "Service '%s': Class or interface '%s' not found.",
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\di--v3.2.3\src\DI\Extensions\DecoratorExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 37: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
35: $this->getContainerBuilder()->resolve();
36: foreach ($this->config as $type => $info) {
>> 37: if (!class_exists($type) && !interface_exists($type)) {
38: throw new Nette\DI\InvalidConfigurationException(sprintf("Decorated class '%s' not found.", $type));
39: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\di--v3.2.3\src\DI\Extensions\SearchExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 94: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
92: $found = [];
93: foreach ($classes as $class) {
>> 94: if (!class_exists($class) && !interface_exists($class) && !trait_exists($class)) {
95: throw new Nette\InvalidStateException(sprintf(
96: 'Class %s was found, but it cannot be loaded by autoloading.',
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\di--v3.2.3\src\DI\Helpers.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 244: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
242:
243: $class = $type->getSingleName();
>> 244: if (!class_exists($class) && !interface_exists($class)) {
245: throw new ServiceCreationException(sprintf("Class '%s' not found.\nCheck the %s.", $class, $hint));
246: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 252: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
250:
251:
>> 252: public static function normalizeClass(string $type): string
253: {
254: return class_exists($type) || interface_exists($type)
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\di--v3.2.3\src\DI\Resolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 614: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
612: if ($res !== null || $parameter->isOptional()) {
613: return $res;
>> 614: } elseif (class_exists($class) || interface_exists($class)) {
615: throw new ServiceCreationException(sprintf(
616: 'Service of type %s required by %s not found. Did you add it to configuration file?',
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 655: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
653: )
654: && ($itemType = Reflection::expandClassName($m[1], $method->getDeclaringClass()))
>> 655: && (class_exists($itemType) || interface_exists($itemType))
656: ? $itemType
657: : null;
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: nette\utils--v4.0.5\src\Utils\Validators.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 370: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
368: * @deprecated
369: */
>> 370: public static function isType(string $type): bool
371: {
372: return class_exists($type) || interface_exists($type) || trait_exists($type);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: ondrejmirtes\better-reflection--6.42.0.9\src\SourceLocator\SourceStubber\ReflectionSourceStubber.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 99: WARNING Detected use of combination of class_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
97: return null;
98: }
>> 99: $enumExists = function (string $enum, bool $autoload = true) : bool {
100: if (function_exists('enum_exists')) {
101: return enum_exists($enum, $autoload);
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 662: WARNING Detected use of combination of class_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
660: if (is_object($defaultValue)) {
661: $className = get_class($defaultValue);
>> 662: $enumExists = function (string $enum, bool $autoload = true) : bool {
663: if (function_exists('enum_exists')) {
664: return enum_exists($enum, $autoload);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: palantirnet\drupal-rector--0.20.3\config\drupal-phpunit-bootstrap-file.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 158: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
156: $autoloader = require $drupalVendorRoot . '/autoload.php';
157: if ($autoloader instanceof \Composer\Autoload\ClassLoader) {
>> 158: if (interface_exists(\PHPUnit\Framework\Test::class)
159: && class_exists('Drupal\TestTools\PhpUnitCompatibility\PhpUnit8\ClassWriter')) {
160: \Drupal\TestTools\PhpUnitCompatibility\PhpUnit8\ClassWriter::mutateTestBase($autoloader);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: payum\core--1.7.5\ApiAwareTrait.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 30: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
28: }
29:
>> 30: if (is_string($this->apiClass) && !(class_exists($this->apiClass) || interface_exists($this->apiClass))) {
31: throw new LogicException(sprintf('Api class not found or invalid class. "%s", $this->apiClass', $this->apiClass));
32: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: pestphp\pest--v3.2.5\src\Expectation.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 694: WARNING Detected use of combination of class_exists(), enum_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-enumexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
692: return Targeted::make(
693: $this,
>> 694: fn (ObjectDescription $object): bool => class_exists($object->name) && ! enum_exists($object->name),
695: 'to be class',
696: FileLineFinder::where(fn (string $line): bool => true),
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: pestphp\pest--v3.2.5\src\PendingCalls\TestCall.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 519: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-trait-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
517: * @param array<int, string>|string $classesOrFunctions
518: */
>> 519: public function covers(array|string ...$classesOrFunctions): self
520: {
521: /** @var array<int, string> $classesOrFunctions */
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: pestphp\pest-plugin-arch--v3.0.0\src\Factories\ObjectDescriptionFactory.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 77: WARNING Detected use of combination of class_exists(), interface_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
75: * Checks if the given use is "user defined".
76: */
>> 77: private static function isUserDefined(string $use): bool
78: {
79: if (PhpCoreExpressions::getClass($use) !== null) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: pestphp\pest-plugin-arch--v3.0.0\src\PendingArchExpectation.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 38: WARNING Detected use of combination of class_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
36: * Filters the given "targets" by only classes.
37: */
>> 38: public function classes(): self
39: {
40: $this->excludeCallbacks[] = fn (ObjectDescription $object): bool => ! class_exists($object->name) || enum_exists($object->name);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phake\phake--v4.5.0\src\Phake\Facade.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 98: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
96:
97: foreach ($mockedClassList as $mockedClass) {
>> 98: if (!class_exists($mockedClass, true) && !interface_exists($mockedClass, true)) {
99: throw new \InvalidArgumentException("The class / interface [{$mockedClass}] does not exist. Check the spelling and make sure it is loadable.");
100: }
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phan\phan--5.4.5\tool\phan_repl_helpers.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 109: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
107: return;
108: }
>> 109: if (is_object($value) || (is_string($value) && (class_exists($value) || trait_exists($value) || interface_exists($value)))) {
110: $class_name = is_string($value) ? $value : get_class($value);
111: $reflection_class = new ReflectionClass($class_name);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: php-di\php-di--7.0.7\src\Definition\Dumper\ObjectDefinitionDumper.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 23: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
21: * Returns the definition as string representation.
22: */
>> 23: public function dump(ObjectDefinition $definition) : string
24: {
25: $className = $definition->getClassName();
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: php-di\php-di--7.0.7\src\Definition\ObjectDefinition.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 226: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
224: }
225:
>> 226: private function updateCache() : void
227: {
228: $className = $this->getClassName();
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: php-di\php-di--7.0.7\src\Definition\Source\AttributeBasedAutowiring.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 38: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
36: $className = $definition ? $definition->getClassName() : $name;
37:
>> 38: if (!class_exists($className) && !interface_exists($className)) {
39: return $definition;
40: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 124: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
122: $propertyType = $property->getType();
123: if ($entryName === null && $propertyType instanceof ReflectionNamedType) {
>> 124: if (! class_exists($propertyType->getName()) && ! interface_exists($propertyType->getName())) {
125: throw new InvalidAttribute(sprintf(
126: '#[Inject] found on property %s::%s but unable to guess what to inject, the type of the property does not look like a valid class or interface name',
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: php-di\php-di--7.0.7\src\Definition\Source\ReflectionBasedAutowiring.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 23: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
21: $className = $definition ? $definition->getClassName() : $name;
22:
>> 23: if (!class_exists($className) && !interface_exists($className)) {
24: return $definition;
25: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: php-di\phpdoc-reader--2.2.1\src\PhpDocReader\PhpDocReader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 303: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
301: }
302:
>> 303: private function classExists(string $class): bool
304: {
305: return class_exists($class) || interface_exists($class);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: php-http\discovery--1.20.0\src\ClassDiscovery.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 247: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
245: * @return bool
246: */
>> 247: public static function safeClassExists($class)
248: {
249: try {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: php-mock\php-mock-phpunit--2.10.0\autoload.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 52: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
50: }
51:
>> 52: if (!class_exists(\PHPUnit\Framework\MockObject\InvocationHandler::class)
53: && !interface_exists(\PHPUnit\Framework\MockObject\Stub\MatcherCollection::class)
54: ) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpspec\phpspec--7.5.0\src\PhpSpec\Process\Prerequisites\SuitePrerequisites.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 39: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
37:
38: foreach ($this->executionContext->getGeneratedTypes() as $type) {
>> 39: if (!class_exists($type) && !interface_exists($type)) {
40: $undefinedTypes[] = $type;
41: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpspec\prophecy--v1.19.0\src\Prophecy\Argument\Token\TypeToken.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 31: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
29: {
30: $checker = "is_{$type}";
>> 31: if (!function_exists($checker) && !interface_exists($type) && !class_exists($type)) {
32: throw new InvalidArgumentException(sprintf(
33: 'Type or class name expected as an argument to TypeToken, but got %s.', $type
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpspec\prophecy--v1.19.0\src\Prophecy\Promise\ThrowPromise.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 46: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
44: {
45: if (is_string($exception)) {
>> 46: if ((!class_exists($exception) && !interface_exists($exception)) || !$this->isAValidThrowable($exception)) {
47: throw new InvalidArgumentException(sprintf(
48: 'Exception / Throwable class or instance expected as argument to ThrowPromise, but got %s.',
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpspec\prophecy--v1.19.0\src\Prophecy\Prophecy\MethodProphecy.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 136: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
134: // objects are higher priority than scalars
135: $isObject = static function($type) {
>> 136: return class_exists($type) || interface_exists($type);
137: };
138:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 183: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
181:
182: default:
>> 183: if (!class_exists($defaultType) && !interface_exists($defaultType)) {
184: throw new MethodProphecyException(sprintf('Cannot create a return value for the method as the type "%s" is not supported. Configure an explicit return value instead.', $defaultType), $method);
185: }
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpunit\phpunit--11.4.0\src\Framework\Assert.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1155: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1153: final public static function assertInstanceOf(string $expected, mixed $actual, string $message = ''): void
1154: {
>> 1155: if (!class_exists($expected) && !interface_exists($expected)) {
1156: throw new UnknownClassOrInterfaceException($expected);
1157: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1180: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1178: final public static function assertNotInstanceOf(string $expected, mixed $actual, string $message = ''): void
1179: {
>> 1180: if (!class_exists($expected) && !interface_exists($expected)) {
1181: throw new UnknownClassOrInterfaceException($expected);
1182: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpunit\phpunit--11.4.0\src\Framework\MockObject\Generator\Generator.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 261: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
259: public function mockObjectForAbstractClass(string $originalClassName, array $arguments = [], string $mockClassName = '', bool $callOriginalConstructor = true, bool $callOriginalClone = true, bool $callAutoload = true, ?array $mockedMethods = null, bool $cloneArguments = true): MockObject
260: {
>> 261: if (class_exists($originalClassName, $callAutoload) ||
262: interface_exists($originalClassName, $callAutoload)) {
263: $reflector = $this->reflectClass($originalClassName);
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1019: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1017: private function ensureKnownType(string $type, bool $callAutoload): void
1018: {
>> 1019: if (!class_exists($type, $callAutoload) && !interface_exists($type, $callAutoload)) {
1020: throw new UnknownTypeException($type);
1021: }
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1057: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1055: }
1056:
>> 1057: if (class_exists($className, false) ||
1058: interface_exists($className, false) ||
1059: trait_exists($className, false)) {
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpunit\phpunit--11.4.0\src\Metadata\Api\CodeCoverage.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 326: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
324: }
325:
>> 326: if (!(class_exists($name) || trait_exists($name))) {
327: throw new InvalidCoversTargetException(
328: sprintf(
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 335: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
333: }
334:
>> 335: assert(class_exists($names[0]) || trait_exists($names[0]));
336:
337: if ($metadata->isCoversClass() && trait_exists($names[0])) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: phpunit\phpunit-mock-objects--6.1.2\src\Generator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 117: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
115: if (\is_array($type)) {
116: foreach ($type as $_type) {
>> 117: if (!\class_exists($_type, $callAutoload) &&
118: !\interface_exists($_type, $callAutoload)) {
119: throw new RuntimeException(
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 128: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
126: }
127: } else {
>> 128: if (!\class_exists($type, $callAutoload) &&
129: !\interface_exists($type, $callAutoload)
130: ) {
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 236: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
234: }
235:
>> 236: if (\class_exists($originalClassName, $callAutoload) ||
237: \interface_exists($originalClassName, $callAutoload)) {
238: $reflector = new ReflectionClass($originalClassName);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: psy\psysh--v0.12.4\src\Command\ReflectingCommand.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 152: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
150: $fullName = $namespace.'\\'.$name;
151:
>> 152: if (\class_exists($fullName) || \interface_exists($fullName) || ($includeFunctions && \function_exists($fullName))) {
153: return $fullName;
154: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: psy\psysh--v0.12.4\src\Util\Mirror.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 91: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
89: }
90:
>> 91: if (\class_exists($value) || \interface_exists($value) || \trait_exists($value)) {
92: return new \ReflectionClass($value);
93: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: rector\rector--1.2.6\src\Skipper\SkipCriteriaResolver\SkippedClassResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 40: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
38: }
39: // this only checks for Rector rules, that are always autoloaded
>> 40: if (!\class_exists($key) && !\interface_exists($key)) {
41: continue;
42: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: respect\stringifier--2.0.0\src\Stringifiers\DeclaredStringifier.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 38: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists(), enum_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-trait-enumexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
36: }
37:
>> 38: public function isNotDeclared(string $raw): bool
39: {
40: return !class_exists($raw) && !interface_exists($raw) && !trait_exists($raw) && !enum_exists($raw);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: roots\wordpress-no-content--6.6.2\wp-admin\includes\update-core.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1564: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1562:
1563: // Skip if it's already loaded.
>> 1564: if ( class_exists( $name ) || interface_exists( $name ) ) {
1565: continue;
1566: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: sebastian\code-unit-reverse-lookup--4.0.1\src\Wizard.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 72: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
70:
71: foreach (array_merge($classes, $traits) as $classOrTrait) {
>> 72: assert(class_exists($classOrTrait) || trait_exists($classOrTrait));
73:
74: if (isset($this->processedClasses[$classOrTrait])) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: sentry\sentry-symfony--5.0.1\src\aliases.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 64: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
62:
63: if (!class_exists(TracingStatement::class)) {
>> 64: if (class_exists(Result::class) && !interface_exists(VersionAwarePlatformDriver::class)) {
65: class_alias(TracingStatementForV4::class, TracingStatement::class);
66: class_alias(TracingDriverForV4::class, TracingDriver::class);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: shardj\zf1-future--1.24.0\library\Zend\Loader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 54: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
52: public static function loadClass($class, $dirs = null)
53: {
>> 54: if (class_exists($class, false) || interface_exists($class, false)) {
55: return;
56: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 85: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
83: }
84:
>> 85: if (!class_exists($class, false) && !interface_exists($class, false)) {
86: require_once 'Zend/Exception.php';
87: throw new Zend_Exception("File \"$file\" does not exist or class \"$class\" was not found in the file");
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: shopware\core--v6.6.6.1\Framework\Migration\MigrationCollection.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 179: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
177: }
178:
>> 179: if (!class_exists($className) && !trait_exists($className) && !interface_exists($className)) {
180: throw new InvalidMigrationClassException($className, $path);
181: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: shopware\core--v6.6.6.1\Framework\Store\Services\ExtensionLoader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 165: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
163: $isTheme = false;
164:
>> 165: if (interface_exists(ThemeInterface::class) && class_exists($plugin->getBaseClass())) {
166: $implementedInterfaces = class_implements($plugin->getBaseClass());
167:
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: sonata-project\admin-bundle--4.31.0\src\DependencyInjection\Compiler\ExtensionCompilerPass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 332: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
330: * @phpstan-param class-string $adminClass
331: */
>> 332: private function shouldApplyExtension(string $type, mixed $subject, string $class, string $adminClass): bool
333: {
334: $classReflection = new \ReflectionClass($class);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: spatie\laravel-data--4.10.0\src\Support\Types\Storage\AcceptedTypesStorage.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 44: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
42: protected static function resolveAcceptedTypes(string $name): array
43: {
>> 44: if (! class_exists($name) && ! interface_exists($name)) {
45: return [];
46: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: spatie\typescript-transformer--2.4.0\src\TypeScriptTransformerConfig.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 149: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
147:
148: foreach ($this->defaultTypeReplacements as $class => $replacement) {
>> 149: if (! class_exists($class) && ! interface_exists($class)) {
150: throw InvalidDefaultTypeReplacer::classDoesNotExist($class);
151: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: spiral\core--3.14.5\src\Internal\Config\StateBinder.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 43: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
41: public function bind(string $alias, mixed $resolver): void
42: {
>> 43: if ($resolver instanceof Inflector && (\interface_exists($alias) || \class_exists($alias))) {
44: $this->state->inflectors[$alias][] = $resolver;
45: return;
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: spiral\core--3.14.5\src\Internal\Factory.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 353: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
351: private function autowire(Ctx $ctx, array $arguments): object
352: {
>> 353: if (!(\class_exists($ctx->class) || (
354: \interface_exists($ctx->class)
355: &&
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: swoole\ide-helper--6.0.0-alpha\src\swoole_library\src\core\Server\Admin.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 635: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
633: $json = json_decode($msg, true, 512, JSON_THROW_ON_ERROR);
634: if (!empty($json['class_name'])) {
>> 635: if (!class_exists($json['class_name'], false) && !interface_exists($json['class_name'], false)) {
636: return self::json("{$json['class_name']} not exists", 4003);
637: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 764: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
762: $isStatic = false;
763: if (!empty($className)) {
>> 764: if (!class_exists($className) && !interface_exists($className)) {
765: return self::json("{$className} not exists", 4004);
766: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\config--v7.1.1\Resource\ClassExistenceResource.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 58: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
56: * @throws \ReflectionException when a parent class/interface/trait is not found
57: */
>> 58: public function isFresh(int $timestamp): bool
59: {
60: $loaded = class_exists($this->resource, false) || interface_exists($this->resource, false) || trait_exists($this->resource, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 149: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
147: }
148:
>> 149: if (class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false)) {
150: if (null !== $previous) {
151: throw $previous;
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\debug--v4.4.44\DebugClassLoader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 177: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
175: }
176:
>> 177: private function checkClass(string $class, string $file = null)
178: {
179: $exists = null === $file || class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 225: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
223: }
224:
>> 225: public function checkAnnotations(\ReflectionClass $refl, $class)
226: {
227: $deprecations = [];
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\debug--v4.4.44\FatalErrorHandler\ClassNotFoundFatalErrorHandler.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 179: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
177: }
178:
>> 179: private function classExists(string $class): bool
180: {
181: return class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\debug-bundle--v7.1.1\Resources\config\services.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 137: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
135: ;
136:
>> 137: if (class_exists(ConsoleFormatter::class) && interface_exists(FormatterInterface::class)) {
138: $container->services()->get('monolog.command.server_log')->tag('console.command');
139: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\Compiler\AutowirePass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 351: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
349:
350: if ($lazy) {
>> 351: if (!class_exists($type) && !interface_exists($type, false)) {
352: $definition->setClass('object');
353: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 714: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
712: $name = $m[3] ?? '';
713:
>> 714: if (class_exists($type, false) || interface_exists($type, false)) {
715: if (null !== $target && str_starts_with($target, '.'.$type.' $')
716: && (new Target($target = substr($target, \strlen($type) + 3)))->getParsedName() === $name
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\Compiler\CheckDefinitionValidityPass.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 51: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
49: throw new RuntimeException(sprintf('Please add the class to service "%s" even if it is constructed by a factory since we might need to add method calls based on compile-time checks.', $id));
50: }
>> 51: if (class_exists($id) || interface_exists($id, false)) {
52: if (str_starts_with($id, '\\') && 1 < substr_count($id, '\\')) {
53: throw new RuntimeException(sprintf('The definition for "%s" has no class attribute, and appears to reference a class or interface. Please specify the class attribute explicitly or remove the leading backslash by renaming the service to "%s" to get rid of this error.', $id, substr($id, 1)));
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\Compiler\CheckTypeDeclarationsPass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 94: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
92: return parent::processValue($value, $isRoot);
93: }
>> 94: if (!class_exists($class, false) && !interface_exists($class, false)) {
95: return parent::processValue($value, $isRoot);
96: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 226: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
224: if ($class && isset(self::BUILTIN_TYPES[strtolower($class)])) {
225: $class = strtolower($class);
>> 226: } elseif (!$class || (!$this->autoload && !class_exists($class, false) && !interface_exists($class, false))) {
227: return;
228: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\Compiler\ResolveNamedArgumentsPass.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 66: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
64: }
65:
>> 66: if (isset($key[0]) && '$' !== $key[0] && !class_exists($key) && !interface_exists($key, false)) {
67: throw new InvalidArgumentException(sprintf('Invalid service "%s": did you forget to add the "$" prefix to argument "%s"?', $this->currentId, $key));
68: }
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\ContainerBuilder.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1505: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1503: }
1504:
>> 1505: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
1506: return false;
1507: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\Dumper\PhpDumper.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 344: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
342: continue;
343: }
>> 344: if (!(class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false)) || (new \ReflectionClass($class))->isUserDefined()) {
345: $code[$options['class'].'.preload.php'] .= sprintf("\$classes[] = '%s';\n", $class);
346: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\Dumper\Preloader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 80: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
78:
79: try {
>> 80: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
81: return;
82: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\dependency-injection--v7.1.5\LazyProxy\PhpDumper\LazyServiceDumper.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 45: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
43: }
44:
>> 45: if (!($class = $definition->getClass()) || !(class_exists($class) || interface_exists($class, false))) {
46: return false;
47: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 120: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
118: throw new InvalidArgumentException(sprintf('Invalid definition for service "%s": the "interface" attribute is missing on a "proxy" tag.', $id ?? $definition->getClass()));
119: }
>> 120: if (!interface_exists($tag['interface']) && !class_exists($tag['interface'], false)) {
121: throw new InvalidArgumentException(sprintf('Invalid definition for service "%s": several "proxy" tags found but "%s" is not an interface.', $id ?? $definition->getClass(), $tag['interface']));
122: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\error-handler--v7.1.3\DebugClassLoader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 314: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
312: }
313:
>> 314: private function checkClass(string $class, ?string $file = null): void
315: {
316: $exists = null === $file || class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 362: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
360: }
361:
>> 362: public function checkAnnotations(\ReflectionClass $refl, string $class): array
363: {
364: if (
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1014: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1012: $type = substr($type, 1);
1013:
>> 1014: if (!isset($useMap[$alias]) && (class_exists($c = $namespace.$alias) || interface_exists($c) || trait_exists($c))) {
1015: $useMap[$alias] = $c;
1016: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\error-handler--v7.1.3\ErrorEnhancer\ClassNotFoundErrorEnhancer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 179: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
177: }
178:
>> 179: private function classExists(string $class): bool
180: {
181: return class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\form--v7.1.5\FormConfigBuilder.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 78: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
76: self::validateName($name);
77:
>> 78: if (null !== $dataClass && !class_exists($dataClass) && !interface_exists($dataClass, false)) {
79: throw new InvalidArgumentException(sprintf('Class "%s" not found. Is the "data_class" form option set correctly?', $dataClass));
80: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\framework-bundle--v7.1.5\Command\ContainerDebugCommand.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 346: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
344: * @internal
345: */
>> 346: public function filterToServiceTypes(string $serviceId): bool
347: {
348: // filter out things that could not be valid class names
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\framework-bundle--v7.1.5\DependencyInjection\Configuration.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 416: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
414: ->cannotBeEmpty()
415: ->validate()
>> 416: ->ifTrue(fn ($v) => !class_exists($v) && !interface_exists($v, false))
417: ->thenInvalid('The supported class or interface "%s" does not exist.')
418: ->end()
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\framework-bundle--v7.1.5\DependencyInjection\FrameworkExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1433: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1431:
1432: // don't use ContainerBuilder::willBeAvailable() as these are not needed in production
>> 1433: if (interface_exists(Parser::class) && class_exists(PhpAstExtractor::class)) {
1434: $container->removeDefinition('translation.extractor.php');
1435: } else {
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 2255: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2253: $messageToSendersMapping = [];
2254: foreach ($config['routing'] as $message => $messageConfiguration) {
>> 2255: if ('*' !== $message && !class_exists($message) && !interface_exists($message, false) && !preg_match('/^(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+\\\\)++\*$/', $message)) {
2256: if (str_contains($message, '*')) {
2257: throw new LogicException(sprintf('Invalid Messenger routing configuration: invalid namespace "%s" wildcard.', $message));
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\http-client--v7.1.5\HttpClient.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 34: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
32: public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface
33: {
>> 34: if ($amp = class_exists(ConnectionLimitingPool::class) && interface_exists(Promise::class)) {
35: if (!\extension_loaded('curl')) {
36: return new AmpHttpClient($defaultOptions, null, $maxHostConnections, $maxPendingPushes);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\http-kernel--v7.1.5\DependencyInjection\RegisterControllerArgumentLocatorsPass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 37: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
35: class RegisterControllerArgumentLocatorsPass implements CompilerPassInterface
36: {
>> 37: public function process(ContainerBuilder $container): void
38: {
39: if (!$container->hasDefinition('argument_resolver.service') && !$container->hasDefinition('argument_resolver.not_tagged_controller')) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\maker-bundle--v1.61.0\src\DependencyBuilder.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 129: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
127: $missingOptionalPackages = [];
128: foreach ($dependencies as $package) {
>> 129: if (class_exists($package['class']) || interface_exists($package['class']) || trait_exists($package['class'])) {
130: continue;
131: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\maker-bundle--v1.61.0\src\Maker\MakeTest.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 150: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
148: "test/$type.tpl.php",
149: [
>> 150: 'web_assertions_are_available' => trait_exists(WebTestAssertionsTrait::class),
151: 'api_test_case_fqcn' => !class_exists(ApiTestCase::class) ? LegacyApiTestCase::class : ApiTestCase::class,
152: ]
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\maker-bundle--v1.61.0\src\Util\ClassSourceManipulator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 366: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
364:
365: if (null !== $returnType) {
>> 366: if (class_exists($returnType) || interface_exists($returnType)) {
367: $returnType = $this->addUseStatementIfNecessary($returnType);
368: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\messenger--v7.1.5\DependencyInjection\MessengerPass.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 115: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
113: }
114:
>> 115: if ('*' !== $message && !class_exists($message) && !interface_exists($message, false)) {
116: $messageLocation = isset($tag['handles']) ? 'declared in your tag attribute "handles"' : sprintf('used as argument type in method "%s::%s()"', $r->getName(), $method);
117:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\proxy-manager-bridge--v6.4.8\Internal\ProxyGenerator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 41: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
39: }
40:
>> 41: public function getProxifiedClass(Definition $definition): ?string
42: {
43: if (!$definition->hasTag('proxy')) {
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 44: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
42: {
43: if (!$definition->hasTag('proxy')) {
>> 44: if (!($class = $definition->getClass()) || !(class_exists($class) || interface_exists($class, false))) {
45: return null;
46: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\serializer--v7.1.5\Mapping\Factory\ClassMetadataFactory.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 65: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
63: public function hasMetadataFor(mixed $value): bool
64: {
>> 65: return \is_object($value) || (\is_string($value) && (class_exists($value) || interface_exists($value, false)));
66: }
67: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\serializer--v7.1.5\Mapping\Factory\ClassResolverTrait.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 33: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
31: {
32: if (\is_string($value)) {
>> 33: if (!class_exists($value) && !interface_exists($value, false)) {
34: throw new InvalidArgumentException(sprintf('The class or interface "%s" does not exist.', $value));
35: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\serializer--v7.1.5\Normalizer\AbstractObjectNormalizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 292: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
290: abstract protected function getAttributeValue(object $object, string $attribute, ?string $format = null, array $context = []): mixed;
291:
>> 292: public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
293: {
294: return class_exists($type) || (interface_exists($type, false) && null !== $this->classDiscriminatorResolver?->getMappingForClass($type));
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\serializer--v7.1.5\Serializer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 327: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
325: * @param array $context Options available to the denormalizer
326: */
>> 327: private function getDenormalizer(mixed $data, string $class, ?string $format, array $context): ?DenormalizerInterface
328: {
329: if (!isset($this->denormalizerCache[$format][$class])) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Bundle\DebugBundle\Resources\config\services.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 137: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
135: ;
136:
>> 137: if (class_exists(ConsoleFormatter::class) && interface_exists(FormatterInterface::class)) {
138: $container->services()->get('monolog.command.server_log')->tag('console.command');
139: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Bundle\FrameworkBundle\Command\ContainerDebugCommand.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 346: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
344: * @internal
345: */
>> 346: public function filterToServiceTypes(string $serviceId): bool
347: {
348: // filter out things that could not be valid class names
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 416: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
414: ->cannotBeEmpty()
415: ->validate()
>> 416: ->ifTrue(fn ($v) => !class_exists($v) && !interface_exists($v, false))
417: ->thenInvalid('The supported class or interface "%s" does not exist.')
418: ->end()
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1433: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1431:
1432: // don't use ContainerBuilder::willBeAvailable() as these are not needed in production
>> 1433: if (interface_exists(Parser::class) && class_exists(PhpAstExtractor::class)) {
1434: $container->removeDefinition('translation.extractor.php');
1435: } else {
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 2255: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2253: $messageToSendersMapping = [];
2254: foreach ($config['routing'] as $message => $messageConfiguration) {
>> 2255: if ('*' !== $message && !class_exists($message) && !interface_exists($message, false) && !preg_match('/^(?:[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+\\\\)++\*$/', $message)) {
2256: if (str_contains($message, '*')) {
2257: throw new LogicException(sprintf('Invalid Messenger routing configuration: invalid namespace "%s" wildcard.', $message));
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Config\Resource\ClassExistenceResource.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 58: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
56: * @throws \ReflectionException when a parent class/interface/trait is not found
57: */
>> 58: public function isFresh(int $timestamp): bool
59: {
60: $loaded = class_exists($this->resource, false) || interface_exists($this->resource, false) || trait_exists($this->resource, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 149: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
147: }
148:
>> 149: if (class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false)) {
150: if (null !== $previous) {
151: throw $previous;
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\AutowirePass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 351: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
349:
350: if ($lazy) {
>> 351: if (!class_exists($type) && !interface_exists($type, false)) {
352: $definition->setClass('object');
353: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 714: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
712: $name = $m[3] ?? '';
713:
>> 714: if (class_exists($type, false) || interface_exists($type, false)) {
715: if (null !== $target && str_starts_with($target, '.'.$type.' $')
716: && (new Target($target = substr($target, \strlen($type) + 3)))->getParsedName() === $name
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\CheckDefinitionValidityPass.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 51: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
49: throw new RuntimeException(sprintf('Please add the class to service "%s" even if it is constructed by a factory since we might need to add method calls based on compile-time checks.', $id));
50: }
>> 51: if (class_exists($id) || interface_exists($id, false)) {
52: if (str_starts_with($id, '\\') && 1 < substr_count($id, '\\')) {
53: throw new RuntimeException(sprintf('The definition for "%s" has no class attribute, and appears to reference a class or interface. Please specify the class attribute explicitly or remove the leading backslash by renaming the service to "%s" to get rid of this error.', $id, substr($id, 1)));
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\CheckTypeDeclarationsPass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 94: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
92: return parent::processValue($value, $isRoot);
93: }
>> 94: if (!class_exists($class, false) && !interface_exists($class, false)) {
95: return parent::processValue($value, $isRoot);
96: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 226: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
224: if ($class && isset(self::BUILTIN_TYPES[strtolower($class)])) {
225: $class = strtolower($class);
>> 226: } elseif (!$class || (!$this->autoload && !class_exists($class, false) && !interface_exists($class, false))) {
227: return;
228: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\ResolveNamedArgumentsPass.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 66: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
64: }
65:
>> 66: if (isset($key[0]) && '$' !== $key[0] && !class_exists($key) && !interface_exists($key, false)) {
67: throw new InvalidArgumentException(sprintf('Invalid service "%s": did you forget to add the "$" prefix to argument "%s"?', $this->currentId, $key));
68: }
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\ContainerBuilder.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1505: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1503: }
1504:
>> 1505: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
1506: return false;
1507: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Dumper\PhpDumper.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 344: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
342: continue;
343: }
>> 344: if (!(class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false)) || (new \ReflectionClass($class))->isUserDefined()) {
345: $code[$options['class'].'.preload.php'] .= sprintf("\$classes[] = '%s';\n", $class);
346: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Dumper\Preloader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 80: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
78:
79: try {
>> 80: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
81: return;
82: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\LazyServiceDumper.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 45: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
43: }
44:
>> 45: if (!($class = $definition->getClass()) || !(class_exists($class) || interface_exists($class, false))) {
46: return false;
47: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 120: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
118: throw new InvalidArgumentException(sprintf('Invalid definition for service "%s": the "interface" attribute is missing on a "proxy" tag.', $id ?? $definition->getClass()));
119: }
>> 120: if (!interface_exists($tag['interface']) && !class_exists($tag['interface'], false)) {
121: throw new InvalidArgumentException(sprintf('Invalid definition for service "%s": several "proxy" tags found but "%s" is not an interface.', $id ?? $definition->getClass(), $tag['interface']));
122: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\ErrorHandler\DebugClassLoader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 314: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
312: }
313:
>> 314: private function checkClass(string $class, ?string $file = null): void
315: {
316: $exists = null === $file || class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 362: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
360: }
361:
>> 362: public function checkAnnotations(\ReflectionClass $refl, string $class): array
363: {
364: if (
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 1014: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
1012: $type = substr($type, 1);
1013:
>> 1014: if (!isset($useMap[$alias]) && (class_exists($c = $namespace.$alias) || interface_exists($c) || trait_exists($c))) {
1015: $useMap[$alias] = $c;
1016: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\ErrorHandler\ErrorEnhancer\ClassNotFoundErrorEnhancer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 179: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
177: }
178:
>> 179: private function classExists(string $class): bool
180: {
181: return class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Form\FormConfigBuilder.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 78: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
76: self::validateName($name);
77:
>> 78: if (null !== $dataClass && !class_exists($dataClass) && !interface_exists($dataClass, false)) {
79: throw new InvalidArgumentException(sprintf('Class "%s" not found. Is the "data_class" form option set correctly?', $dataClass));
80: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\HttpClient\HttpClient.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 34: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
32: public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface
33: {
>> 34: if ($amp = class_exists(ConnectionLimitingPool::class) && interface_exists(Promise::class)) {
35: if (!\extension_loaded('curl')) {
36: return new AmpHttpClient($defaultOptions, null, $maxHostConnections, $maxPendingPushes);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 37: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
35: class RegisterControllerArgumentLocatorsPass implements CompilerPassInterface
36: {
>> 37: public function process(ContainerBuilder $container): void
38: {
39: if (!$container->hasDefinition('argument_resolver.service') && !$container->hasDefinition('argument_resolver.not_tagged_controller')) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Messenger\DependencyInjection\MessengerPass.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 115: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
113: }
114:
>> 115: if ('*' !== $message && !class_exists($message) && !interface_exists($message, false)) {
116: $messageLocation = isset($tag['handles']) ? 'declared in your tag attribute "handles"' : sprintf('used as argument type in method "%s::%s()"', $r->getName(), $method);
117:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 65: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
63: public function hasMetadataFor(mixed $value): bool
64: {
>> 65: return \is_object($value) || (\is_string($value) && (class_exists($value) || interface_exists($value, false)));
66: }
67: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Mapping\Factory\ClassResolverTrait.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 33: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
31: {
32: if (\is_string($value)) {
>> 33: if (!class_exists($value) && !interface_exists($value, false)) {
34: throw new InvalidArgumentException(sprintf('The class or interface "%s" does not exist.', $value));
35: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 292: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
290: abstract protected function getAttributeValue(object $object, string $attribute, ?string $format = null, array $context = []): mixed;
291:
>> 292: public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
293: {
294: return class_exists($type) || (interface_exists($type, false) && null !== $this->classDiscriminatorResolver?->getMappingForClass($type));
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Serializer.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 327: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
325: * @param array $context Options available to the denormalizer
326: */
>> 327: private function getDenormalizer(mixed $data, string $class, ?string $format, array $context): ?DenormalizerInterface
328: {
329: if (!isset($this->denormalizerCache[$format][$class])) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\TypeInfo\TypeResolver\StringTypeResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 233: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
231: self::$classExistCache[$className] = false;
232:
>> 233: if (class_exists($className) || interface_exists($className)) {
234: self::$classExistCache[$className] = true;
235: } else {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 80: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
78: }
79:
>> 80: if (!class_exists($class) && !interface_exists($class, false)) {
81: throw new NoSuchMetadataException(sprintf('The class or interface "%s" does not exist.', $class));
82: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 133: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
131: }
132:
>> 133: public function hasMetadataFor(mixed $value): bool
134: {
135: if (!\is_object($value) && !\is_string($value)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\VarDumper\Caster\ReflectionCaster.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 213: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
211: $v = $a[$prefix.'returnType'];
212: $v = $v instanceof \ReflectionNamedType ? $v->getName() : (string) $v;
>> 213: $a[$prefix.'returnType'] = new ClassStub($a[$prefix.'returnType'] instanceof \ReflectionNamedType && $a[$prefix.'returnType']->allowsNull() && !\in_array($v, ['mixed', 'null'], true) ? '?'.$v : $v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']);
214: }
215: if (isset($a[$prefix.'class'])) {
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 293: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
291: if (isset($a[$prefix.'typeHint'])) {
292: $v = $a[$prefix.'typeHint'];
>> 293: $a[$prefix.'typeHint'] = new ClassStub($v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']);
294: } else {
295: unset($a[$prefix.'allowsNull']);
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\VarExporter\Internal\Hydrator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 92: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
90: }
91:
>> 92: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
93: throw new ClassNotFoundException($class);
94: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 191: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
189: }
190:
>> 191: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
192: throw new ClassNotFoundException($class);
193: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\symfony--v7.1.5\src\Symfony\Component\VarExporter\Internal\Registry.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 66: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
64: public static function getClassReflector($class, $instantiableWithoutConstructor = false, $cloneable = null)
65: {
>> 66: if (!($isClass = class_exists($class)) && !interface_exists($class, false) && !trait_exists($class, false)) {
67: throw new ClassNotFoundException($class);
68: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\type-info--v7.1.5\TypeResolver\StringTypeResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 233: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
231: self::$classExistCache[$className] = false;
232:
>> 233: if (class_exists($className) || interface_exists($className)) {
234: self::$classExistCache[$className] = true;
235: } else {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\ux-turbo--v2.20.0\src\DependencyInjection\Configuration.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 26: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
24: final class Configuration implements ConfigurationInterface
25: {
>> 26: public function getConfigTreeBuilder(): TreeBuilder
27: {
28: $treeBuilder = new TreeBuilder('turbo');
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\ux-turbo--v2.20.0\src\DependencyInjection\TurboExtension.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 86: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
84: }
85:
>> 86: if (!class_exists(DoctrineBundle::class) || !interface_exists(EntityManagerInterface::class)) {
87: throw new InvalidConfigurationException('You cannot use the Doctrine ORM integration as the Doctrine bundle is not installed. Try running "composer require symfony/orm-pack".');
88: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\validator--v7.1.5\Mapping\Factory\LazyLoadingMetadataFactory.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 80: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
78: }
79:
>> 80: if (!class_exists($class) && !interface_exists($class, false)) {
81: throw new NoSuchMetadataException(sprintf('The class or interface "%s" does not exist.', $class));
82: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 133: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
131: }
132:
>> 133: public function hasMetadataFor(mixed $value): bool
134: {
135: if (!\is_object($value) && !\is_string($value)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\var-dumper--v7.1.5\Caster\ReflectionCaster.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 213: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
211: $v = $a[$prefix.'returnType'];
212: $v = $v instanceof \ReflectionNamedType ? $v->getName() : (string) $v;
>> 213: $a[$prefix.'returnType'] = new ClassStub($a[$prefix.'returnType'] instanceof \ReflectionNamedType && $a[$prefix.'returnType']->allowsNull() && !\in_array($v, ['mixed', 'null'], true) ? '?'.$v : $v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']);
214: }
215: if (isset($a[$prefix.'class'])) {
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 293: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
291: if (isset($a[$prefix.'typeHint'])) {
292: $v = $a[$prefix.'typeHint'];
>> 293: $a[$prefix.'typeHint'] = new ClassStub($v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']);
294: } else {
295: unset($a[$prefix.'allowsNull']);
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\var-exporter--v7.1.2\Internal\Hydrator.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 92: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
90: }
91:
>> 92: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
93: throw new ClassNotFoundException($class);
94: }
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 191: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
189: }
190:
>> 191: if (!class_exists($class) && !interface_exists($class, false) && !trait_exists($class, false)) {
192: throw new ClassNotFoundException($class);
193: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symfony\var-exporter--v7.1.2\Internal\Registry.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 66: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
64: public static function getClassReflector($class, $instantiableWithoutConstructor = false, $cloneable = null)
65: {
>> 66: if (!($isClass = class_exists($class)) && !interface_exists($class, false) && !trait_exists($class, false)) {
67: throw new ClassNotFoundException($class);
68: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symplify\easy-coding-standard--12.3.5\src\Skipper\SkipCriteriaResolver\SkippedClassResolver.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 32: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
30: continue;
31: }
>> 32: if (!\class_exists($key) && !\interface_exists($key)) {
33: continue;
34: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: symplify\easy-coding-standard--12.3.5\src\Skipper\SkipVoter\ClassSkipVoter.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 29: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
27: * @param string|object $element
28: */
>> 29: public function match($element) : bool
30: {
31: if (\is_object($element)) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: ta-tikoma\phpunit-architecture-test--0.8.4\src\Asserts\Dependencies\ObjectDependenciesDescription.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 44: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists(), enum_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-trait-enumexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
42: return match (true) {
43: function_exists($nameAsString) => true,
>> 44: enum_exists($nameAsString) => true,
45: class_exists($nameAsString) => true,
46: interface_exists($nameAsString) => true,
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: tbachert\spi--v1.0.2\src\ServiceLoader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 118: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
116: * @internal
117: */
>> 118: public static function serviceAvailable(string $service): bool {
119: return interface_exists($service) || class_exists($service);
120: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: thecodingmachine\graphqlite--v7.0.0\src\Annotations\ExtendType.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 38: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
36: $className = isset($attributes['class']) ? ltrim($attributes['class'], '\\') : null;
37: $className = $className ?? $class;
>> 38: if ($className !== null && ! class_exists($className) && ! interface_exists($className)) {
39: throw ClassNotFoundException::couldNotFindClass($className);
40: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: thecodingmachine\graphqlite--v7.0.0\src\Annotations\Type.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 98: WARNING Detected use of combination of class_exists(), interface_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
96: }
97:
>> 98: public function setClass(string $class): void
99: {
100: $class = ltrim($class, '\\');
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: thecodingmachine\graphqlite--v7.0.0\src\GlobControllerQueryProvider.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 99: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
97: $instances = [];
98: foreach ((clone $this->finder)->inNamespace($this->namespace) as $className => $refClass) {
>> 99: if (! class_exists($className) && ! interface_exists($className)) {
100: continue;
101: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: thecodingmachine\graphqlite--v7.0.0\src\Mappers\StaticClassListTypeMapper.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 81: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
79: $this->classes = [];
80: foreach ($this->classList as $className) {
>> 81: if (! class_exists($className) && ! interface_exists($className)) {
82: throw new GraphQLRuntimeException('Could not find class "' . $className . '"');
83: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: thecodingmachine\graphqlite--v7.0.0\src\Utils\Namespaces\NS.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 62: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
60: foreach ($classes as $class) {
61: if (
>> 62: ! class_exists($class, false) &&
63: ! interface_exists($class, false) &&
64: ! trait_exists($class, false)
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: tightenco\collect--v9.52.7\src\Collect\Support\alias.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 19: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
17:
18: foreach ($aliases as $tighten => $illuminate) {
>> 19: if (! class_exists($illuminate) && ! interface_exists($illuminate) && ! trait_exists($illuminate)) {
20: # echo "Aliasing {$tighten} to {$illuminate}.\n";
21: class_alias($tighten, $illuminate);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: tracy\tracy--v2.10.8\src\Tracy\BlueScreen\BlueScreen.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 247: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
245: $class = $m[2];
246: if (
>> 247: !class_exists($class, false) && !interface_exists($class, false) && !trait_exists($class, false)
248: && ($file = Helpers::guessClassFile($class)) && !@is_file($file) // @ - may trigger error
249: ) {
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 394: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
392: if (isset($m[2]) && method_exists($m[1], $m[2])) {
393: $r = new \ReflectionMethod($m[1], $m[2]);
>> 394: } elseif (class_exists($m[1], false) || interface_exists($m[1], false)) {
395: $r = new \ReflectionClass($m[1]);
396: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: tracy\tracy--v2.10.8\src\Tracy\Helpers.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 175: WARNING Detected use of combination of class_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
173: if (!is_callable($arg, syntax_only: true)) {
174: // do nothing
>> 175: } elseif (is_array($arg) && is_string($arg[0]) && !class_exists($arg[0]) && !trait_exists($arg[0])) {
176: $message = str_replace($m[2], "but class '$arg[0]' does not exist", $message);
177: } elseif (is_array($arg) && !method_exists($arg[0], $arg[1])) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: typo3\class-alias-loader--v1.1.4\src\ClassAliasLoader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 196: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within same function body
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
194: * @return bool
195: */
>> 196: protected function classOrInterfaceExists($className)
197: {
198: $classOrInterfaceExists = class_exists($className, false) || interface_exists($className, false);
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: typo3\cms-core--v13.3.0\Classes\DependencyInjection\ServiceProviderCompilationPass.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 222: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
220: }
221:
>> 222: if (class_exists($serviceName, true) || interface_exists($serviceName, true)) {
223: return $serviceName;
224: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: typo3\cms-extbase--v13.3.0\Classes\Property\TypeConverterRegistry.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 100: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
98: protected function findFirstEligibleTypeConverterInObjectHierarchy(string $sourceType, string $targetClass): ?TypeConverterInterface
99: {
>> 100: if (!class_exists($targetClass) && !interface_exists($targetClass)) {
101: throw new Exception\InvalidTargetException('Could not find a suitable type converter for "' . $targetClass . '" because no such class or interface exists.', 1297948764);
102: }
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: typo3\cms-extbase--v13.3.0\Classes\Utility\TypeHandlingUtility.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 132: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
130: }
131:
>> 132: if (class_exists($type) === true || interface_exists($type) === true) {
133: foreach (self::$collectionTypes as $collectionType) {
134: if (is_subclass_of($type, $collectionType) === true) {
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: vonage\nexmo-bridge--0.1.2\src\Autoloader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 158: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
156:
157: $loaded[$alias] = true;
>> 158: if (class_exists($alias) || interface_exists($alias) || trait_exists($alias)) {
159: class_alias($alias, $class);
160: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: yiisoft\yii2--2.0.51\BaseYii.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 295: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound)
------------------------------------------------------------------------------------------------------------------------------------------------------
293: include $classFile;
294:
>> 295: if (YII_DEBUG && !class_exists($className, false) && !interface_exists($className, false) && !trait_exists($className, false)) {
296: throw new UnknownClassException("Unable to find '$className' in file: $classFile. Namespace missing?");
297: }
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: zenstruck\assert--v1.5.0\src\Assert\Assertion\ThrowsAssertion.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 63: WARNING Detected use of combination of class_exists(), interface_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
61: }
62:
>> 63: if (!\class_exists($expectedException) && !\interface_exists($expectedException)) {
64: throw new \InvalidArgumentException(\sprintf('Expected exception must be an object or interface, "%s" given.', $expectedException));
65: }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: zircote\swagger-php--4.10.7\src\Analysers\ReflectionAnalyser.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------
LINE 88: WARNING Detected use of combination of class_exists(), interface_exists(), trait_exists(), enum_exists() within a set of parentheses
(PHPCompatibility.RFC.OOExists.class-interface-trait-enumexistsInParenthesesFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
86: protected function analyzeFqdn(string $fqdn, Analysis $analysis, array $details): Analysis
87: {
>> 88: if (!class_exists($fqdn) && !interface_exists($fqdn) && !trait_exists($fqdn) && (!function_exists('enum_exists') || !enum_exists($fqdn))) {
89: $analysis->context->logger->warning('Skipping unknown ' . $fqdn);
90:
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Time: 31 mins, 33.76 secs; Memory: 1520MB
PHP CODE SNIFFER REPORT SUMMARY
----------------------------------------------------------------------------------------------------------------------------------------------------
FILE ERRORS WARNINGS
----------------------------------------------------------------------------------------------------------------------------------------------------
antecedent\patchwork--2.2.0\src\Utils.php 0 1
api-platform\core--v4.0.3\src\Metadata\Property\Factory\ExtractorPropertyNameCollectionFactory.php 0 1
api-platform\core--v4.0.3\src\Metadata\Resource\Factory\ExtractorResourceMetadataCollectionFactory.php 0 1
api-platform\core--v4.0.3\src\Symfony\Bundle\DependencyInjection\ApiPlatformExtension.php 0 1
api-platform\core--v4.0.3\src\Symfony\Bundle\DependencyInjection\Configuration.php 0 2
api-platform\core--v4.0.3\src\Symfony\Bundle\DependencyInjection\Compiler\TestClientPass.php 0 1
async-aws\async-aws-bundle--1.12.2\src\DependencyInjection\AsyncAwsExtension.php 0 1
barryvdh\laravel-ide-helper--v3.1.0\src\Alias.php 0 3
barryvdh\laravel-ide-helper--v3.1.0\src\Console\ModelsCommand.php 0 2
codeception\codeception--5.1.2\src\Codeception\Lib\ModuleContainer.php 0 1
codeception\stub--4.1.3\RoboFile.php 0 1
consolidation\robo--5.0.0\src\Task\Development\GenerateMarkdownDoc.php 0 1
cuyz\valinor--1.13.0\src\Utility\Reflection\Reflection.php 0 1
dedoc\scramble--v0.11.16\src\Infer\Services\FileNameResolver.php 0 1
doctrine\annotations--2.0.2\lib\Doctrine\Common\Annotations\DocParser.php 0 2
doctrine\common--3.4.4\src\ClassLoader.php 0 1
doctrine\common--3.4.4\src\Proxy\ProxyGenerator.php 0 1
doctrine\mongodb-odm--2.9.0\lib\Doctrine\ODM\MongoDB\Mapping\ClassMetadata.php 0 2
doctrine\mongodb-odm--2.9.0\lib\Doctrine\ODM\MongoDB\PersistentCollection\DefaultPersistentCollectionGenerator.php 0 1
doctrine\mongodb-odm-bundle--5.0.1\src\DependencyInjection\DoctrineMongoDBExtension.php 0 1
doctrine\orm--3.2.2\src\Mapping\ClassMetadata.php 0 2
doctrine\orm--3.2.2\src\Query\Parser.php 0 1
dragon-code\support--6.15.0\src\Instances\Instance.php 0 2
drupal\core--11.0.5\lib\Drupal\Core\Theme\Component\ComponentValidator.php 0 1
drupal\core--11.0.5\modules\serialization\src\Normalizer\NormalizerBase.php 0 1
e0ipso\shaper--1.2.4\src\Validator\InstanceofValidator.php 0 1
enlightn\enlightn--v2.10.0\src\Analyzers\Security\LoginThrottlingAnalyzer.php 0 1
friendsofphp\php-cs-fixer--v3.64.0\src\Fixer\LanguageConstruct\ClassKeywordFixer.php 0 1
gedmo\doctrine-extensions--v3.16.1\src\Mapping\Driver\AbstractAnnotationDriver.php 0 2
gedmo\doctrine-extensions--v3.16.1\src\Mapping\Driver\File.php 0 2
hoa\consistency--2.17.08.29\Source\Consistency.php 0 1
illuminate\support--v11.26.0\Reflector.php 0 1
jlevers\selling-partner-api--v7.2.0\src\Traits\Deserializes.php 0 1
jms\serializer--3.30.0\src\GraphNavigator\SerializationGraphNavigator.php 0 1
jms\serializer--3.30.0\src\Metadata\Driver\TypedPropertiesDriver.php 0 1
jms\serializer--3.30.0\src\Metadata\Driver\DocBlockDriver\DocBlockTypeResolver.php 0 1
johnpbloch\wordpress-core--6.6.2\wp-admin\includes\update-core.php 0 1
laminas\laminas-config--3.9.0\src\Writer\PhpArray.php 0 1
laminas\laminas-di--3.14.0\src\Config.php 0 2
laminas\laminas-di--3.14.0\src\Resolver\DependencyResolver.php 0 1
laminas\laminas-servicemanager--4.2.0\src\Tool\AheadOfTimeFactoryCompiler\AheadOfTimeFactoryCompiler.php 0 1
laminas\laminas-servicemanager--4.2.0\src\Tool\ConstructorParameterResolver\ConstructorParameterResolver.php 0 1
laminas\laminas-zendframework-bridge--1.8.0\src\Autoloader.php 0 1
laravel\framework--v11.26.0\src\Illuminate\Support\Reflector.php 0 1
league\csv--9.16.0\src\Serializer\CallbackCasting.php 0 1
league\csv--9.16.0\src\Serializer\CastToDate.php 0 1
league\csv--9.16.0\src\Serializer\Type.php 0 1
livewire\volt--v1.6.5\functions.php 0 1
magento\magento2-functional-testing-framework--4.8.2\src\Magento\FunctionalTestingFramework\ObjectManager\Relations\Runtime.php 0 1
magento\zend-loader--1.16.1\library\Zend\Loader.php 0 2
magento\zendframework1--1.15.1\library\Zend\Loader.php 0 2
mglaman\phpstan-drupal--1.3.1\src\Drupal\DrupalAutoloader.php 0 1
mockery\mockery--1.6.12\library\Mockery\Container.php 0 2
mockery\mockery--1.6.12\library\Mockery\Matcher\Type.php 0 1
mustache\mustache--v2.14.2\bin\build_bootstrap.php 0 1
nelmio\api-doc-bundle--v4.32.0\src\DependencyInjection\NelmioApiDocExtension.php 0 1
nelmio\api-doc-bundle--v4.32.0\src\ModelDescriber\ObjectModelDescriber.php 0 1
nette\di--v3.2.3\src\DI\Autowiring.php 0 2
nette\di--v3.2.3\src\DI\Container.php 0 1
nette\di--v3.2.3\src\DI\Helpers.php 0 2
nette\di--v3.2.3\src\DI\Resolver.php 0 2
nette\di--v3.2.3\src\DI\Definitions\Definition.php 0 1
nette\di--v3.2.3\src\DI\Extensions\DecoratorExtension.php 0 1
nette\di--v3.2.3\src\DI\Extensions\SearchExtension.php 0 1
nette\utils--v4.0.5\src\Utils\Validators.php 0 1
ondrejmirtes\better-reflection--6.42.0.9\src\SourceLocator\SourceStubber\ReflectionSourceStubber.php 0 2
palantirnet\drupal-rector--0.20.3\config\drupal-phpunit-bootstrap-file.php 0 1
payum\core--1.7.5\ApiAwareTrait.php 0 1
pestphp\pest--v3.2.5\src\Expectation.php 0 1
pestphp\pest--v3.2.5\src\PendingCalls\TestCall.php 0 1
pestphp\pest-plugin-arch--v3.0.0\src\PendingArchExpectation.php 0 1
pestphp\pest-plugin-arch--v3.0.0\src\Factories\ObjectDescriptionFactory.php 0 1
phake\phake--v4.5.0\src\Phake\Facade.php 0 1
phan\phan--5.4.5\tool\phan_repl_helpers.php 0 1
php-di\php-di--7.0.7\src\Definition\ObjectDefinition.php 0 1
php-di\php-di--7.0.7\src\Definition\Dumper\ObjectDefinitionDumper.php 0 1
php-di\php-di--7.0.7\src\Definition\Source\AttributeBasedAutowiring.php 0 2
php-di\php-di--7.0.7\src\Definition\Source\ReflectionBasedAutowiring.php 0 1
php-di\phpdoc-reader--2.2.1\src\PhpDocReader\PhpDocReader.php 0 1
php-http\discovery--1.20.0\src\ClassDiscovery.php 0 1
php-mock\php-mock-phpunit--2.10.0\autoload.php 0 1
phpspec\phpspec--7.5.0\src\PhpSpec\Process\Prerequisites\SuitePrerequisites.php 0 1
phpspec\prophecy--v1.19.0\src\Prophecy\Argument\Token\TypeToken.php 0 1
phpspec\prophecy--v1.19.0\src\Prophecy\Promise\ThrowPromise.php 0 1
phpspec\prophecy--v1.19.0\src\Prophecy\Prophecy\MethodProphecy.php 0 2
phpunit\phpunit--11.4.0\src\Framework\Assert.php 0 2
phpunit\phpunit--11.4.0\src\Framework\MockObject\Generator\Generator.php 0 3
phpunit\phpunit--11.4.0\src\Metadata\Api\CodeCoverage.php 0 2
phpunit\phpunit-mock-objects--6.1.2\src\Generator.php 0 3
psy\psysh--v0.12.4\src\Command\ReflectingCommand.php 0 1
psy\psysh--v0.12.4\src\Util\Mirror.php 0 1
rector\rector--1.2.6\src\Skipper\SkipCriteriaResolver\SkippedClassResolver.php 0 1
respect\stringifier--2.0.0\src\Stringifiers\DeclaredStringifier.php 0 1
roots\wordpress-no-content--6.6.2\wp-admin\includes\update-core.php 0 1
sebastian\code-unit-reverse-lookup--4.0.1\src\Wizard.php 0 1
sentry\sentry-symfony--5.0.1\src\aliases.php 0 1
shardj\zf1-future--1.24.0\library\Zend\Loader.php 0 2
shopware\core--v6.6.6.1\Framework\Migration\MigrationCollection.php 0 1
shopware\core--v6.6.6.1\Framework\Store\Services\ExtensionLoader.php 0 1
sonata-project\admin-bundle--4.31.0\src\DependencyInjection\Compiler\ExtensionCompilerPass.php 0 1
spatie\laravel-data--4.10.0\src\Support\Types\Storage\AcceptedTypesStorage.php 0 1
spatie\typescript-transformer--2.4.0\src\TypeScriptTransformerConfig.php 0 1
spiral\core--3.14.5\src\Internal\Factory.php 0 1
spiral\core--3.14.5\src\Internal\Config\StateBinder.php 0 1
swoole\ide-helper--6.0.0-alpha\src\swoole_library\src\core\Server\Admin.php 0 2
symfony\config--v7.1.1\Resource\ClassExistenceResource.php 0 2
symfony\debug--v4.4.44\DebugClassLoader.php 0 2
symfony\debug--v4.4.44\FatalErrorHandler\ClassNotFoundFatalErrorHandler.php 0 1
symfony\debug-bundle--v7.1.1\Resources\config\services.php 0 1
symfony\dependency-injection--v7.1.5\ContainerBuilder.php 0 1
symfony\dependency-injection--v7.1.5\Compiler\AutowirePass.php 0 2
symfony\dependency-injection--v7.1.5\Compiler\CheckDefinitionValidityPass.php 0 1
symfony\dependency-injection--v7.1.5\Compiler\CheckTypeDeclarationsPass.php 0 2
symfony\dependency-injection--v7.1.5\Compiler\ResolveNamedArgumentsPass.php 0 1
symfony\dependency-injection--v7.1.5\Dumper\PhpDumper.php 0 1
symfony\dependency-injection--v7.1.5\Dumper\Preloader.php 0 1
symfony\dependency-injection--v7.1.5\LazyProxy\PhpDumper\LazyServiceDumper.php 0 2
symfony\error-handler--v7.1.3\DebugClassLoader.php 0 3
symfony\error-handler--v7.1.3\ErrorEnhancer\ClassNotFoundErrorEnhancer.php 0 1
symfony\form--v7.1.5\FormConfigBuilder.php 0 1
symfony\framework-bundle--v7.1.5\Command\ContainerDebugCommand.php 0 1
symfony\framework-bundle--v7.1.5\DependencyInjection\Configuration.php 0 1
symfony\framework-bundle--v7.1.5\DependencyInjection\FrameworkExtension.php 0 2
symfony\http-client--v7.1.5\HttpClient.php 0 1
symfony\http-kernel--v7.1.5\DependencyInjection\RegisterControllerArgumentLocatorsPass.php 0 1
symfony\maker-bundle--v1.61.0\src\DependencyBuilder.php 0 1
symfony\maker-bundle--v1.61.0\src\Maker\MakeTest.php 0 1
symfony\maker-bundle--v1.61.0\src\Util\ClassSourceManipulator.php 0 1
symfony\messenger--v7.1.5\DependencyInjection\MessengerPass.php 0 1
symfony\proxy-manager-bridge--v6.4.8\Internal\ProxyGenerator.php 0 2
symfony\serializer--v7.1.5\Serializer.php 0 1
symfony\serializer--v7.1.5\Mapping\Factory\ClassMetadataFactory.php 0 1
symfony\serializer--v7.1.5\Mapping\Factory\ClassResolverTrait.php 0 1
symfony\serializer--v7.1.5\Normalizer\AbstractObjectNormalizer.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Bundle\DebugBundle\Resources\config\services.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Bundle\FrameworkBundle\Command\ContainerDebugCommand.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\Config\Resource\ClassExistenceResource.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\ContainerBuilder.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\AutowirePass.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\CheckDefinitionValidityPass.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\CheckTypeDeclarationsPass.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Compiler\ResolveNamedArgumentsPass.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Dumper\PhpDumper.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\Dumper\Preloader.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\LazyServiceDumper.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\ErrorHandler\DebugClassLoader.php 0 3
symfony\symfony--v7.1.5\src\Symfony\Component\ErrorHandler\ErrorEnhancer\ClassNotFoundErrorEnhancer.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\Form\FormConfigBuilder.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\HttpClient\HttpClient.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\Messenger\DependencyInjection\MessengerPass.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Serializer.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Mapping\Factory\ClassResolverTrait.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\TypeInfo\TypeResolver\StringTypeResolver.php 0 1
symfony\symfony--v7.1.5\src\Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\VarDumper\Caster\ReflectionCaster.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\VarExporter\Internal\Hydrator.php 0 2
symfony\symfony--v7.1.5\src\Symfony\Component\VarExporter\Internal\Registry.php 0 1
symfony\type-info--v7.1.5\TypeResolver\StringTypeResolver.php 0 1
symfony\ux-turbo--v2.20.0\src\DependencyInjection\Configuration.php 0 1
symfony\ux-turbo--v2.20.0\src\DependencyInjection\TurboExtension.php 0 1
symfony\validator--v7.1.5\Mapping\Factory\LazyLoadingMetadataFactory.php 0 2
symfony\var-dumper--v7.1.5\Caster\ReflectionCaster.php 0 2
symfony\var-exporter--v7.1.2\Internal\Hydrator.php 0 2
symfony\var-exporter--v7.1.2\Internal\Registry.php 0 1
symplify\easy-coding-standard--12.3.5\src\Skipper\SkipCriteriaResolver\SkippedClassResolver.php 0 1
symplify\easy-coding-standard--12.3.5\src\Skipper\SkipVoter\ClassSkipVoter.php 0 1
ta-tikoma\phpunit-architecture-test--0.8.4\src\Asserts\Dependencies\ObjectDependenciesDescription.php 0 1
tbachert\spi--v1.0.2\src\ServiceLoader.php 0 1
thecodingmachine\graphqlite--v7.0.0\src\GlobControllerQueryProvider.php 0 1
thecodingmachine\graphqlite--v7.0.0\src\Annotations\ExtendType.php 0 1
thecodingmachine\graphqlite--v7.0.0\src\Annotations\Type.php 0 1
thecodingmachine\graphqlite--v7.0.0\src\Mappers\StaticClassListTypeMapper.php 0 1
thecodingmachine\graphqlite--v7.0.0\src\Utils\Namespaces\NS.php 0 1
tightenco\collect--v9.52.7\src\Collect\Support\alias.php 0 1
tracy\tracy--v2.10.8\src\Tracy\Helpers.php 0 1
tracy\tracy--v2.10.8\src\Tracy\BlueScreen\BlueScreen.php 0 2
typo3\class-alias-loader--v1.1.4\src\ClassAliasLoader.php 0 1
typo3\cms-core--v13.3.0\Classes\DependencyInjection\ServiceProviderCompilationPass.php 0 1
typo3\cms-extbase--v13.3.0\Classes\Property\TypeConverterRegistry.php 0 1
typo3\cms-extbase--v13.3.0\Classes\Utility\TypeHandlingUtility.php 0 1
vonage\nexmo-bridge--0.1.2\src\Autoloader.php 0 1
yiisoft\yii2--2.0.51\BaseYii.php 0 1
zenstruck\assert--v1.5.0\src\Assert\Assertion\ThrowsAssertion.php 0 1
zircote\swagger-php--4.10.7\src\Analysers\ReflectionAnalyser.php 0 1
----------------------------------------------------------------------------------------------------------------------------------------------------
A TOTAL OF 0 ERRORS AND 240 WARNINGS WERE FOUND IN 189 FILES
----------------------------------------------------------------------------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
--------------------------------------------------------------------------------------------
SOURCE COUNT
--------------------------------------------------------------------------------------------
PHPCompatibility.RFC.OOExists.class-interfaceexistsInParenthesesFound 131
PHPCompatibility.RFC.OOExists.class-interface-traitexistsInParenthesesFound 36
PHPCompatibility.RFC.OOExists.class-interfaceexistsInSameFunctionFound 32
PHPCompatibility.RFC.OOExists.class-interface-traitexistsInSameFunctionFound 17
PHPCompatibility.RFC.OOExists.class-traitexistsInParenthesesFound 8
PHPCompatibility.RFC.OOExists.class-enumexistsInSameFunctionFound 4
PHPCompatibility.RFC.OOExists.class-interface-enumexistsInSameFunctionFound 3
PHPCompatibility.RFC.OOExists.class-interface-trait-enumexistsInParenthesesFound 3
PHPCompatibility.RFC.OOExists.class-interface-trait-enumexistsInSameFunctionFound 2
PHPCompatibility.RFC.OOExists.class-traitexistsInSameFunctionFound 2
PHPCompatibility.RFC.OOExists.class-enumexistsInParenthesesFound 1
PHPCompatibility.RFC.OOExists.interface-traitexistsInParenthesesFound 1
--------------------------------------------------------------------------------------------
A TOTAL OF 240 SNIFF VIOLATIONS WERE FOUND IN 12 SOURCES
--------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment