summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-01-15 13:02:19 +0100
committerRemi Collet <remi@remirepo.net>2020-01-15 13:02:19 +0100
commita4d2de090a884e6a6bb30e98a70bb57eb7fd56e7 (patch)
tree440c41e752d613712076daedf143cf943ca48176
parentbc1bde0bc9268468bbea70c599c47d4b6c4d35f3 (diff)
clean
-rw-r--r--32.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/32.patch b/32.patch
deleted file mode 100644
index 53c5c03..0000000
--- a/32.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 05fcad5da30ff15326ad13c91bcd49cdc3cb9ec7 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Fri, 3 Jan 2020 09:48:45 +0100
-Subject: [PATCH] Fix using array_key_exists() on objects is deprecated (7.4)
-
----
- src/Barcode.php | 13 +++++++++----
- 1 file changed, 9 insertions(+), 4 deletions(-)
-
-diff --git a/src/Barcode.php b/src/Barcode.php
-index 65e27ed7..27c2a487 100644
---- a/src/Barcode.php
-+++ b/src/Barcode.php
-@@ -51,13 +51,18 @@ public function __construct($options = null)
- $options = [];
- }
-
-- if (! is_array($options) && ! ($options instanceof Traversable)) {
-+ if (is_array($options)) {
-+ if (array_key_exists('options', $options)) {
-+ $options['options'] = ['options' => $options['options']];
-+ }
-+ } else if ($options instanceof Traversable) {
-+ if (property_exists($options, 'options')) {
-+ $options['options'] = ['options' => $options['options']];
-+ }
-+ } else {
- $options = ['adapter' => $options];
- }
-
-- if (array_key_exists('options', $options)) {
-- $options['options'] = ['options' => $options['options']];
-- }
-
- parent::__construct($options);
- }