Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Nov 11, 2021
1 parent 798b705 commit c22cafc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/psalm.yml
Expand Up @@ -29,6 +29,10 @@ jobs:
- name: Run composer install
run: composer install -n --prefer-dist


- name: Build container
run: cd packages/skeleton && php ./bin/console cache:clear

- name: Run psalm
run: ./vendor/bin/psalm --output-format=github --shepherd
# uses: docker://vimeo/psalm-github-actions
Expand Down
6 changes: 5 additions & 1 deletion packages/core/src/Utils/F.php
Expand Up @@ -18,9 +18,13 @@ public static function file_get_contents(string $filename): string
}

/**
* @param string|array $pattern
* @param string|array $replacement
* @param string|array $subject
*
* @return string|string[]
*/
public static function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, int &$count = 0): string|array // @phpstan-ignore-line
public static function preg_replace($pattern, $replacement, $subject, int $limit = -1, int &$count = 0) // @phpstan-ignore-line
{
$return = preg_replace($pattern, $replacement, $subject, $limit, $count);

Expand Down

0 comments on commit c22cafc

Please sign in to comment.