Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PdfCreator method error #7426

Open
juggernautsei opened this issue May 7, 2024 · 0 comments
Open

PdfCreator method error #7426

juggernautsei opened this issue May 7, 2024 · 0 comments

Comments

@juggernautsei
Copy link
Member

juggernautsei commented May 7, 2024

Describe the bug

write concise description of what the bug is.
Method returns undefined variable

To Reproduce

public function write($html_file, $save_to, $options)
{
    $pdfwk = new Pdf($this->binaryPath);
    $pdfwk->generateFromHtml(file_get_contents($html_file), $save_to);

    return **$pdfFilePath;**
}

Expected behavior

The $pdfFilePath; should be defined from within the method or passed into the method. At least that is what I was thinking. PHPStan reports the same issue.

Client configuration

  • Browser:
  • OpenEMR version:
  • Operating system:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant