diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index 8223ff4..710fb4c 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -50,6 +50,14 @@ + + + + + 5 diff --git a/src/Polyfills/AssertIsType.php b/src/Polyfills/AssertIsType.php index 8ddcbf7..2d42f01 100644 --- a/src/Polyfills/AssertIsType.php +++ b/src/Polyfills/AssertIsType.php @@ -155,6 +155,7 @@ public static function assertIsCallable( $actual, $message = '' ) { public static function assertIsIterable( $actual, $message = '' ) { if ( \function_exists( 'is_iterable' ) === true ) { // PHP >= 7.1. + // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.is_iterableFound static::assertTrue( \is_iterable( $actual ), $message ); } else { @@ -302,6 +303,7 @@ public static function assertIsNotCallable( $actual, $message = '' ) { public static function assertIsNotIterable( $actual, $message = '' ) { if ( \function_exists( 'is_iterable' ) === true ) { // PHP >= 7.1. + // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.is_iterableFound static::assertFalse( \is_iterable( $actual ), $message ); } else {