@trigger_error(__METHOD__.'() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use is_iterable() instead. See https://www.drupal.org/node/3422775',E_USER_DEPRECATED);
returnis_iterable($traversable);
}
/**
@@ -51,7 +57,7 @@ public static function assertTraversable($traversable) {
* Tests asserting argument is an array or traversable object.
*
* @covers ::assertTraversable
*
* @group legacy
*/
publicfunctiontestAssertTraversable(){
$this->expectDeprecation('Drupal\Component\Assertion\Inspector::assertTraversable() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use is_iterable() instead. See https://www.drupal.org/node/3422775');