Skip to content

Commit

Permalink
Merge pull request #270 from neclimdul/context-property
Browse files Browse the repository at this point in the history
  • Loading branch information
allejo authored Feb 23, 2022
2 parents 953553b + 4928328 commit 20e11ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vfsStreamWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ class vfsStreamWrapper
* file mode: read and write
*/
public const ALL = 2;
/**
* The current context or null if none passed.
*
* @var resource|null
*/
public $context;
/**
* switch whether class has already been registered as stream wrapper or not
*
Expand Down
6 changes: 6 additions & 0 deletions tests/phpt/bug71287.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ See https://github.com/mikey179/vfsStream/issues/120
--FILE--
<?php
class Stream {
/**
* The current context or null if none passed.
*
* @var resource|null
*/
public $context;
public function stream_open($path, $mode, $options, $opened_path) {

return true;
Expand Down

0 comments on commit 20e11ff

Please sign in to comment.