Skip to content

ignoreErrors matcher sometimes doesn't work #3602

@antonioribeiro

Description

@antonioribeiro
PHP 7.4.5
phpstan/phpstan: 0.12.32

As you can see the error string and the matcher are equals ($ escaped), but it doesn't match:

image

Here's the related config:

includes:
    - ./vendor/nunomaduro/larastan/extension.neon

parameters:

    level: 5

    ignoreErrors:
        - '#Method PragmaRX\Notified\Data\Repositories\Notified::firstOrCreateByEvent() should return PragmaRX\Notified\Data\Models\Notified but returns Illuminate\Database\Eloquent\Model|null#'
        - '#Access to an undefined property Illuminate\Database\Eloquent\Model::\$driver#'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions