Skip to content

Commit

Permalink
Rename columnAcceptsType -> getColumnAcceptsType
Browse files Browse the repository at this point in the history
As requested in PR review.
  • Loading branch information
hemberger authored and staabm committed Mar 20, 2023
1 parent 387adf7 commit 22babc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Rules/DoctrineKeyValueStyleRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function processNode(Node $callLike, Scope $scope): array
continue;
}

$acceptedType = $this->columnAcceptsType($argColumn->getType());
$acceptedType = $this->getColumnAcceptsType($argColumn->getType());
$valueType = $argArray->getValueTypes()[$keyIndex];

if (! $acceptedType->isSuperTypeOf($valueType)->yes()) {
Expand All @@ -194,7 +194,7 @@ public function processNode(Node $callLike, Scope $scope): array
* Converts the column type into the most general type that the column
* will accept.
*/
private function columnAcceptsType(Type $columnType): Type
private function getColumnAcceptsType(Type $columnType): Type
{
$checkIntegerRanges = QueryReflection::getRuntimeConfiguration()->isParameterTypeValidationStrict();
if (false === $checkIntegerRanges) {
Expand Down

0 comments on commit 22babc5

Please sign in to comment.