Skip to content

Commit

Permalink
Merge pull request #12 from mt-support/fix/EXT-211-php74
Browse files Browse the repository at this point in the history
works with PHP 7.4
  • Loading branch information
cliffordp authored Jun 10, 2020
2 parents b7655a4 + 86b7615 commit 2f848d0
Show file tree
Hide file tree
Showing 144 changed files with 1,621 additions and 1,259 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "tribe-ext-pdf-tickets",
"name": "moderntribe/tribe-ext-pdf-tickets",
"description": "Event Tickets' RSVP, Tribe Commerce PayPal, WooCommerce, and/or Easy Digital Downloads ticket emails will become PDF files saved to your Uploads directory and then get attached to the ticket emails.",
"type": "project",
"require": {
"mpdf/mpdf": "~8.0.0"
"mpdf/mpdf": "^8.0.4"
},
"license": "GPL-2.0-only",
"authors": [
Expand Down
75 changes: 44 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: ModernTribe
Donate link: http://m.tri.be/29
Tags: events, calendar
Requires at least: 4.5
Tested up to: 5.1.1
Tested up to: 5.4.1
Requires PHP: 5.6
Stable tag: 1.2.1
Stable tag: 1.2.2
License: GPL version 2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -31,10 +31,15 @@ Please visit our [extension library](https://theeventscalendar.com/extensions/)

= What if I experience problems? =

We're always interested in your feedback and our [premium forums](https://theeventscalendar.com/support-forums/) are the best place to flag any issues. Do note, however, that the degree of support we provide for extensions like this one tends to be very limited.
We're always interested in your feedback, and our [premium forums](https://theeventscalendar.com/support-forums/) are the best place to flag any issues. Do note, however, that the degree of support we provide for extensions like this one tends to be very limited.

== Changelog ==

= [1.2.2] 2020-06-10 =

* Fix - Update mPDF library version so this plugin now works with PHP 7.4. [EXT-211]
* Tweak - "WooCommerce tested up to" version changed from `3.7.0` to `4.2.0`. [EXT-211]

= [1.2.1] 2019-09-05 =

* Tweak - Now requires Event Tickets Plus version 4.7 or newer
Expand Down
4 changes: 2 additions & 2 deletions tribe-ext-pdf-tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Event Tickets Extension: PDF Tickets
* Description: Event Tickets' RSVP, Tribe Commerce PayPal, WooCommerce, and/or Easy Digital Downloads ticket emails will become PDF files saved to your Uploads directory and then get attached to the ticket emails.
* Version: 1.2.1
* Version: 1.2.2
* Extension Class: Tribe__Extension__PDF_Tickets
* Plugin URI: https://theeventscalendar.com/extensions/pdf-tickets/
* GitHub Plugin URI: https://github.com/mt-support/tribe-ext-pdf-tickets
Expand All @@ -11,7 +11,7 @@
* License: GPL version 2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: tribe-ext-pdf-tickets
* WC tested up to: 3.7.0
* WC tested up to: 4.2.0
*/

use Mpdf\Mpdf;
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitd3d2973c0b8caee096c5a70eea3d2207::getLoader();
return ComposerAutoloaderInitfd9cbdfd695458526decd277b993e840::getLoader();
8 changes: 4 additions & 4 deletions vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function isClassMapAuthoritative()
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
}

/**
Expand Down Expand Up @@ -377,11 +377,11 @@ private function findFileWithExtension($class, $ext)
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath.'\\';
$search = $subPath . '\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
$length = $this->prefixLengthsPsr4[$first][$search];
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
if (file_exists($file = $dir . $pathEnd)) {
return $file;
}
}
Expand Down
5 changes: 4 additions & 1 deletion vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'DeepCopy\\TypeFilter\\Date\\DateIntervalFilter' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php',
'DeepCopy\\TypeFilter\\ReplaceFilter' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/TypeFilter/ReplaceFilter.php',
'DeepCopy\\TypeFilter\\ShallowCopyFilter' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php',
'DeepCopy\\TypeFilter\\Spl\\ArrayObjectFilter' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/ArrayObjectFilter.php',
'DeepCopy\\TypeFilter\\Spl\\SplDoublyLinkedList' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php',
'DeepCopy\\TypeFilter\\Spl\\SplDoublyLinkedListFilter' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedListFilter.php',
'DeepCopy\\TypeFilter\\TypeFilter' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/TypeFilter/TypeFilter.php',
Expand Down Expand Up @@ -63,7 +64,9 @@
'Mpdf\\Css\\DefaultCss' => $vendorDir . '/mpdf/mpdf/src/Css/DefaultCss.php',
'Mpdf\\Css\\TextVars' => $vendorDir . '/mpdf/mpdf/src/Css/TextVars.php',
'Mpdf\\DirectWrite' => $vendorDir . '/mpdf/mpdf/src/DirectWrite.php',
'Mpdf\\Exception\\FontException' => $vendorDir . '/mpdf/mpdf/src/Exception/FontException.php',
'Mpdf\\Exception\\InvalidArgumentException' => $vendorDir . '/mpdf/mpdf/src/Exception/InvalidArgumentException.php',
'Mpdf\\File\\StreamWrapperChecker' => $vendorDir . '/mpdf/mpdf/src/File/StreamWrapperChecker.php',
'Mpdf\\Fonts\\FontCache' => $vendorDir . '/mpdf/mpdf/src/Fonts/FontCache.php',
'Mpdf\\Fonts\\FontFileFinder' => $vendorDir . '/mpdf/mpdf/src/Fonts/FontFileFinder.php',
'Mpdf\\Fonts\\GlyphOperator' => $vendorDir . '/mpdf/mpdf/src/Fonts/GlyphOperator.php',
Expand Down Expand Up @@ -244,7 +247,7 @@
'Psr\\Log\\LoggerInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerInterface.php',
'Psr\\Log\\LoggerTrait' => $vendorDir . '/psr/log/Psr/Log/LoggerTrait.php',
'Psr\\Log\\NullLogger' => $vendorDir . '/psr/log/Psr/Log/NullLogger.php',
'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/DummyTest.php',
'Psr\\Log\\Test\\LoggerInterfaceTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
'Psr\\Log\\Test\\TestLogger' => $vendorDir . '/psr/log/Psr/Log/Test/TestLogger.php',
'setasign\\Fpdi\\FpdfTpl' => $vendorDir . '/setasign/fpdi/src/FpdfTpl.php',
Expand Down
17 changes: 10 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitd3d2973c0b8caee096c5a70eea3d2207
class ComposerAutoloaderInitfd9cbdfd695458526decd277b993e840
{
private static $loader;

Expand All @@ -13,21 +13,24 @@ public static function loadClassLoader($class)
}
}

/**
* @return \Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitd3d2973c0b8caee096c5a70eea3d2207', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitfd9cbdfd695458526decd277b993e840', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitd3d2973c0b8caee096c5a70eea3d2207', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitfd9cbdfd695458526decd277b993e840', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInitd3d2973c0b8caee096c5a70eea3d2207::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitfd9cbdfd695458526decd277b993e840::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
Expand All @@ -48,19 +51,19 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitd3d2973c0b8caee096c5a70eea3d2207::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitfd9cbdfd695458526decd277b993e840::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequired3d2973c0b8caee096c5a70eea3d2207($fileIdentifier, $file);
composerRequirefd9cbdfd695458526decd277b993e840($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequired3d2973c0b8caee096c5a70eea3d2207($fileIdentifier, $file)
function composerRequirefd9cbdfd695458526decd277b993e840($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
Expand Down
Loading

0 comments on commit 2f848d0

Please sign in to comment.