TypeError thrown

PDOStatement::execute(): Argument #1 ($params) must be of type ?array, string given