Skip to content

Commit

Permalink
[wip] composer psalm:ci works on my local
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Oct 27, 2023
1 parent e06687d commit c3e96f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"brain/monkey": "^2.6",
"mikey179/vfsstream": "^2.0",
"mockery/mockery": "^1.5",
"php-stubs/wordpress-stubs": "~6.2.0",
"roots/wordpress-no-content": "~6.2.0"
},
"autoload": {
Expand Down
11 changes: 10 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@
</ignoreFiles>
</projectFiles>

<extraFiles>
<directory name="vendor/roots/wordpress-no-content"/>
</extraFiles>

<!-- https://github.com/vimeo/psalm/issues/5791 -->
<!-- Do not stub noop.php -->
<stubs>
<file name="vendor/php-stubs/wordpress-stubs/wordpress-stubs.php"/>
<file name="vendor/roots/wordpress-no-content/wp-includes/l10n.php"/>
<file name="vendor/roots/wordpress-no-content/wp-includes/theme.php"/>
<file name="vendor/roots/wordpress-no-content/wp-includes/formatting.php"/>
<file name="vendor/roots/wordpress-no-content/wp-includes/kses.php"/>
</stubs>

<issueHandlers>
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/ServiceIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function boot(App\Container $c): bool
// phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong
if ($this->isGutenbergPluginActive()) {
$this->notice->addNotice(
__(
\__(
'Gutenberg Version Manager cannot activate the Gutenberg plugin because a version of it is currently active. Please disable the Gutenberg plugin first.',
'gutenberg-versions-manager'
),
Expand Down

0 comments on commit c3e96f5

Please sign in to comment.