Skip to content

Bug: PhpStorm is throwing errors on the system/ model.php when I view the code #10443

Description

@InsiteFX

PHP Version

8.4

CodeIgniter4 Version

4.7.5

CodeIgniter4 Installation Method

Manual (zip or tar.gz)

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Environment

development

Database

8.4.3

What happened?

PhpStorm is throwing 2 Errors on these 2 callable lines in the system/model | Expected: variable

  • @phpstan-method $this when($condition, callable(BaseBuilder, mixed): mixed $callback, (callable(BaseBuilder): mixed)|null $defaultCallback = null)

  • @phpstan-method $this whenNot($condition, callable(BaseBuilder, mixed): mixed $callback, (callable(BaseBuilder): mixed)|null $defaultCallback = null)

Not sure if this is a bug I would just like clarification on this.

Steps to Reproduce

Just view the system/Model.php file in PhpStorm latest version.

Expected Output

No Errors

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions