Skip to content

Drop redundant method_exists checks #1180

Drop redundant method_exists checks

Drop redundant method_exists checks #1180

Triggered via pull request November 28, 2025 22:37
Status Failure
Total duration 32s
Artifacts

static-analysis.yml

on: pull_request
static-analysis
30s
static-analysis
Fit to window
Zoom out
Zoom in

Annotations

6 errors
static-analysis
Process completed with exit code 1.
static-analysis: src/Type/TypeInfoTypeResolver.php#L0
Ignored error pattern #^Call to function method_exists\(\) with ReflectionProperty and 'isPromoted' will always evaluate to true\.$# (function.alreadyNarrowedType) in path /home/runner/work/swagger-php/swagger-php/src/Type/TypeInfoTypeResolver.php was not matched in reported errors.
static-analysis: src/Type/LegacyTypeResolver.php#L0
Ignored error pattern #^Call to function method_exists\(\) with ReflectionProperty and 'isPromoted' will always evaluate to true\.$# (function.alreadyNarrowedType) in path /home/runner/work/swagger-php/swagger-php/src/Type/LegacyTypeResolver.php was not matched in reported errors.
static-analysis: src/Analysers/ReflectionAnalyser.php#L0
Ignored error pattern #^Call to function method_exists\(\) with ReflectionClass\<object\> and 'isEnum' will always evaluate to true\.$# (function.alreadyNarrowedType) in path /home/runner/work/swagger-php/swagger-php/src/Analysers/ReflectionAnalyser.php was not matched in reported errors.
static-analysis: src/Analysers/AttributeAnnotationFactory.php#L52
Call to an undefined method Reflector::getAttributes().
static-analysis: src/Analysers/AttributeAnnotationFactory.php#L0
Ignored error pattern #^Call to function method_exists\(\) with ReflectionProperty and 'isPromoted' will always evaluate to true\.$# (function.alreadyNarrowedType) in path /home/runner/work/swagger-php/swagger-php/src/Analysers/AttributeAnnotationFactory.php was not matched in reported errors.