Skip to content

Commit

Permalink
Fix deprecated dynamic property usage (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd authored Jun 2, 2024
1 parent 88b50cb commit 42df541
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Flow\ETL\Filesystem\Stream;

/**
* @property resource $context
* @property null|resource $context
*/
interface StreamWrapper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 42df541

Please sign in to comment.