1--TEST-- 2Check that phi use chains are correctly maintained when removing blocks 3--FILE-- 4<?php 5 6function test(array $adapters) { 7 foreach ($adapters as $adapter) { 8 if (\in_array('cli-server', ['cli', 'phpdbg'], true) && $adapter instanceof stdClass && !\filter_var('1', \FILTER_VALIDATE_BOOLEAN)) { 9 continue; 10 } 11 12 $adapters[] = $adapter; 13 } 14} 15 16?> 17===DONE=== 18--EXPECT-- 19===DONE=== 20