Skip to content

Commit 8a0c6ea

Browse files
minor #33018 remove some more useless phpdocs (Tobion)
This PR was merged into the 4.4 branch. Discussion ---------- remove some more useless phpdocs | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Fix some leftovers from #32974 and #32786 Commits ------- 9be4d171e0 remove some more useless phpdocs
2 parents f8599ac + d6d2a9c commit 8a0c6ea

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)