minor #40604 Improve ExtractorInterface phpdoc (VincentLanglet)

This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

Improve ExtractorInterface phpdoc

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

I think this phpdoc can be improved

Commits
-------

255b608d6d Improve ExtractorInterface phpdoc
This commit is contained in:
Nyholm 2021-04-01 12:02:30 +02:00
commit 095f382a44
No known key found for this signature in database
GPG Key ID: D6332DE2B6F8FA38
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
/** /**
* The child views. * The child views.
* *
* @var FormView[] * @var array<string, FormView>
*/ */
public $children = []; public $children = [];

View File

@ -24,7 +24,7 @@ interface ExtractorInterface
/** /**
* Extracts translation messages from files, a file or a directory to the catalogue. * Extracts translation messages from files, a file or a directory to the catalogue.
* *
* @param string|array $resource Files, a file or a directory * @param string|string[] $resource Files, a file or a directory
*/ */
public function extract($resource, MessageCatalogue $catalogue); public function extract($resource, MessageCatalogue $catalogue);