Fix phpdoc inconsistencies, simplify no-op sprintf.

(detected by static analysis)
This commit is contained in:
Tyson Andre 2017-10-20 22:28:08 -07:00
parent beed426e9a
commit c9ddd68ea6
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class WorkflowExtension extends AbstractExtension
* Returns marked places.
*
* @param object $subject A subject
* @param string $placesNameOnly If true, returns only places name. If false returns the raw representation
* @param bool $placesNameOnly If true, returns only places name. If false returns the raw representation
* @param string $name A workflow name
*
* @return string[]|int[]

View File

@ -219,7 +219,7 @@ class ControllerResolver implements ArgumentResolverInterface, ControllerResolve
}
if (2 !== count($callable)) {
return sprintf('Invalid format for controller, expected array(controller, method) or controller::method.');
return 'Invalid format for controller, expected array(controller, method) or controller::method.';
}
list($controller, $method) = $callable;

View File

@ -108,7 +108,7 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
*
* @return string[]
*/
protected function getAttributes($object, $format = null, array $context)
protected function getAttributes($object, $format, array $context)
{
$class = get_class($object);
$key = $class.'-'.$context['cache_key'];