mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Prevent tests in PHP 7.1
This commit is contained in:
parent
cece1def30
commit
ae69695f89
@ -389,7 +389,7 @@ class PropertyAssignmentAnalyzer
|
|||||||
),
|
),
|
||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)) {
|
)) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (IssueBuffer::accepts(
|
if (IssueBuffer::accepts(
|
||||||
@ -400,7 +400,7 @@ class PropertyAssignmentAnalyzer
|
|||||||
),
|
),
|
||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)) {
|
)) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -814,7 +814,7 @@ class PropertyAssignmentAnalyzer
|
|||||||
),
|
),
|
||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)) {
|
)) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -1316,7 +1316,7 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
|
|||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a `@property` annotation is set, the type of the value passed to the
|
// If a `@property` annotation is set, the type of the value passed to the
|
||||||
@ -1387,7 +1387,7 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
|
|||||||
),
|
),
|
||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)) {
|
)) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (IssueBuffer::accepts(
|
if (IssueBuffer::accepts(
|
||||||
@ -1400,7 +1400,7 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
|
|||||||
),
|
),
|
||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)) {
|
)) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1421,7 +1421,7 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
|
|||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($class_storage->pseudo_property_get_types['$' . $prop_name])) {
|
if (isset($class_storage->pseudo_property_get_types['$' . $prop_name])) {
|
||||||
|
@ -846,7 +846,7 @@ class PropertyFetchAnalyzer
|
|||||||
),
|
),
|
||||||
$statements_analyzer->getSuppressedIssues()
|
$statements_analyzer->getSuppressedIssues()
|
||||||
)) {
|
)) {
|
||||||
return false;
|
// fall through
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -757,7 +757,7 @@ class CallableTest extends TestCase
|
|||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
],
|
],
|
||||||
'publicCallableFromInside' => [
|
'PHP71-publicCallableFromInside' => [
|
||||||
'<?php
|
'<?php
|
||||||
class Base {
|
class Base {
|
||||||
public function publicMethod() : void {}
|
public function publicMethod() : void {}
|
||||||
@ -769,7 +769,7 @@ class CallableTest extends TestCase
|
|||||||
}
|
}
|
||||||
}',
|
}',
|
||||||
],
|
],
|
||||||
'protectedCallableFromInside' => [
|
'PHP71-protectedCallableFromInside' => [
|
||||||
'<?php
|
'<?php
|
||||||
class Base {
|
class Base {
|
||||||
protected function protectedMethod() : void {}
|
protected function protectedMethod() : void {}
|
||||||
@ -1258,7 +1258,7 @@ class CallableTest extends TestCase
|
|||||||
array_map(["two", "three"], ["one", "two"]);',
|
array_map(["two", "three"], ["one", "two"]);',
|
||||||
'error_message' => 'InvalidArgument'
|
'error_message' => 'InvalidArgument'
|
||||||
],
|
],
|
||||||
'privateCallable' => [
|
'PHP71-privateCallable' => [
|
||||||
'<?php
|
'<?php
|
||||||
class Base {
|
class Base {
|
||||||
private function privateMethod() : void {}
|
private function privateMethod() : void {}
|
||||||
|
@ -1121,7 +1121,7 @@ class TemporaryUpdateTest extends \Psalm\Tests\TestCase
|
|||||||
}',
|
}',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'error_positions' => [[306], [306, 452]],
|
'error_positions' => [[306], [306, 452, 452]],
|
||||||
],
|
],
|
||||||
'addPropertyDocblock' => [
|
'addPropertyDocblock' => [
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user