class StubsForbiddenTypeHintsTest extends AbstractBaseStubsTestCase (View source)

Properties

protected string $emptyDataSetMessage from  AbstractBaseStubsTestCase

Methods

static float|bool|int|string|null
getStringRepresentationOfDefaultParameterValue(mixed $defaultValue, PHPInterface|null $contextClass = null)

No description

static string
getParameterRepresentation(PHPFunction $function)

No description

static array
getDuplicatedFunctions(array $filtered)

No description

static array
getAllDuplicatesOfFunction(string|null $name)

No description

static bool
isReflectionTypesMatchSignature(array $reflectionTypes, array $typesFromSignature)

No description

static bool
isReflectionTypesExistInAttributes(array $reflectionTypes, array $typesFromAttribute)

No description

static string
getStringRepresentationOfTypeHintsFromAttributes(array $typesFromAttribute)

No description

static 
convertNullableTypesToUnion(array $typesToProcess, array $resultArray)

No description

PHPClass|null
getClassLikeFromStubs(string $classId, bool $shouldSuiteCurrentPHPVersion = true)

No description

static void
setUpBeforeClass()

No description

testClassMethodDoesNotHaveNullableReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testInterfaceMethodDoesNotHaveNullableReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testEnumMethodDoesNotHaveNullableReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testClassMethodDoesNotHaveUnionTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testInterfaceMethodDoesNotHaveUnionTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testEnumMethodDoesNotHaveUnionTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testClassMethodDoesNotHaveNullableTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testInterfaceMethodDoesNotHaveNullableTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testEnumMethodDoesNotHaveNullableTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testClassMethodDoesNotHaveUnionReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testInterfaceMethodDoesNotHaveUnionReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testEnumMethodDoesNotHaveUnionReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testClassMethodDoesNotHaveScalarTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testInterfaceMethodDoesNotHaveScalarTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testEnumMethodDoesNotHaveScalarTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

testClassMethodDoesNotHaveReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testInterfaceMethodDoesNotHaveReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

testEnumMethodDoesNotHaveReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Details

static float|bool|int|string|null getStringRepresentationOfDefaultParameterValue(mixed $defaultValue, PHPInterface|null $contextClass = null)

No description

Parameters

mixed $defaultValue
PHPInterface|null $contextClass

Return Value

float|bool|int|string|null

static string getParameterRepresentation(PHPFunction $function)

No description

Parameters

PHPFunction $function

Return Value

string

static protected array getDuplicatedFunctions(array $filtered)

No description

Parameters

array $filtered

Return Value

array

static protected array getAllDuplicatesOfFunction(string|null $name)

No description

Parameters

string|null $name

Return Value

array

static bool isReflectionTypesMatchSignature(array $reflectionTypes, array $typesFromSignature)

No description

Parameters

array $reflectionTypes
array $typesFromSignature

Return Value

bool

static bool isReflectionTypesExistInAttributes(array $reflectionTypes, array $typesFromAttribute)

No description

Parameters

array $reflectionTypes
array $typesFromAttribute

Return Value

bool

static string getStringRepresentationOfTypeHintsFromAttributes(array $typesFromAttribute)

No description

Parameters

array $typesFromAttribute

Return Value

string

static convertNullableTypesToUnion(array $typesToProcess, array $resultArray)

No description

Parameters

array $typesToProcess
array $resultArray

PHPClass|null getClassLikeFromStubs(string $classId, bool $shouldSuiteCurrentPHPVersion = true)

No description

Parameters

string $classId
bool $shouldSuiteCurrentPHPVersion

Return Value

PHPClass|null

static void setUpBeforeClass()

No description

Return Value

void

testClassMethodDoesNotHaveNullableReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testInterfaceMethodDoesNotHaveNullableReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testEnumMethodDoesNotHaveNullableReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testClassMethodDoesNotHaveUnionTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testInterfaceMethodDoesNotHaveUnionTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testEnumMethodDoesNotHaveUnionTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testClassMethodDoesNotHaveNullableTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testInterfaceMethodDoesNotHaveNullableTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testEnumMethodDoesNotHaveNullableTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testClassMethodDoesNotHaveUnionReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testInterfaceMethodDoesNotHaveUnionReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testEnumMethodDoesNotHaveUnionReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testClassMethodDoesNotHaveScalarTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testInterfaceMethodDoesNotHaveScalarTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testEnumMethodDoesNotHaveScalarTypeHintsInParameters(string|null $classHash, string|null $methodHash, string|null $parameterName)

No description

Parameters

string|null $classHash
string|null $methodHash
string|null $parameterName

testClassMethodDoesNotHaveReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testInterfaceMethodDoesNotHaveReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash

testEnumMethodDoesNotHaveReturnTypeHint(string|null $classHash, string|null $methodHash)

No description

Parameters

string|null $classHash
string|null $methodHash