Oleg Namaka

Results 18 comments of Oleg Namaka

This library seems abandoned.

> What would be the point of singletons? Enums are [value objects](https://en.wikipedia.org/wiki/Value_object) and value objects equality is not based on identity: > > > a value object is a small...

The issue was related to an older version of NX3 being used instead of the latest one. Please, resolve it as non-reproducible.

See also https://github.com/vimeo/psalm/issues/3293

@seferov it's not fixed. I am still getting the same error(s) about unused classes. I am on the latest psalm and the latest plugin versions `Psalm 4.10.0@916b098b008f6de4543892b1e0651c1c3b92cbfa` and `psalm/plugin-symfony v3.0.3...

@seferov Yes, I did configure the container XML file. Here's a sample project that produces the following errors [psalm-symfony-test.tar.gz](https://github.com/psalm/psalm-plugin-symfony/files/7293874/psalm-symfony-test.tar.gz) ![psalm-symfony-plugin-issue-1](https://user-images.githubusercontent.com/1529043/136206592-f294f0a3-aa1c-4764-b7ad-f0024c2caf4a.jpg)

@BackEndTea it's already possible to do that, but it's not ideal. The point is, there is hardly any reason for the library to use InvalidArgumentException.

@Ocramius in this case, the logic of your application would need to be able to distinguish between InvalidArgumentException and its descendent used by the Assert library. Hardly the best of...

[assert-implements tests](https://github.com/webmozart/assert/blob/master/tests/static-analysis/assert-implementsInterface.php) is missing a test case for passing an object. I wonder if this case is even supported, as the assertion is made $value is a string: `@psalm-assert class-string...

I have managed to fix it. Will probably provide a PR: https://psalm.dev/r/4e5e7b02bb