diff --git a/projects/plugins/inspect/.phan/baseline.php b/projects/plugins/inspect/.phan/baseline.php index e49af1d5b9748..028f628d89692 100644 --- a/projects/plugins/inspect/.phan/baseline.php +++ b/projects/plugins/inspect/.phan/baseline.php @@ -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) diff --git a/projects/plugins/inspect/changelog/fix-php-error-in-inspect-plugin b/projects/plugins/inspect/changelog/fix-php-error-in-inspect-plugin new file mode 100644 index 0000000000000..a96500d99496b --- /dev/null +++ b/projects/plugins/inspect/changelog/fix-php-error-in-inspect-plugin @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: This PR fixes a minor PHP warning + + diff --git a/projects/plugins/inspect/packages/Async_Option/Storage/WP_Option.php b/projects/plugins/inspect/packages/Async_Option/Storage/WP_Option.php index 3351f8ba68476..33baa593337d0 100644 --- a/projects/plugins/inspect/packages/Async_Option/Storage/WP_Option.php +++ b/projects/plugins/inspect/packages/Async_Option/Storage/WP_Option.php @@ -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;