Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abhinav-pageup opened this issue Jan 8, 2025 · 1 comment
Assignees
Labels

Comments

@abhinav-pageup
Copy link

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();
        }
@getupkid
Copy link

getupkid commented Jan 8, 2025

@abhinav-pageup this is a duplicate of #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants