Skip to content

Commit

Permalink
Merge pull request #1435 from gquemener/main
Browse files Browse the repository at this point in the history
Fix deprecation notice on dynamic property (PHP 8.2)
  • Loading branch information
ciaranmcnulty committed Dec 12, 2022
2 parents 55f26c9 + 431c828 commit 033e19e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["7.3", "7.4", "8.0", "8.1"]
php: ["7.3", "7.4", "8.0", "8.1", "8.2"]
operating-system: [ ubuntu-latest, macOS-latest, windows-latest ]
composer-flags: [""]
composer-extras: [""]
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],

"require": {
"php": "^7.3 || 8.0.* || 8.1.*",
"php": "^7.3 || 8.0.* || 8.1.* || 8.2.*",
"phpspec/prophecy": "^1.9",
"phpspec/php-diff": "^1.0.0",
"sebastian/exporter": "^3.0 || ^4.0",
Expand Down
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 033e19e

Please sign in to comment.