Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/Testing/TypeInferenceTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,12 @@
}

/**
* @return array<string, (
* array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|
* array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|
* array{0: 'variableCertainty', 1: string, 2: TrinaryLogic, 3: TrinaryLogic, 4: string, 5: int, 6?: string}
* )>
* @api
* @return array<string, mixed[]>
*/
public static function gatherAssertTypes(string $file): array
{
Expand Down Expand Up @@ -390,7 +394,7 @@
}

if (count($delayedErrors) === 0) {
return $asserts;

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.5)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.4)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.5, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.5, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>}>.

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.4, ubuntu-latest)

Method P

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.2, ubuntu-latest)

Method P

Check failure on line 397 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.3, ubuntu-latest)

Method P
}

foreach ($asserts as $i => $assert) {
Expand All @@ -398,14 +402,14 @@
$asserts[$i] = $assert;
}

return $asserts;

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.5)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.4)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.5, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.5, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() should return array<string, array{0: 'superType', 1: string, 2: string, 3: string, 4: bool, 5: int, 6?: string}|array{0: 'type', 1: string, 2: string, 3: string, 4: int, 5?: string}|array{0: 'variableCertainty', 1: string, 2: PHPStan\TrinaryLogic, 3: PHPStan\TrinaryLogic, 4: string, 5: int, 6?: string}> but returns non-empty-array<non-falsy-string, array{'superType', string, string, string, bool, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'type', string, bool|float|int|string|null, string, -1|int<1, max>, non-empty-list<non-falsy-string>}|array{'variableCertainty', string, mixed, PHPStan\TrinaryLogic, non-falsy-string, -1|int<1, max>, non-empty-list<non-falsy-string>}>.

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.4, ubuntu-latest)

Method P

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.2, ubuntu-latest)

Method P

Check failure on line 405 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.3, ubuntu-latest)

Method P
}

/**
* @api
* @return array<string, mixed[]>
* @return array<string, array{string, string, ...<int, mixed>}>

Check failure on line 410 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

PHPDoc tag `@return` has invalid value (array<string, array{string, string, ...<int, mixedint, mixed>}>): Unexpected token ",", expected '>' at offset 78 on line 3

Check failure on line 410 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

PHPDoc tag `@return` has invalid value (array<string, array{string, string, ...<int, mixedint, mixed>}>): Unexpected token ",", expected '>' at offset 78 on line 3
*/
public static function gatherAssertTypesFromDirectory(string $directory): array

Check failure on line 412 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypesFromDirectory() return type has no value type specified in iterable type array.

Check failure on line 412 in src/Testing/TypeInferenceTestCase.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypesFromDirectory() return type has no value type specified in iterable type array.
{
$asserts = [];
foreach (self::findTestDataFilesFromDirectory($directory) as $path) {
Expand Down
3 changes: 0 additions & 3 deletions tests/PHPStan/Analyser/LooseConstComparisonPhp7Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
class LooseConstComparisonPhp7Test extends TypeInferenceTestCase
{

/**
* @return iterable<array<string, mixed[]>>
*/
public static function dataFileAsserts(): iterable
{
// compares constants according to the php-version phpstan configuration,
Expand Down
3 changes: 0 additions & 3 deletions tests/PHPStan/Analyser/LooseConstComparisonPhp8Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
class LooseConstComparisonPhp8Test extends TypeInferenceTestCase
{

/**
* @return iterable<array<string, mixed[]>>
*/
public static function dataFileAsserts(): iterable
{
// compares constants according to the php-version phpstan configuration,
Expand Down
3 changes: 0 additions & 3 deletions tests/PHPStan/Analyser/SubstrPhp7Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
class SubstrPhp7Test extends TypeInferenceTestCase
{

/**
* @return iterable<array<string, mixed[]>>
*/
public static function dataFileAsserts(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-13129-php7.php');
Expand Down
3 changes: 0 additions & 3 deletions tests/PHPStan/Analyser/SubstrPhp8Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
class SubstrPhp8Test extends TypeInferenceTestCase
{

/**
* @return iterable<array<string, mixed[]>>
*/
public static function dataFileAsserts(): iterable
{
yield from self::gatherAssertTypes(__DIR__ . '/data/bug-13129-php8.php');
Expand Down
Loading