diff --git a/assets/patches/flysystem-stream-wrapper.patch b/assets/patches/flysystem-stream-wrapper.patch new file mode 100644 index 000000000..f134e1c62 --- /dev/null +++ b/assets/patches/flysystem-stream-wrapper.patch @@ -0,0 +1,27 @@ +From 2cb6c625d6d674b51eb4bf66fae8232b30533c9d Mon Sep 17 00:00:00 2001 +From: Adam Vessey +Date: Fri, 13 Oct 2023 13:52:04 -0300 +Subject: [PATCH] Add in the `public $context` property to the stream wrapper. + +--- + src/FlysystemStreamWrapper.php | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/FlysystemStreamWrapper.php b/src/FlysystemStreamWrapper.php +index 93a79b6..5c5a200 100644 +--- a/src/FlysystemStreamWrapper.php ++++ b/src/FlysystemStreamWrapper.php +@@ -25,6 +25,13 @@ class FlysystemStreamWrapper + */ + const STREAM_URL_IGNORE_SIZE = 8; + ++ /** ++ * PHP-passed stream context. ++ * ++ * @var resource|null ++ */ ++ public $context; ++ + /** + * The registered filesystems. + * diff --git a/composer.json b/composer.json index 8d7e49af0..e1dfd1f10 100755 --- a/composer.json +++ b/composer.json @@ -125,10 +125,16 @@ "type:drupal-custom-theme" ] }, - "patches": {} + "patches": { + "twistor/flysystem-stream-wrapper": { + "PHP 8.2 deprecation warning": "assets/patches/flysystem-stream-wrapper.patch" + } + } }, "scripts": { - "post-root-package-install": ["Islandora\\StarterSite::rootPackageInstall"] + "post-root-package-install": [ + "Islandora\\StarterSite::rootPackageInstall" + ] }, "require-dev": { "drupal/config_inspector": "^2.1",