Skip to content

Commit

Permalink
Remove some incorrect mixed parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Nov 21, 2020
1 parent 0dac69c commit 40ebfd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Zend/zend_builtin_functions.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ function get_mangled_object_vars(object $object): array {}
function get_class_methods(object|string $object_or_class): array {}

/** @param object|string $object_or_class */
function method_exists(mixed $object_or_class, string $method): bool {}
function method_exists($object_or_class, string $method): bool {}

/** @param object|string $object_or_class */
function property_exists(mixed $object_or_class, string $property): bool {}
function property_exists($object_or_class, string $property): bool {}

function class_exists(string $class, bool $autoload = true): bool {}

Expand Down
6 changes: 3 additions & 3 deletions Zend/zend_builtin_functions_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: 9a77101b93e8584315bf43305830e129d359b033 */
* Stub hash: b09e9199a21595a3b6f6c02db81c8e22c36c277f */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
Expand Down Expand Up @@ -84,12 +84,12 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class_methods, 0, 1, IS_ARRA
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_method_exists, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, object_or_class, IS_MIXED, 0)
ZEND_ARG_INFO(0, object_or_class)
ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_property_exists, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, object_or_class, IS_MIXED, 0)
ZEND_ARG_INFO(0, object_or_class)
ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0)
ZEND_END_ARG_INFO()

Expand Down

0 comments on commit 40ebfd6

Please sign in to comment.