interface ReflectionProviderInterface (View source)

Interface for providing reflection data to validator checks.

This abstraction allows validator checks to be testable by accepting mock reflection data, while still using real reflection data in production.

Methods

getReflection(string $phpVersion)

Get reflection data for a specific PHP version.

Details

StubDataQueryInterface getReflection(string $phpVersion)

Get reflection data for a specific PHP version.

Parameters

string $phpVersion

The PHP version (e.g., '8.0', '8.1')

Return Value

StubDataQueryInterface

The reflection data storage