Skip to content

Commit

Permalink
Merge pull request #220 from Kharhamel/codecov
Browse files Browse the repository at this point in the history
Codecov
  • Loading branch information
Kharhamel authored Jun 8, 2020
2 parents 04f9ffa + 38114e3 commit 1bcce53
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ jobs:
name: "build"
path: "generator/build"

- name: "Upload test coverage to coveralls"
continue-on-error: true
run: "php vendor/bin/php-coveralls -v"
working-directory: "generator"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_RUN_LOCALLY: 1
- uses: codecov/codecov-action@v1 # upload the coverage to codecov
with:
fail_ci_if_error: true # optional (default = false)
16 changes: 6 additions & 10 deletions generated/filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
* break, you need to use the correct line-ending character(s) for your
* operating system. Unix based systems use \n as the
* line ending character, Windows based systems use \r\n
* as the line ending characters and Macintosh based systems use
* as the line ending characters and Macintosh based systems (Mac OS Classic) used
* \r as the line ending character.
*
* If you use the wrong line ending characters when writing your files, you
Expand All @@ -756,22 +756,18 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
* 'b' or 't' as the last character
* of the mode parameter.
*
* The default translation mode depends on the SAPI and version of PHP that
* you are using, so you are encouraged to always specify the appropriate
* flag for portability reasons. You should use the 't'
* The default translation mode is 'b'.
* You can use the 't'
* mode if you are working with plain-text files and you use
* \n to delimit your line endings in your script, but
* expect your files to be readable with applications such as notepad. You
* expect your files to be readable with applications such as old versions of notepad. You
* should use the 'b' in all other cases.
*
* If you do not specify the 'b' flag when working with binary files, you
* If you specify the 't' flag when working with binary files, you
* may experience strange problems with your data, including broken image
* files and strange problems with \r\n characters.
*
* For portability, it is strongly recommended that you always
* use the 'b' flag when opening files with fopen.
*
* Again, for portability, it is also strongly recommended that
* For portability, it is also strongly recommended that
* you re-write code that uses or relies upon the 't'
* mode so that it uses the correct line endings and
* 'b' mode instead.
Expand Down
4 changes: 1 addition & 3 deletions generated/pcre.php
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,7 @@ function preg_match(string $pattern, string $subject, array &$matches = null, in
* @param string $subject The input string.
* @param int|null $limit If specified, then only substrings up to limit
* are returned with the rest of the string being placed in the last
* substring. A limit of -1 or 0 means "no limit"
* and, as is standard across PHP, you can use NULL to skip to the
* flags parameter.
* substring. A limit of -1 or 0 means "no limit".
* @param int $flags flags can be any combination of the following
* flags (combined with the | bitwise operator):
*
Expand Down
2 changes: 1 addition & 1 deletion lib/DateTimeImmutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public static function createFromMutable($dateTime): self
* @param mixed[] $array
* @return DateTimeImmutable
*/
public static function __set_state(array $array): self
public static function __set_state($array): self
{
return self::createFromRegular(parent::__set_state($array));
}
Expand Down

0 comments on commit 1bcce53

Please sign in to comment.