mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
fix tests
This commit is contained in:
parent
de27693015
commit
861d2187dd
@ -383,7 +383,7 @@ class AssignmentInConditionalTest extends \Psalm\Tests\TestCase
|
||||
'repeatedSet' => [
|
||||
'<?php
|
||||
function foo(): void {
|
||||
if ($a = rand(0, 1) ? "" : null) {
|
||||
if ($a = rand(0, 1) ? "1" : null) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -399,7 +399,7 @@ class AssignmentInConditionalTest extends \Psalm\Tests\TestCase
|
||||
'repeatedSetInsideWhile' => [
|
||||
'<?php
|
||||
function foo(): void {
|
||||
if ($a = rand(0, 1) ? "" : null) {
|
||||
if ($a = rand(0, 1) ? "1" : null) {
|
||||
return;
|
||||
} else {
|
||||
while (rand(0, 1)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user