minor #29712 Fixed minor typos (javiereguiluz)
This PR was merged into the 3.4 branch.
Discussion
----------
Fixed minor typos
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to 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 | -
Commits
-------
9b400bc720
Fixed minor typos
This commit is contained in:
commit
042f6047b3
@ -52,7 +52,7 @@ interface RegistryInterface extends ManagerRegistryInterface
|
||||
* it makes sense to get a new one to replace the closed one.
|
||||
*
|
||||
* Be warned that you will get a brand new entity manager as
|
||||
* the existing one is not useable anymore. This means that any
|
||||
* the existing one is not usable anymore. This means that any
|
||||
* other object with a dependency on this entity manager will
|
||||
* hold an obsolete reference. You can inject the registry instead
|
||||
* to avoid this problem.
|
||||
|
@ -64,7 +64,7 @@ class DoctrineExtensionTest extends TestCase
|
||||
);
|
||||
|
||||
$bundles = array(
|
||||
'FristBundle' => 'My\FristBundle',
|
||||
'FirstBundle' => 'My\FirstBundle',
|
||||
'SecondBundle' => 'My\SecondBundle',
|
||||
);
|
||||
|
||||
@ -98,7 +98,7 @@ class DoctrineExtensionTest extends TestCase
|
||||
array(),
|
||||
array(
|
||||
'mappings' => array(
|
||||
'FristBundle' => array(
|
||||
'FirstBundle' => array(
|
||||
'mapping' => true,
|
||||
'is_bundle' => true,
|
||||
),
|
||||
@ -132,7 +132,7 @@ class DoctrineExtensionTest extends TestCase
|
||||
),
|
||||
array(
|
||||
'mappings' => array(
|
||||
'FristBundle' => array(
|
||||
'FirstBundle' => array(
|
||||
'mapping' => true,
|
||||
'is_bundle' => true,
|
||||
),
|
||||
@ -153,7 +153,7 @@ class DoctrineExtensionTest extends TestCase
|
||||
);
|
||||
|
||||
$bundles = array(
|
||||
'FristBundle' => 'My\FristBundle',
|
||||
'FirstBundle' => 'My\FirstBundle',
|
||||
'SecondBundle' => 'My\SecondBundle',
|
||||
);
|
||||
|
||||
|
@ -595,7 +595,7 @@ class YamlFileLoader extends FileLoader
|
||||
* @param string $id A service identifier
|
||||
* @param string $file A parsed file
|
||||
*
|
||||
* @throws InvalidArgumentException When errors are occuried
|
||||
* @throws InvalidArgumentException When errors occur
|
||||
*
|
||||
* @return string|array A parsed callable
|
||||
*/
|
||||
|
@ -63,7 +63,7 @@ class AddAnnotatedClassesToCachePass implements CompilerPassInterface
|
||||
* @param array $patterns The class patterns to expand
|
||||
* @param array $classes The existing classes to match against the patterns
|
||||
*
|
||||
* @return array A list of classes derivated from the patterns
|
||||
* @return array A list of classes derived from the patterns
|
||||
*/
|
||||
private function expandClasses(array $patterns, array $classes)
|
||||
{
|
||||
|
@ -37,10 +37,10 @@ class TargetOperation extends AbstractOperation
|
||||
// For 'all' messages, the code can't be simplified as ``$this->messages[$domain]['all'] = $target->all($domain);``,
|
||||
// because doing so will drop messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback}
|
||||
//
|
||||
// For 'new' messages, the code can't be simplied as ``array_diff_assoc($this->target->all($domain), $this->source->all($domain));``
|
||||
// For 'new' messages, the code can't be simplified as ``array_diff_assoc($this->target->all($domain), $this->source->all($domain));``
|
||||
// because doing so will not exclude messages like {x: x ∈ target ∧ x ∉ source.all ∧ x ∈ source.fallback}
|
||||
//
|
||||
// For 'obsolete' messages, the code can't be simplifed as ``array_diff_assoc($this->source->all($domain), $this->target->all($domain))``
|
||||
// For 'obsolete' messages, the code can't be simplified as ``array_diff_assoc($this->source->all($domain), $this->target->all($domain))``
|
||||
// because doing so will not exclude messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback}
|
||||
|
||||
foreach ($this->source->all($domain) as $id => $message) {
|
||||
|
@ -123,7 +123,7 @@ class TranslatorCacheTest extends TestCase
|
||||
{
|
||||
/*
|
||||
* Similar to the previous test. After we used the second translator, make
|
||||
* sure there's still a useable cache for the first one.
|
||||
* sure there's still a usable cache for the first one.
|
||||
*/
|
||||
|
||||
$locale = 'any_locale';
|
||||
@ -142,7 +142,7 @@ class TranslatorCacheTest extends TestCase
|
||||
$translator->addResource($format, array($msgid => 'FAIL'), $locale);
|
||||
$translator->trans($msgid);
|
||||
|
||||
// Now the first translator must still have a useable cache.
|
||||
// Now the first translator must still have a usable cache.
|
||||
$translator = new Translator($locale, null, $this->tmpDir, $debug);
|
||||
$translator->addLoader($format, $this->createFailingLoader());
|
||||
$translator->addResource($format, array($msgid => 'OK'), $locale);
|
||||
|
@ -38,7 +38,7 @@ interface TranslatorInterface
|
||||
* Translates the given choice message by choosing a translation according to a number.
|
||||
*
|
||||
* @param string $id The message id (may also be an object that can be cast to string)
|
||||
* @param int $number The number to use to find the indice of the message
|
||||
* @param int $number The number to use to find the index of the message
|
||||
* @param array $parameters An array of parameters for the message
|
||||
* @param string|null $domain The domain for the message or null to use the default
|
||||
* @param string|null $locale The locale or null to use the default
|
||||
|
@ -32,8 +32,8 @@ class VarCloner extends AbstractCloner
|
||||
$queue = array(array($var)); // This breadth-first queue is the return value
|
||||
$indexedArrays = array(); // Map of queue indexes that hold numerically indexed arrays
|
||||
$hardRefs = array(); // Map of original zval hashes to stub objects
|
||||
$objRefs = array(); // Map of original object handles to their stub object couterpart
|
||||
$resRefs = array(); // Map of original resource handles to their stub object couterpart
|
||||
$objRefs = array(); // Map of original object handles to their stub object counterpart
|
||||
$resRefs = array(); // Map of original resource handles to their stub object counterpart
|
||||
$values = array(); // Map of stub objects' hashes to original values
|
||||
$maxItems = $this->maxItems;
|
||||
$maxString = $this->maxString;
|
||||
|
Reference in New Issue
Block a user