Skip to content

Commit

Permalink
PHPStan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Jan 22, 2025
1 parent 8616c97 commit 3e090b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ parameters:
-
message: '/\(int\) does not accept int\|WP_Error\.$/'
path: tests/phpunit/integration/tests
-
message: '/^Parameter #1 \$post of function set_post_thumbnail expects int\|WP_Post, int\|WP_Error given\.$/'
path: tests/phpunit/integration/tests
-
message: '/^Call to deprecated method _get_first_available_transport\(\)/'
path: includes/REST_API/Hotlinking_Controller.php
Expand Down
3 changes: 0 additions & 3 deletions tests/phpunit/unit/includes/ScriptHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ trait ScriptHash {
*/
public function generate_script_hash( string $script ): ?string {
$sha384 = hash( 'sha384', $script, true );
if ( ! $sha384 ) {
return null;
}
$hash = str_replace(

Check failure on line 44 in tests/phpunit/unit/includes/ScriptHash.php

View workflow job for this annotation

GitHub Actions / Lint

Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
[ '+', '/', '=' ],
[ '-', '_', '.' ],
Expand Down

0 comments on commit 3e090b6

Please sign in to comment.