Skip to content

Commit

Permalink
Fix deprecation notice on dynamic property
Browse files Browse the repository at this point in the history
  • Loading branch information
Gildas Quéméner committed Sep 3, 2022
1 parent 55f26c9 commit 7452497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ Feature: Developer specifies object construction
class ClassConstructor
{
private $type;
public function __construct($type)
{
$this->type = $type;
Expand Down Expand Up @@ -402,6 +404,8 @@ Feature: Developer specifies object construction
class ClassWithFactoryMethod
{
private $type;
private function __construct($type)
{
$this->type = $type;
Expand Down
2 changes: 2 additions & 0 deletions src/PhpSpec/Loader/StreamWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class StreamWrapper

private static $specTransformers = array();

public $context;

public static function register(): void
{
if (\in_array('phpspec', stream_get_wrappers())) {
Expand Down

0 comments on commit 7452497

Please sign in to comment.