Skip to content

Commit

Permalink
Merge branch '3.3' into 3.4
Browse files Browse the repository at this point in the history
* 3.3:
  [Serializer] Remove a useless legacy annotation
  Fixed extra semi-colon
  fix docblock position
  [DependencyInjection] remove unused variable
  [PhpUnitBridge] add changelog entries for #21140
  [DI] Remove dead service_container checks
  • Loading branch information
nicolas-grekas committed May 22, 2017
2 parents 08aa6a8 + 1705eeb commit 98a2d3c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
10 changes: 10 additions & 0 deletions src/Symfony/Bridge/PhpUnit/CHANGELOG.md
@@ -0,0 +1,10 @@
CHANGELOG
=========

3.3.0
-----

* using the `testLegacy` prefix in method names to mark a test as legacy is
deprecated, use the `@group legacy` notation instead
* using the `Legacy` prefix in class names to mark a test as legacy is deprecated,
use the `@group legacy` notation instead
Expand Up @@ -258,10 +258,6 @@ protected function resolveServiceDefinition(ContainerBuilder $builder, $serviceI
return $builder->getAlias($serviceId);
}

if ('service_container' === $serviceId) {
return $builder;
}

// the service has been injected in some special way, just return the service
return $builder->get($serviceId);
}
Expand Down
9 changes: 5 additions & 4 deletions src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php
Expand Up @@ -48,10 +48,11 @@ class Translator extends BaseTranslator implements WarmableInterface
* * debug: Whether to enable debugging or not (false by default)
* * resource_files: List of translation resources available grouped by locale.
*
* @param ContainerInterface $container A ContainerInterface instance
* @param MessageSelector $selector The message selector for pluralization
* @param array $loaderIds An array of loader Ids
* @param array $options An array of options
* @param ContainerInterface $container A ContainerInterface instance
* @param MessageSelector $selector The message selector for pluralization
* @param string $defaultLocale
* @param array $loaderIds An array of loader Ids
* @param array $options An array of options
*
* @throws InvalidArgumentException
*/
Expand Down
Expand Up @@ -163,7 +163,6 @@ private function doProcessValue($value, $isRoot = false)
*/
private function getMethodsToAutowire(\ReflectionClass $reflectionClass)
{
$found = array();
$methodsToAutowire = array();

foreach ($reflectionClass->getMethods() as $reflectionMethod) {
Expand Down
Expand Up @@ -192,8 +192,7 @@ private function findNodes()
}

if (!$container->hasDefinition($id)) {
$class = get_class('service_container' === $id ? $this->container : $container->get($id));
$nodes[$id] = array('class' => str_replace('\\', '\\\\', $class), 'attributes' => $this->options['node.instance']);
$nodes[$id] = array('class' => str_replace('\\', '\\\\', get_class($container->get($id))), 'attributes' => $this->options['node.instance']);
}
}

Expand Down
Expand Up @@ -26,9 +26,6 @@ public function testDenormalize()
$this->assertSame('baz', $normalizedData->baz);
}

/**
* @group legacy
*/
public function testInstantiateObjectDenormalizer()
{
$data = array('foo' => 'foo', 'bar' => 'bar', 'baz' => 'baz');
Expand Down
9 changes: 4 additions & 5 deletions src/Symfony/Component/Translation/Translator.php
Expand Up @@ -74,11 +74,10 @@ class Translator implements TranslatorInterface, TranslatorBagInterface
/**
* Constructor.
*
* @param string $locale The locale
* @param MessageSelector|null $selector The message selector for pluralization
* @param string $defaultLocale
* @param string|null $cacheDir The directory to use for the cache
* @param bool $debug Use cache in debug mode ?
* @param string $locale The locale
* @param MessageSelector|null $selector The message selector for pluralization
* @param string|null $cacheDir The directory to use for the cache
* @param bool $debug Use cache in debug mode ?
*
* @throws InvalidArgumentException If a locale contains invalid characters
*/
Expand Down
Expand Up @@ -51,7 +51,6 @@ public static function castClosure(\Closure $c, array $a, Stub $stub, $isNested,
unset($v->value['position'], $v->value['isVariadic'], $v->value['byReference'], $v);
}
}
;

if (!($filter & Caster::EXCLUDE_VERBOSE) && $f = $c->getFileName()) {
$a[$prefix.'file'] = new LinkStub($f, $c->getStartLine());
Expand Down

0 comments on commit 98a2d3c

Please sign in to comment.