This commit is contained in:
Tomas Votruba 2021-06-25 17:38:19 +02:00
parent 417d89867d
commit edd78eb310
2 changed files with 4 additions and 6 deletions

View File

@ -204,8 +204,7 @@ CODE_SAMPLE
ConstFetch $constFetch,
GreaterOrEqual $greaterOrEqual,
If_ $if
): ?ConstFetch
{
): ?ConstFetch {
$value = $greaterOrEqual->right;
if (! $value instanceof LNumber) {
return null;
@ -223,8 +222,7 @@ CODE_SAMPLE
ConstFetch $constFetch,
GreaterOrEqual $greaterOrEqual,
If_ $if
): ?ConstFetch
{
): ?ConstFetch {
$value = $greaterOrEqual->left;
if (! $value instanceof LNumber) {
return null;

View File

@ -83,9 +83,9 @@ CODE_SAMPLE
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node);
// is already set
foreach(['@var', '@phpstan-var', '@psalm-var'] as $tagName) {
foreach (['@var', '@phpstan-var', '@psalm-var'] as $tagName) {
$varType = $phpDocInfo->getVarType($tagName);
if (!$varType instanceof MixedType) {
if (! $varType instanceof MixedType) {
return null;
}
}