Skip to content

[Bug]: Call to undefined method Microsoft\PhpParser\Node\Expression\MemberAccessExpression::getResolvedName()  #172

Closed
@abhinav-pageup

Description

@abhinav-pageup

Extension Version

0.1.16

PHP Binary

Herd

Operating System

Windows

What happened?

image

Getting this error...

Mimimal Code Sample

$attributes = $request->validate([
            'name' => 'required',
            'mobile' => 'required|integer|digits:10',
            'pincode' => 'required|integer|digits:6',
            'address' => 'required',
            'town' => 'required',
            'city' => 'required',
            'state' => 'required',
            'isDefault' => 'nullable|boolean',
        ]);

        try {
            $this->db::beginTransaction();

            if ($request->isDefault) {
                $this->addressModel::where('userId', auth()->id())->update(['isDefault' => false]);
            }

            $address = $this->addressModel::create([
                'userId' => auth()->id(),
                ...$attributes,
            ]);

            $this->db::commit();

            return sendRes($address->toArray(), 'Address has been saved successfully.');
        } catch (Exception) {
            $this->db::rollBack();

            return sendErrRes();
        }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions