@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | public function __get(string $field_name): mixed |
| 37 | 37 | { |
| 38 | - return match ($field_name) { |
|
| 38 | + return match($field_name) { |
|
| 39 | 39 | 'value' => $this->value = new ZendValue($this->cdata->value), |
| 40 | 40 | 'u1' => $this->u1 = new ZvalU1($this->cdata->u1), |
| 41 | 41 | 'u2' => $this->u2 = new ZvalU2($this->cdata->u2), |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function __get(string $field_name): mixed |
| 43 | 43 | { |
| 44 | - return match ($field_name) { |
|
| 44 | + return match($field_name) { |
|
| 45 | 45 | 'val' => $this->val = new Zval($this->casted_cdata->casted->val), |
| 46 | 46 | 'h' => $this->h = 0xFFFF_FFFF & $this->casted_cdata->casted->h, |
| 47 | 47 | 'key' => $this->key = Pointer::fromCData( |
@@ -57,10 +57,10 @@ |
||
| 57 | 57 | |
| 58 | 58 | public function __get(string $field_name) |
| 59 | 59 | { |
| 60 | - return match ($field_name) { |
|
| 61 | - 'op1' => $this->op1 = (int)(\FFI::cast('int', $this->casted_cdata->casted->op1)?->cdata ?? -1), |
|
| 62 | - 'op2' => $this->op2 = (int)(\FFI::cast('int', $this->casted_cdata->casted->op2)?->cdata ?? -1), |
|
| 63 | - 'result' => $this->result = (int)(\FFI::cast('int', $this->casted_cdata->casted->result)?->cdata ?? -1), |
|
| 60 | + return match($field_name) { |
|
| 61 | + 'op1' => $this->op1 = (int)(\FFI::cast('int', $this->casted_cdata->casted->op1) ? ->cdata ?? -1), |
|
| 62 | + 'op2' => $this->op2 = (int)(\FFI::cast('int', $this->casted_cdata->casted->op2) ? ->cdata ?? -1), |
|
| 63 | + 'result' => $this->result = (int)(\FFI::cast('int', $this->casted_cdata->casted->result) ? ->cdata ?? -1), |
|
| 64 | 64 | 'op1_type' => $this->op1_type = $this->casted_cdata->casted->op1_type, |
| 65 | 65 | 'op2_type' => $this->op2_type = $this->casted_cdata->casted->op2_type, |
| 66 | 66 | 'result_type' => $this->result_type = $this->casted_cdata->casted->result_type, |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | public function __get(string $field_name): mixed |
| 41 | 41 | { |
| 42 | - return match ($field_name) { |
|
| 42 | + return match($field_name) { |
|
| 43 | 43 | 'type_info' => $this->cdata->type_info, |
| 44 | 44 | 'type' => $this->cdata->v->type, |
| 45 | 45 | 'type_flags' => $this->cdata->v->type_flags, |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function __get(string $field_name) |
| 38 | 38 | { |
| 39 | - return match ($field_name) { |
|
| 39 | + return match($field_name) { |
|
| 40 | 40 | 'name' => $this->name = Pointer::fromCData( |
| 41 | 41 | ZendString::class, |
| 42 | 42 | $this->casted_cdata->casted->name, |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | public function __get(string $field_name): mixed |
| 55 | 55 | { |
| 56 | - return match ($field_name) { |
|
| 56 | + return match($field_name) { |
|
| 57 | 57 | 'type' => $this->type = $this->casted_cdata->casted->type, |
| 58 | 58 | 'function_name' => $this->function_name |
| 59 | 59 | = $this->casted_cdata->casted->common->function_name !== null |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function __get(string $field_name): mixed |
| 43 | 43 | { |
| 44 | - return match ($field_name) { |
|
| 44 | + return match($field_name) { |
|
| 45 | 45 | 'func' => $this->casted_cdata->casted->func !== null |
| 46 | 46 | ? Pointer::fromCData( |
| 47 | 47 | ZendFunction::class, |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | public function __get(string $field_name) |
| 37 | 37 | { |
| 38 | - return match ($field_name) { |
|
| 38 | + return match($field_name) { |
|
| 39 | 39 | 'filename' => $this->filename = $this->cdata->filename !== null |
| 40 | 40 | ? Pointer::fromCData( |
| 41 | 41 | ZendString::class, |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | public function __get(string $field_name): mixed |
| 70 | 70 | { |
| 71 | - return match ($field_name) { |
|
| 71 | + return match($field_name) { |
|
| 72 | 72 | 'lval' => $this->lval = $this->cdata->lval, |
| 73 | 73 | 'dval' => $this->dval = $this->cdata->dval, |
| 74 | 74 | 'str' => $this->str = Pointer::fromCData( |