Skip to content

Commit

Permalink
Fix Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Mar 1, 2023
1 parent 22d960f commit e326953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Env/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function resolveFilterName(string $name): string
*
* @param string $mode One of the `FILTER_*` class constants.
* @param mixed $value
* @return int|bool|string|null
* @return int|float|bool|string|null
*/
public function filter(string $mode, $value)
{
Expand Down Expand Up @@ -205,6 +205,6 @@ private function filterTablePrefix($value): string
return 'wp_';
}

return (string)preg_replace('#[\W]#', '', $value);
return (string)preg_replace('#\W#', '', $value);
}
}

0 comments on commit e326953

Please sign in to comment.