Skip to content

Commit bccaaa1

Browse files
authored
Merge pull request #127 from reedy/reedy-patch-1
Add .gitattributes
2 parents 4e8f840 + 88eb6ac commit bccaaa1

File tree

7 files changed

+51
-11
lines changed

7 files changed

+51
-11
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.travis.yml export-ignore
4+
/CONTRIBUTING.md export-ignore
5+
/phpcs.xml.dist export-ignore
6+
/phpstan.neon export-ignore
7+
/benchmark export-ignore
8+
/generator export-ignore

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ script:
5252
else
5353
# Uncommitted changes
5454
echo "Generated files are different from commited files. Please run './safe.php generate' command and commit the results."
55+
echo "Detected changes:"
56+
git status
57+
git diff
58+
echo "Generated files are different from commited files. Please run './safe.php generate' command and commit the results."
5559
exit 1;
5660
fi
5761
- cd generator/tests/rector/0.4 && composer install && composer rector && composer test && cd ../../../..

generated/com.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,7 @@ function com_load_typelib(string $typelib_name, bool $case_sensitive = true): vo
120120
function com_print_typeinfo(object $comobject, string $dispinterface = null, bool $wantsink = false): void
121121
{
122122
error_clear_last();
123-
if ($wantsink !== false) {
124-
$result = \com_print_typeinfo($comobject, $dispinterface, $wantsink);
125-
} elseif ($dispinterface !== null) {
126-
$result = \com_print_typeinfo($comobject, $dispinterface);
127-
} else {
128-
$result = \com_print_typeinfo($comobject);
129-
}
123+
$result = \com_print_typeinfo($comobject, $dispinterface, $wantsink);
130124
if ($result === false) {
131125
throw ComException::createFromPhpError();
132126
}

generated/filesystem.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,38 @@ function fwrite($handle, string $string, int $length = null): int
948948
* shells.
949949
*
950950
* @param string $pattern The pattern. No tilde expansion or parameter substitution is done.
951+
*
952+
* Special characters:
953+
*
954+
*
955+
*
956+
* * - Matches zero of more characters.
957+
*
958+
*
959+
*
960+
*
961+
* ? - Matches exactly one character (any character).
962+
*
963+
*
964+
*
965+
*
966+
* [...] - Matches one character from a group of
967+
* characters. If the first character is !,
968+
* matches any character not in the group.
969+
*
970+
*
971+
*
972+
*
973+
* ... - Matches all the subdirectories, recursively.
974+
*
975+
*
976+
*
977+
*
978+
* \ - Escapes the following character,
979+
* except when the GLOB_NOESCAPE flag is used.
980+
*
981+
*
982+
*
951983
* @param int $flags Valid flags:
952984
*
953985
*

generated/network.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ function closelog(): void
5656
* Records for the Authoritative Name Servers.
5757
* @param array $addtl Passed by reference and, if given, will be populated with any
5858
* Additional Records.
59-
* @param bool $raw In case of raw mode, we query only the requested type instead of looping
60-
* type by type before going with the additional info stuff.
59+
* @param bool $raw The type will be interpreted as a raw DNS type ID
60+
* (the DNS_* constants cannot be used).
61+
* The return value will contain a data key, which needs
62+
* to be manually parsed.
6163
* @return array This function returns an array of associative arrays. Each associative array contains
6264
* at minimum the following keys:
6365
*

generated/sockets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ function socket_write($socket, string $buffer, int $length = 0): int
789789
* exported ID is only valid for the given target_pid.
790790
*
791791
* @param resource $socket A valid socket resource.
792-
* @param int $target_pid The ID of the process which will import the the socket.
792+
* @param int $target_pid The ID of the process which will import the socket.
793793
* @return string Returns an identifier to be used for the import
794794
* @throws SocketsException
795795
*

generated/yaml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @throws YamlException
2424
*
2525
*/
26-
function yaml_parse_file(string $filename, int $pos = 0, int &$ndocs = null, array $callbacks = null)
26+
function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, array $callbacks = null)
2727
{
2828
error_clear_last();
2929
$result = \yaml_parse_file($filename, $pos, $ndocs, $callbacks);

0 commit comments

Comments
 (0)