Skip to content

Commit d6d2a9c

Browse files
committed
remove some more useless phpdocs
1 parent f6ec04c commit d6d2a9c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Data/Bundle/Writer/TextBundleWriter.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Intl\Data\Bundle\Writer;
1313

14-
use Symfony\Component\Intl\Exception\UnexpectedTypeException;
15-
1614
/**
1715
* Writes .txt resource bundles.
1816
*
@@ -183,16 +181,9 @@ private function writeArray($file, array $value, int $indentation)
183181
* Writes a "table" node.
184182
*
185183
* @param resource $file The file handle to write to
186-
*
187-
* @throws UnexpectedTypeException when $value is not an array and not a
188-
* \Traversable instance
189184
*/
190185
private function writeTable($file, iterable $value, int $indentation, bool $fallback = true)
191186
{
192-
if (!\is_array($value) && !$value instanceof \Traversable) {
193-
throw new UnexpectedTypeException($value, 'array or \Traversable');
194-
}
195-
196187
if (!$fallback) {
197188
fwrite($file, ':table(nofallback)');
198189
}

0 commit comments

Comments
 (0)