Skip to content

[Bug]: Invalid model helper generated for casts with parameters #522

@smares

Description

@smares

Extension Version

1.3.0

PHP Binary

Sail

Operating System

Linux

What happened?

Some of my models use casts like E164PhoneNumberCast from the LaravelPhone package. The cast is defined like this:

Image

This is what artisan model show prints:

Image

The model helper is generated with an invalid PHPDoc:

Image

Mimimal Code Sample

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions