Skip to content

Commit

Permalink
Fix some smaller formatting inconsistencies in stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jul 19, 2021
1 parent d2cc723 commit fc0d898
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ext/mysqli/mysqli.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public function execute(?array $params = null): bool {}
* @tentative-return-type
* @alias mysqli_stmt_fetch
*/
public function fetch(): bool|null {}
public function fetch(): ?bool {}

/**
* @tentative-return-type
Expand Down
2 changes: 1 addition & 1 deletion ext/mysqli/mysqli_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 3a51cb95700990b4722dfefe341aeeb0b28461d7 */
* Stub hash: 24c39f0e20df18cfb564df36bc59588c5c37baf3 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
Expand Down
2 changes: 1 addition & 1 deletion ext/openssl/openssl.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function openssl_pkcs7_read(string $data, &$certificates): bool {}
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 {}

/** @param OpenSSLCertificate|array|string $certificate */
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 {}
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 {}

/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key */
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 {}
Expand Down
2 changes: 1 addition & 1 deletion ext/openssl/openssl_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: e22d778ea875c9db92ac7f44d62c694152eef229 */
* Stub hash: a4b535ad55e15d61baa83f697071fc77f7e9c4e0 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 2, _IS_BOOL, 0)
ZEND_ARG_OBJ_TYPE_MASK(0, certificate, OpenSSLCertificate, MAY_BE_STRING, NULL)
Expand Down
2 changes: 1 addition & 1 deletion ext/reflection/php_reflection.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ public function getCases(): array {}

public function isBacked(): bool {}

public function getBackingType(): ReflectionType|null {}
public function getBackingType(): ?ReflectionType {}
}

class ReflectionEnumUnitCase extends ReflectionClassConstant
Expand Down
2 changes: 1 addition & 1 deletion ext/reflection/php_reflection_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: b70561858fb66134ce9596921215881fd9b946c0 */
* Stub hash: 168c80203d91f05121c17835b775b9a00757e9da */

ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_iterators.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function next(): void {}
abstract class FilterIterator extends IteratorIterator
{
/** @tentative-return-type */
abstract public function accept(): bool;
abstract public function accept(): bool {}

public function __construct(Iterator $iterator) {}

Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_iterators_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 889a6eed2d62fbb6af168146840189d37765dbaa */
* Stub hash: 82763d538f01f6042b693836bfd4fd6a30fdf76c */

ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_EmptyIterator_current, 0, 0, never, 0)
ZEND_END_ARG_INFO()
Expand Down

0 comments on commit fc0d898

Please sign in to comment.