Skip to content

Commit

Permalink
Revert "Added PyObject::toString(), it is an alias for PyObject::__to…
Browse files Browse the repository at this point in the history
…String()"

This reverts commit bd0a74f.
  • Loading branch information
matyhtf committed May 28, 2024
1 parent e55fe30 commit d85e241
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
8 changes: 0 additions & 8 deletions stubs/phpy_object.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ public function __toString(): string

}

/**
* @implementation-alias PyObject::__toString
*/
public function toString(): string
{

}

public function __invoke(mixed ...$arguments): mixed
{

Expand Down
5 changes: 1 addition & 4 deletions stubs/phpy_object_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: bd509faeced9617d3f064788b4a5a571ff400e07 */
* Stub hash: 6c2b1214662b2b65bab2468fcd8c505dd8dca9a0 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PyObject___construct, 0, 0, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_MIXED, 0, "null")
Expand All @@ -22,8 +22,6 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PyObject___toString, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()

#define arginfo_class_PyObject_toString arginfo_class_PyObject___toString

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PyObject___invoke, 0, 0, IS_MIXED, 0)
ZEND_ARG_VARIADIC_TYPE_INFO(0, arguments, IS_MIXED, 0)
ZEND_END_ARG_INFO()
Expand Down Expand Up @@ -86,7 +84,6 @@ static const zend_function_entry class_PyObject_methods[] = {
ZEND_ME(PyObject, __get, arginfo_class_PyObject___get, ZEND_ACC_PUBLIC)
ZEND_ME(PyObject, __set, arginfo_class_PyObject___set, ZEND_ACC_PUBLIC)
ZEND_ME(PyObject, __toString, arginfo_class_PyObject___toString, ZEND_ACC_PUBLIC)
ZEND_MALIAS(PyObject, toString, __toString, arginfo_class_PyObject_toString, ZEND_ACC_PUBLIC)
ZEND_ME(PyObject, __invoke, arginfo_class_PyObject___invoke, ZEND_ACC_PUBLIC)
ZEND_ME(PyObject, offsetGet, arginfo_class_PyObject_offsetGet, ZEND_ACC_PUBLIC)
ZEND_ME(PyObject, offsetSet, arginfo_class_PyObject_offsetSet, ZEND_ACC_PUBLIC)
Expand Down

0 comments on commit d85e241

Please sign in to comment.