Skip to content

Commit fc0d898

Browse files
committed
Fix some smaller formatting inconsistencies in stubs
1 parent d2cc723 commit fc0d898

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

ext/mysqli/mysqli.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public function execute(?array $params = null): bool {}
515515
* @tentative-return-type
516516
* @alias mysqli_stmt_fetch
517517
*/
518-
public function fetch(): bool|null {}
518+
public function fetch(): ?bool {}
519519

520520
/**
521521
* @tentative-return-type

ext/mysqli/mysqli_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 3a51cb95700990b4722dfefe341aeeb0b28461d7 */
2+
* Stub hash: 24c39f0e20df18cfb564df36bc59588c5c37baf3 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
55
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)

ext/openssl/openssl.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function openssl_pkcs7_read(string $data, &$certificates): bool {}
128128
function openssl_cms_verify(string $input_filename, int $flags = 0, ?string $certificates = null, array $ca_info = [], ?string $untrusted_certificates_filename = null, ?string $content = null, ?string $pk7 = null, ?string $sigfile = null, int $encoding = OPENSSL_ENCODING_SMIME): bool {}
129129

130130
/** @param OpenSSLCertificate|array|string $certificate */
131-
function openssl_cms_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, int $cipher_algo = OPENSSL_CIPHER_RC2_40): bool {}
131+
function openssl_cms_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, int $cipher_algo = OPENSSL_CIPHER_RC2_40): bool {}
132132

133133
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key */
134134
function openssl_cms_sign(string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, $private_key, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, ?string $untrusted_certificates_filename = null): bool {}

ext/openssl/openssl_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: e22d778ea875c9db92ac7f44d62c694152eef229 */
2+
* Stub hash: a4b535ad55e15d61baa83f697071fc77f7e9c4e0 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 2, _IS_BOOL, 0)
55
ZEND_ARG_OBJ_TYPE_MASK(0, certificate, OpenSSLCertificate, MAY_BE_STRING, NULL)

ext/reflection/php_reflection.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public function getCases(): array {}
714714

715715
public function isBacked(): bool {}
716716

717-
public function getBackingType(): ReflectionType|null {}
717+
public function getBackingType(): ?ReflectionType {}
718718
}
719719

720720
class ReflectionEnumUnitCase extends ReflectionClassConstant

ext/reflection/php_reflection_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: b70561858fb66134ce9596921215881fd9b946c0 */
2+
* Stub hash: 168c80203d91f05121c17835b775b9a00757e9da */
33

44
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0)
55
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)

ext/spl/spl_iterators.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function next(): void {}
139139
abstract class FilterIterator extends IteratorIterator
140140
{
141141
/** @tentative-return-type */
142-
abstract public function accept(): bool;
142+
abstract public function accept(): bool {}
143143

144144
public function __construct(Iterator $iterator) {}
145145

ext/spl/spl_iterators_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 889a6eed2d62fbb6af168146840189d37765dbaa */
2+
* Stub hash: 82763d538f01f6042b693836bfd4fd6a30fdf76c */
33

44
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_EmptyIterator_current, 0, 0, never, 0)
55
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)