From 13c0d4f24ef82028f43022d3ef18b95e9a11dbf7 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Wed, 5 Feb 2025 15:02:51 -0500 Subject: [PATCH] PHPC-2497: BulkWriteException stub should inherit ServerException (#1784) --- src/MongoDB/Exception/BulkWriteException.stub.php | 2 +- src/MongoDB/Exception/BulkWriteException_arginfo.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MongoDB/Exception/BulkWriteException.stub.php b/src/MongoDB/Exception/BulkWriteException.stub.php index 5efaabfed..b4e6f6fc8 100644 --- a/src/MongoDB/Exception/BulkWriteException.stub.php +++ b/src/MongoDB/Exception/BulkWriteException.stub.php @@ -7,7 +7,7 @@ namespace MongoDB\Driver\Exception; -class BulkWriteException extends RuntimeException +class BulkWriteException extends ServerException { /** @var \MongoDB\Driver\WriteResult */ protected $writeResult; diff --git a/src/MongoDB/Exception/BulkWriteException_arginfo.h b/src/MongoDB/Exception/BulkWriteException_arginfo.h index 3d4da702f..062f002b7 100644 --- a/src/MongoDB/Exception/BulkWriteException_arginfo.h +++ b/src/MongoDB/Exception/BulkWriteException_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 8d6c350124574a892c9bbe1c8fda8b0a55e09a8b */ + * Stub hash: 3a09fcb79df6117de9924cfce65ba8762d9c8bc2 */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Exception_BulkWriteException_getWriteResult, 0, 0, MongoDB\\Driver\\WriteResult, 0) ZEND_END_ARG_INFO() @@ -13,12 +13,12 @@ static const zend_function_entry class_MongoDB_Driver_Exception_BulkWriteExcepti ZEND_FE_END }; -static zend_class_entry *register_class_MongoDB_Driver_Exception_BulkWriteException(zend_class_entry *class_entry_MongoDB_Driver_Exception_RuntimeException) +static zend_class_entry *register_class_MongoDB_Driver_Exception_BulkWriteException(zend_class_entry *class_entry_MongoDB_Driver_Exception_ServerException) { zend_class_entry ce, *class_entry; INIT_NS_CLASS_ENTRY(ce, "MongoDB\\Driver\\Exception", "BulkWriteException", class_MongoDB_Driver_Exception_BulkWriteException_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_MongoDB_Driver_Exception_RuntimeException); + class_entry = zend_register_internal_class_ex(&ce, class_entry_MongoDB_Driver_Exception_ServerException); zval property_writeResult_default_value; ZVAL_NULL(&property_writeResult_default_value);