mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Fixes
This commit is contained in:
parent
b65d7938f9
commit
1ad9fc66f8
2
.github/workflows/windows-ci.yml
vendored
2
.github/workflows/windows-ci.yml
vendored
@ -96,4 +96,4 @@ jobs:
|
||||
run: php bin/generate_testsuites.php $env:CHUNK_COUNT
|
||||
|
||||
- name: Run unit tests
|
||||
run: vendor/bin/paratest --processes=$env:PARALLEL_PROCESSES --testsuite=chunk_$env:CHUNK_NUMBER --log-junit build/phpunit/phpunit.xml
|
||||
run: vendor/bin/paratest -f --processes=$env:PARALLEL_PROCESSES --testsuite=chunk_$env:CHUNK_NUMBER --log-junit build/phpunit/phpunit.xml
|
||||
|
@ -112,7 +112,7 @@
|
||||
"lint": "parallel-lint ./src ./tests",
|
||||
"phpunit": [
|
||||
"Composer\\Config::disableProcessTimeout",
|
||||
"paratest --runner=WrapperRunner"
|
||||
"paratest -f --runner=WrapperRunner"
|
||||
],
|
||||
"phpunit-std": [
|
||||
"Composer\\Config::disableProcessTimeout",
|
||||
|
@ -367,6 +367,8 @@ class ClassLikes
|
||||
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||
) {
|
||||
if (!isset($this->existing_classes_lc[$fq_class_name_lc])) {
|
||||
$this->existing_classes_lc[$fq_class_name_lc] = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -399,8 +401,8 @@ class ClassLikes
|
||||
|| !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||
) {
|
||||
if ((
|
||||
!isset($this->existing_classes_lc[$fq_class_name_lc])
|
||||
|| $this->existing_classes_lc[$fq_class_name_lc]
|
||||
!isset($this->existing_interfaces_lc[$fq_class_name_lc])
|
||||
|| $this->existing_interfaces_lc[$fq_class_name_lc]
|
||||
)
|
||||
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||
) {
|
||||
@ -466,8 +468,8 @@ class ClassLikes
|
||||
|| !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||
) {
|
||||
if ((
|
||||
!isset($this->existing_classes_lc[$fq_class_name_lc])
|
||||
|| $this->existing_classes_lc[$fq_class_name_lc]
|
||||
!isset($this->existing_enums_lc[$fq_class_name_lc])
|
||||
|| $this->existing_enums_lc[$fq_class_name_lc]
|
||||
)
|
||||
&& !$this->classlike_storage_provider->has($fq_class_name_lc)
|
||||
) {
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Psalm\Tests\TypeReconciliation;
|
||||
|
||||
use Countable;
|
||||
use Psalm\Context;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\StatementsAnalyzer;
|
||||
@ -61,6 +62,7 @@ class ReconcilerTest extends TestCase
|
||||
class B {}
|
||||
interface SomeInterface {}
|
||||
');
|
||||
$this->project_analyzer->getCodebase()->queueClassLikeForScanning(Countable::class);
|
||||
$this->project_analyzer->getCodebase()->scanFiles();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user