GravityPDF / gravity-pdf

Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.
https://gravitypdf.com
88 stars 21 forks source link

Fix PHP Scoper Problems #1487

Closed jakejackson1 closed 9 months ago

jakejackson1 commented 9 months ago

Description

In older versions of WordPress without the str_starts_with() or str_ends_with() polyfills, a fatal error could occur in Mpdf when using a PHP version less than 8.0.

Testing instructions

  1. Install WordPress 5.8
  2. Run PHP7.4
  3. Generate a PDF

Prior to this patch a PHP error would occur. After this patch, the PDF generates without issue.

Screenshots

Checklist:

Additional Comments

codecov[bot] commented 9 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (3bd2e7d) 75.13% compared to head (0f23494) 75.13%.

Files Patch % Lines
src/autoload.php 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #1487 +/- ## ================================================= - Coverage 75.13% 75.13% -0.01% Complexity 2953 2953 ================================================= Files 243 243 Lines 12882 12883 +1 Branches 370 370 ================================================= Hits 9679 9679 - Misses 3195 3196 +1 Partials 8 8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.