summaryrefslogtreecommitdiffstats
path: root/php-laminas-zendframework-bridge-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-laminas-zendframework-bridge-rpm.patch')
-rw-r--r--php-laminas-zendframework-bridge-rpm.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/php-laminas-zendframework-bridge-rpm.patch b/php-laminas-zendframework-bridge-rpm.patch
index f2df390..439038c 100644
--- a/php-laminas-zendframework-bridge-rpm.patch
+++ b/php-laminas-zendframework-bridge-rpm.patch
@@ -1,6 +1,6 @@
diff -up ./src/Autoloader.php.rpm ./src/Autoloader.php
---- ./src/Autoloader.php.rpm 2020-08-19 08:24:30.000000000 +0200
-+++ ./src/Autoloader.php 2020-08-19 08:27:21.275930504 +0200
+--- ./src/Autoloader.php.rpm 2020-09-15 07:44:23.000000000 +0200
++++ ./src/Autoloader.php 2020-09-15 07:46:23.579538552 +0200
@@ -9,7 +9,6 @@
namespace Laminas\ZendFrameworkBridge;
@@ -26,7 +26,7 @@ diff -up ./src/Autoloader.php.rpm ./src/Autoloader.php
- */
- private static function getClassLoader()
- {
-- if (file_exists(getenv('COMPOSER_VENDOR_DIR') . '/autoload.php')) {
+- if (getenv('COMPOSER_VENDOR_DIR') && file_exists(getenv('COMPOSER_VENDOR_DIR') . '/autoload.php')) {
- return include getenv('COMPOSER_VENDOR_DIR') . '/autoload.php';
- }
-
@@ -66,8 +66,8 @@ diff -up ./src/Autoloader.php.rpm ./src/Autoloader.php
. strtr(substr($class, strlen($check)), [
'ApiTools' => 'Apigility',
diff -up ./src/Replacements.php.rpm ./src/Replacements.php
---- ./src/Replacements.php.rpm 2020-08-19 08:24:30.000000000 +0200
-+++ ./src/Replacements.php 2020-08-19 08:25:20.004129165 +0200
+--- ./src/Replacements.php.rpm 2020-09-15 07:44:23.000000000 +0200
++++ ./src/Replacements.php 2020-09-15 07:44:29.456906439 +0200
@@ -21,7 +21,7 @@ class Replacements
public function __construct(array $additionalReplacements = [])
{