ProblemDefinition
class ProblemDefinition (View source)
Immutable value object representing a known validation problem.
Defines a specific entity (function/method/class) that has known issues with validation for documented reasons.
When $entityIds is non-empty it lists the specific sub-entity identifiers (e.g., individual constants like '\PDO::PGSQL_ASSOC') this problem covers. $entityId then serves as a grouping label (e.g., '\PDO'). When $entityIds is empty, $entityId is the single entity identifier.
Methods
No description
Check if this problem affects a specific check for a given PHP version.
Check if this problem applies to a given PHP version.
Details
__construct(EntityType $entityType, string $entityId, ProblemType $type, array $affectedChecks, PhpVersionRange $versionRange, string $reason, array $entityIds = [])
No description
bool
affects(CheckType $check, string $phpVersion)
Check if this problem affects a specific check for a given PHP version.
bool
appliesToVersion(string $phpVersion)
Check if this problem applies to a given PHP version.