1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

fix tests

This commit is contained in:
orklah 2021-09-04 14:17:55 +02:00
parent de27693015
commit 861d2187dd

View File

@ -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)) {