laravel-ide-helper
laravel-ide-helper copied to clipboard
Public ModelsCommand::loadModels() returns not models only
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.
This affects all code that extends this class.
Originally reported here: https://github.com/psalm/psalm-plugin-laravel/issues/244