8000 minor #24650 Fix phpdoc and unnecessary sprintf (TysonAndre) · symfony/symfony@dde192a · GitHub
[go: up one dir, main page]

Skip to content

Commit dde192a

Browse files
committed
minor #24650 Fix phpdoc and unnecessary sprintf (TysonAndre)
This PR was merged into the 3.4 branch. Discussion ---------- Fix phpdoc and unnecessary sprintf (detected by static analysis) `%1$::`: is not a format string, it should be `%1$s::` Simplify no-op sprintf. | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? |no | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | | Fixed tickets | | License | MIT | Doc PR | Commits ------- e64baf5 Fix phpdoc and unnecessary sprintf
2 parents dc0116a + e64baf5 commit dde192a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Loader/Configurator/DefaultsConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DefaultsConfigurator extends AbstractServiceConfigurator
4040
final public function tag($name, array $attributes = array())
4141
{
4242
if (!is_string($name) || '' === $name) {
43-
throw new InvalidArgumentException(sprintf('The tag name in "_defaults" must be a non-empty string.'));
43+
throw new InvalidArgumentException('The tag name in "_defaults" must be a non-empty string.');
4444
}
4545

4646
foreach ($attributes as $attribute => $value) {

src/Symfony/Component/Routing/Loader/Configurator/CollectionConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __destruct()
4242
* Adds a route.
4343
*
4444
* @param string $name
45-
* @param string $value
45+
* @param string $path
4646
*
4747
* @return RouteConfigurator
4848
*/

0 commit comments

Comments
 (0)
0