Skip to content

Commit e7a5eb8

Browse files
committed
qa: fix missing argument to sprintf in assertion message
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
1 parent a820416 commit e7a5eb8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Model/InputFilterModel.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@ protected function addInputFilter($module, $controller, $inputFilter, $validator
163163
$entityType = $this->getEntityType($controller);
164164
$return = new $entityType($updated['input_filter_specs'][$validator]);
165165

166-
assert($return instanceof ArrayAccess, sprintf('Entity of type %s does not implement ArrayAccess'));
166+
assert($return instanceof ArrayAccess, sprintf(
167+
'Entity of type %s does not implement ArrayAccess',
168+
$entityType
169+
));
167170

168171
$return['input_filter_name'] = $validator;
169172
return $return;

0 commit comments

Comments
 (0)