Skip to content

Commit

Permalink
Fix/php error in inspect plugin (#36813)
Browse files Browse the repository at this point in the history
* Fix: PHP warning due to the missing namespace variable

* changelog
  • Loading branch information
enejb authored Apr 22, 2024
1 parent a81f306 commit e9f0d96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion projects/plugins/inspect/.phan/baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
'packages/Async_Option/Async_Option.php' => ['PhanParamTooMany'],
'packages/Async_Option/Endpoint.php' => ['PhanParamTooMany'],
'packages/Async_Option/Registry.php' => ['PhanCommentParamWithoutRealParam'],
'packages/Async_Option/Storage/WP_Option.php' => ['PhanUndeclaredProperty'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: This PR fixes a minor PHP warning


Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Automattic\Jetpack\Packages\Async_Option\Storage;

class WP_Option implements Storage {
private $namespace;

public function __construct( $namepsace ) {
$this->namespace = $namepsace;
Expand Down

0 comments on commit e9f0d96

Please sign in to comment.