From 42df54134ff415892c7de3d669bbb3905a0bd303 Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Sun, 2 Jun 2024 18:18:54 +0200 Subject: [PATCH] Fix deprecated dynamic property usage (#1086) --- .../src/Flow/ETL/Adapter/Filesystem/AwsS3Stream.php | 5 +++++ .../src/Flow/ETL/Adapter/Filesystem/AzureBlobStream.php | 5 +++++ .../etl/src/Flow/ETL/Filesystem/Stream/StreamWrapper.php | 2 +- .../etl/src/Flow/ETL/Filesystem/Stream/VoidStreamWrapper.php | 5 +++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AwsS3Stream.php b/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AwsS3Stream.php index 701777f75..a674ba6b4 100644 --- a/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AwsS3Stream.php +++ b/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AwsS3Stream.php @@ -13,6 +13,11 @@ final class AwsS3Stream extends FlysystemWrapper { public const PROTOCOL = 'flow-aws-s3'; + /** + * @var null|resource + */ + public $context; + public static function register() : void { if (!\class_exists('League\Flysystem\AwsS3V3\AwsS3V3Adapter')) { diff --git a/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AzureBlobStream.php b/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AzureBlobStream.php index 865967810..62c1eb252 100644 --- a/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AzureBlobStream.php +++ b/src/adapter/etl-adapter-filesystem/src/Flow/ETL/Adapter/Filesystem/AzureBlobStream.php @@ -16,6 +16,11 @@ final class AzureBlobStream extends FlysystemWrapper { public const PROTOCOL = 'flow-azure-blob'; + /** + * @var null|resource + */ + public $context; + public static function register() : void { if (!\class_exists('League\Flysystem\AzureBlobStorage\AzureBlobStorageAdapter')) { diff --git a/src/core/etl/src/Flow/ETL/Filesystem/Stream/StreamWrapper.php b/src/core/etl/src/Flow/ETL/Filesystem/Stream/StreamWrapper.php index 5f4a67c4e..d53cbfb14 100644 --- a/src/core/etl/src/Flow/ETL/Filesystem/Stream/StreamWrapper.php +++ b/src/core/etl/src/Flow/ETL/Filesystem/Stream/StreamWrapper.php @@ -5,7 +5,7 @@ namespace Flow\ETL\Filesystem\Stream; /** - * @property resource $context + * @property null|resource $context */ interface StreamWrapper { diff --git a/src/core/etl/src/Flow/ETL/Filesystem/Stream/VoidStreamWrapper.php b/src/core/etl/src/Flow/ETL/Filesystem/Stream/VoidStreamWrapper.php index 772746391..89645c05c 100644 --- a/src/core/etl/src/Flow/ETL/Filesystem/Stream/VoidStreamWrapper.php +++ b/src/core/etl/src/Flow/ETL/Filesystem/Stream/VoidStreamWrapper.php @@ -8,6 +8,11 @@ final class VoidStreamWrapper implements StreamWrapper { public const PROTOCOL = 'void'; + /** + * @var null|resource + */ + public $context; + public static function register() : void { if (!\in_array(self::PROTOCOL, \stream_get_wrappers(), true)) {