@@ -555,27 +555,28 @@ static void test_nr_lib_aws_sdk_php_handle_version(void) {
555
555
556
556
#if ZEND_MODULE_API_NO >= ZEND_8_1_X_API_NO
557
557
static void setup_inherited_classes () {
558
- tlib_php_request_eval (
559
- "class endpoint_class{"
560
- "public ?string $host;"
561
- "public ?int $port;"
562
- "function __construct(?int $port = null, ?string $host = null) {"
563
- "$this->host = $host;"
564
- "$this->port = $port;"
565
- "}"
558
+ // clang-format off
559
+ const char * classes =
560
+ "class endpoint_class {"
561
+ "public ?string $host;"
562
+ "public ?int $port;"
563
+ "function __construct(?int $port = null, ?string $host = null) {"
564
+ "$this->host = $host;"
565
+ "$this->port = $port;"
566
+ "}"
566
567
"}"
567
568
"class base_class {"
568
- "private ?string $region;"
569
- "private ?endpoint_class $endpoint;"
570
- "function base_func($command, $args, $expects) {return;}"
571
- "function __construct(?string $region = null, ?int $port = null, ?string "
572
- "$host = null) {"
573
- "$this->region = $region;"
574
- "$this->endpoint = new endpoint_class($port, $host);"
575
- "}"
569
+ "private ?string $region;"
570
+ "private ?endpoint_class $endpoint;"
571
+ "function base_func($command, $args, $expects) {return;}"
572
+ "function __construct(?string $region = null, ?int $port = null, ?string $host = null) {"
573
+ "$this->region = $region;"
574
+ "$this->endpoint = new endpoint_class($port, $host);"
575
+ "}"
576
576
"}"
577
- "class top_class extends base_class {"
578
- "}" );
577
+ "class top_class extends base_class {}" ;
578
+ // clang-format on
579
+ tlib_php_request_eval (classes );
579
580
}
580
581
static void test_nr_lib_aws_sdk_php_dynamodb_set_params () {
581
582
zval * obj = NULL ;
0 commit comments