laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Public ModelsCommand::loadModels() returns not models only

Open alies-dev opened this issue 2 years ago • 0 comments

Versions:

  • ide-helper Version: v2.12.3

Description:

ModelsCommand class is not final and not @internal (means it's officially open to extend) and it has a public method loadModels that as you can expect from it's name should return Models only (in this case FQCNs of models). But it instead, it returns all FQCNs from scanned directories.

image

This affects all code that extends this class.

Originally reported here: https://github.com/psalm/psalm-plugin-laravel/issues/244

alies-dev avatar Jan 25 '23 20:01 alies-dev