Skip to content

Commit 1bcce53

Browse files
authored
Merge pull request #220 from Kharhamel/codecov
Codecov
2 parents 04f9ffa + 38114e3 commit 1bcce53

File tree

4 files changed

+11
-21
lines changed

4 files changed

+11
-21
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ jobs:
109109
name: "build"
110110
path: "generator/build"
111111

112-
- name: "Upload test coverage to coveralls"
113-
continue-on-error: true
114-
run: "php vendor/bin/php-coveralls -v"
115-
working-directory: "generator"
116-
env:
117-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
118-
COVERALLS_RUN_LOCALLY: 1
112+
- uses: codecov/codecov-action@v1 # upload the coverage to codecov
113+
with:
114+
fail_ci_if_error: true # optional (default = false)

generated/filesystem.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
741741
* break, you need to use the correct line-ending character(s) for your
742742
* operating system. Unix based systems use \n as the
743743
* line ending character, Windows based systems use \r\n
744-
* as the line ending characters and Macintosh based systems use
744+
* as the line ending characters and Macintosh based systems (Mac OS Classic) used
745745
* \r as the line ending character.
746746
*
747747
* If you use the wrong line ending characters when writing your files, you
@@ -756,22 +756,18 @@ function flock($handle, int $operation, ?int &$wouldblock = null): void
756756
* 'b' or 't' as the last character
757757
* of the mode parameter.
758758
*
759-
* The default translation mode depends on the SAPI and version of PHP that
760-
* you are using, so you are encouraged to always specify the appropriate
761-
* flag for portability reasons. You should use the 't'
759+
* The default translation mode is 'b'.
760+
* You can use the 't'
762761
* mode if you are working with plain-text files and you use
763762
* \n to delimit your line endings in your script, but
764-
* expect your files to be readable with applications such as notepad. You
763+
* expect your files to be readable with applications such as old versions of notepad. You
765764
* should use the 'b' in all other cases.
766765
*
767-
* If you do not specify the 'b' flag when working with binary files, you
766+
* If you specify the 't' flag when working with binary files, you
768767
* may experience strange problems with your data, including broken image
769768
* files and strange problems with \r\n characters.
770769
*
771-
* For portability, it is strongly recommended that you always
772-
* use the 'b' flag when opening files with fopen.
773-
*
774-
* Again, for portability, it is also strongly recommended that
770+
* For portability, it is also strongly recommended that
775771
* you re-write code that uses or relies upon the 't'
776772
* mode so that it uses the correct line endings and
777773
* 'b' mode instead.

generated/pcre.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,7 @@ function preg_match(string $pattern, string $subject, array &$matches = null, in
602602
* @param string $subject The input string.
603603
* @param int|null $limit If specified, then only substrings up to limit
604604
* are returned with the rest of the string being placed in the last
605-
* substring. A limit of -1 or 0 means "no limit"
606-
* and, as is standard across PHP, you can use NULL to skip to the
607-
* flags parameter.
605+
* substring. A limit of -1 or 0 means "no limit".
608606
* @param int $flags flags can be any combination of the following
609607
* flags (combined with the | bitwise operator):
610608
*

lib/DateTimeImmutable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public static function createFromMutable($dateTime): self
226226
* @param mixed[] $array
227227
* @return DateTimeImmutable
228228
*/
229-
public static function __set_state(array $array): self
229+
public static function __set_state($array): self
230230
{
231231
return self::createFromRegular(parent::__set_state($array));
232232
}

0 commit comments

Comments
 (0)