8000 Fix phpdoc inconsistencies, simplify no-op sprintf. · alexpott/symfony@c9ddd68 · GitHub
[go: up one dir, main page]

Skip to content

Commit c9ddd68

Browse files
committed
Fix phpdoc inconsistencies, simplify no-op sprintf.
(detected by static analysis)
1 parent beed426 commit c9ddd68

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function hasMarkedPlace($subject, $placeName, $name = null)
8585
* Returns marked places.
8686
*
8787
* @param object $subject A subject
88-
* @param string $placesNameOnly If true, returns only places name. If false returns the raw representation
88+
* @param bool $placesNameOnly If true, returns only places name. If false returns the raw representation
8989
* @param string $name A workflow name
9090
*
9191
* @return string[]|int[]

src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private function getControllerError($callable)
219219
}
220220

221221
if (2 !== count($callable)) {
222-
return sprintf('Invalid format for controller, expected array(controller, method) or controller::method.');
222+
return 'Invalid format for controller, expected array(controller, method) or controller::method.';
223223
}
224224

225225
list($controller, $method) = $callable;

src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function normalize($object, $format = null, array $context = array())
108108
*
109109
* @return string[]
110110
*/
111-
protected function getAttributes($object, $format = null, array $context)
111+
protected function getAttributes($object, $format, array $context)
112112
{
113113
$class = get_class($object);
114114
$key = $class.'-'.$context['cache_key'];

0 commit comments

Comments
 (0)
0