Skip to content

Bogus error on Eloquent orderBy() #180

Description

@CicerBro

PHPantom version

Master

Installation method

Built from source

Operating system

macOS aarch64 (Apple Silicon)

Editor

VS Code

Bug description

->orderBy('id', 'desc'); afaik 'desc' is fine here.

Image

But console error shows:

Argument 2 ($direction) expects SortDirection|'asc'|'desc', got string

Unrelated. But I also noticed PHPantom shows errors on files that arent open in the editor. Like in this instance I hovered the 'orderBy()method in Cursor so it shows the method signature in a popover. And my console got filled with PHPAntom type_mismatch_argument errors from the LaravelDatabase/Query/Builder.php` file.

Steps to reproduce

N/A

Error output or panic trace


.phpantom.toml

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions