diff --git a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php index 41899c1c6033f..e37f1476ae78f 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php @@ -49,7 +49,7 @@ protected function setUp() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testFixManagersAutoMappingsWithTwoAutomappings() { @@ -239,7 +239,7 @@ public function testServiceCacheDriver() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @expectedExceptionMessage "unrecognized_type" is an unrecognized Doctrine cache driver. */ public function testUnrecognizedCacheDriverException() diff --git a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php index f9e7b6760a9ee..fb78d65ef1813 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php @@ -130,7 +130,7 @@ public function testClassOptionIsRequired() } /** - * @expectedException Symfony\Component\Form\Exception\RuntimeException + * @expectedException \Symfony\Component\Form\Exception\RuntimeException */ public function testInvalidClassOption() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php index c6be5ba47554f..a9978bdec1475 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php @@ -12,7 +12,6 @@ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader; -use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php index c9e6f7eb731a3..cc83d6cd1f278 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php @@ -467,8 +467,8 @@ private function getEventDispatcherListenersDocument(EventDispatcherInterface $e } /** - * @param DOMElement $element - * @param array $eventListeners + * @param \DOMElement $element + * @param array $eventListeners */ private function appendEventListenerDocument(\DOMElement $element, array $eventListeners) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php index 52f9b0e394d90..9750744859966 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php @@ -40,7 +40,7 @@ public function testProcess() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @expectedExceptionMessage The service "my-command" tagged "console.command" must be public. */ public function testProcessThrowAnExceptionIfTheServiceIsNotPublic() @@ -57,7 +57,7 @@ public function testProcessThrowAnExceptionIfTheServiceIsNotPublic() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @expectedExceptionMessage The service "my-command" tagged "console.command" must not be abstract. */ public function testProcessThrowAnExceptionIfTheServiceIsAbstract() @@ -74,7 +74,7 @@ public function testProcessThrowAnExceptionIfTheServiceIsAbstract() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @expectedExceptionMessage The service "my-command" tagged "console.command" must be a subclass of "Symfony\Component\Console\Command\Command". */ public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand() diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php index 402b321968739..8d9224673cd77 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php @@ -92,7 +92,7 @@ public function testCsrfAliases() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testCsrfOriginalAndAliasValueCausesException() { diff --git a/src/Symfony/Component/Console/Helper/ProgressBar.php b/src/Symfony/Component/Console/Helper/ProgressBar.php index e5ba92773889d..5bc3de4e7390e 100644 --- a/src/Symfony/Component/Console/Helper/ProgressBar.php +++ b/src/Symfony/Component/Console/Helper/ProgressBar.php @@ -476,7 +476,7 @@ public function clear() /** * Sets the progress bar maximal steps. * - * @param int The progress bar max steps + * @param int $max The progress bar max steps */ private function setMaxSteps($max) { diff --git a/src/Symfony/Component/Console/Helper/Table.php b/src/Symfony/Component/Console/Helper/Table.php index 4d247f543ca3f..4b134c6aee1fe 100644 --- a/src/Symfony/Component/Console/Helper/Table.php +++ b/src/Symfony/Component/Console/Helper/Table.php @@ -378,7 +378,7 @@ private function buildTableRows($rows) * fill rows that contains rowspan > 1. * * @param array $rows - * @param array $line + * @param int $line * * @return array */ @@ -431,7 +431,7 @@ private function fillNextRows($rows, $line) * fill cells for a row that contains colspan > 1. * * @param array $row - * @param array $column + * @param int $column * * @return array */ diff --git a/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php b/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php index 24ea6d6e91356..44309bae1df49 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php @@ -617,7 +617,7 @@ public function testHasScope() } /** - * @expectedException Exception + * @expectedException \Exception * @expectedExceptionMessage Something went terribly wrong! */ public function testGetThrowsException() diff --git a/src/Symfony/Component/DomCrawler/Tests/FormTest.php b/src/Symfony/Component/DomCrawler/Tests/FormTest.php index 59c3c76cf0f4e..5bfbfb98245dc 100644 --- a/src/Symfony/Component/DomCrawler/Tests/FormTest.php +++ b/src/Symfony/Component/DomCrawler/Tests/FormTest.php @@ -820,7 +820,7 @@ public function testFormRegistrySetValueOnCompoundField() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @expectedExceptionMessage Unreachable field "0" */ public function testFormRegistrySetArrayOnNotCompoundField() diff --git a/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php b/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php index 199d2c00715b3..2e4c3fd97ff0f 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\EventDispatcher\Tests; use Symfony\Component\EventDispatcher\Event; +use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventSubscriberInterface; abstract class AbstractEventDispatcherTest extends \PHPUnit_Framework_TestCase diff --git a/src/Symfony/Component/ExpressionLanguage/Parser.php b/src/Symfony/Component/ExpressionLanguage/Parser.php index e761898423da3..f121ad9a9cdd8 100644 --- a/src/Symfony/Component/ExpressionLanguage/Parser.php +++ b/src/Symfony/Component/ExpressionLanguage/Parser.php @@ -88,7 +88,7 @@ public function __construct(array $functions) * @param TokenStream $stream A token stream instance * @param array $names An array of valid names * - * @return Node A node tree + * @return Node\Node A node tree * * @throws SyntaxError */ diff --git a/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php b/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php index f229ffd83e0b7..9ab5537451639 100644 --- a/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php +++ b/src/Symfony/Component/Filesystem/Tests/LockHandlerTest.php @@ -7,7 +7,7 @@ class LockHandlerTest extends \PHPUnit_Framework_TestCase { /** - * @expectedException Symfony\Component\Filesystem\Exception\IOException + * @expectedException \Symfony\Component\Filesystem\Exception\IOException * @expectedExceptionMessage Failed to create "/a/b/c/d/e": mkdir(): Permission denied. */ public function testConstructWhenRepositoryDoesNotExist() @@ -19,7 +19,7 @@ public function testConstructWhenRepositoryDoesNotExist() } /** - * @expectedException Symfony\Component\Filesystem\Exception\IOException + * @expectedException \Symfony\Component\Filesystem\Exception\IOException * @expectedExceptionMessage The directory "/" is not writable. */ public function testConstructWhenRepositoryIsNotWriteable() diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php index 184175cc81aa7..1b5f47119afc6 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php @@ -55,7 +55,7 @@ public function testGenerateFragmentUriWithARequest() } /** - * @expectedException LogicException + * @expectedException \LogicException * @dataProvider getGenerateFragmentUriDataWithNonScalar */ public function testGenerateFragmentUriWithNonScalar($controller) diff --git a/src/Symfony/Component/HttpKernel/Tests/KernelTest.php b/src/Symfony/Component/HttpKernel/Tests/KernelTest.php index 753125ca8566c..edb31423563db 100644 --- a/src/Symfony/Component/HttpKernel/Tests/KernelTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/KernelTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\HttpKernel\Tests; use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\HttpKernel\Bundle\BundleInterface; use Symfony\Component\HttpKernel\Config\EnvParametersResource; use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\HttpKernel\HttpKernelInterface; diff --git a/src/Symfony/Component/Intl/Resources/stubs/Collator.php b/src/Symfony/Component/Intl/Resources/stubs/Collator.php index 2e73e5aacebf4..ca5a0038f3986 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/Collator.php +++ b/src/Symfony/Component/Intl/Resources/stubs/Collator.php @@ -10,7 +10,6 @@ */ use Symfony\Component\Intl\Collator\Collator as IntlCollator; -use Symfony\Component\Intl\Collator\StubCollator; /** * Stub implementation for the Collator class of the intl extension. diff --git a/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php index a8ca2f0bd6705..37cda7204af5c 100644 --- a/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php @@ -107,7 +107,7 @@ public function testGetNullNamedEncoderForEncoderAware() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testGetInvalidNamedEncoderForEncoderAware() { diff --git a/src/Symfony/Component/Validator/Mapping/MetadataInterface.php b/src/Symfony/Component/Validator/Mapping/MetadataInterface.php index 991962ceafd2d..e5f09e17edc82 100644 --- a/src/Symfony/Component/Validator/Mapping/MetadataInterface.php +++ b/src/Symfony/Component/Validator/Mapping/MetadataInterface.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Mapping; +use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface; /** diff --git a/src/Symfony/Component/VarDumper/Caster/Caster.php b/src/Symfony/Component/VarDumper/Caster/Caster.php index 4ce8cf8a1259c..df677002be4bf 100644 --- a/src/Symfony/Component/VarDumper/Caster/Caster.php +++ b/src/Symfony/Component/VarDumper/Caster/Caster.php @@ -36,8 +36,8 @@ class Caster /** * Casts objects to arrays and adds the dynamic property prefix. * - * @param object $obj The object to cast. - * @param ReflectionClass $reflector The class reflector to use for inspecting the object definition. + * @param object $obj The object to cast. + * @param \ReflectionClass $reflector The class reflector to use for inspecting the object definition. * * @return array The array-cast of the object, with prefixed dynamic properties. */