Skip to content

Exception " Argument 1 passed to setSourcePid() must be of the type int, string given" #35

@rvock

Description

@rvock

https://github.com/CodersCare/l10nmgr/blob/3ee71720066bafdf2c5abd736c1f97c6f3ae61ec/Classes/Command/Export.php#L234C9-L235C50

$sourcePid = $input->getOption('srcPID') ?? 0;
$l10nmgrCfgObj->setSourcePid($sourcePid);

Options retrieved from InputInterface are strings, not integers.

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