Skip to content

Harmless unused sprintf args in YamlSourceManipulator.php #517

@TysonAndre

Description

@TysonAndre

$this->log(sprintf(
'Changing array type & format via updateData()',
$this->arrayTypeForDepths[$this->depth],
$this->arrayFormatForDepths[$this->depth]
));

I'd expect something like 'Changing array type & format via updateData() (type=%s, format=%s)', instead.

Passing too many arguments is harmless, and won't result in notices.

Detected with phan when checking for new false positives in phan (PhanPluginPrintfNoSpecifiers in PrintfCheckerPlugin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions