Exception is simply suppressed because Psalm will re-analyze (and
properly report) invalid docblock without further assistance.
Refs psalm/phpunit-psalm-plugin#36
- Dropped unused var
- Added a workaround (dirty hack really) for changed type structure of
...$rest types
- Fixed missing errors (tests weren't using totallyTyped)
- Fixed problem with invariant ArrayObject
- Circumvented the problem with sticky method usage data (not really
fixed, but tests are passing now)
- Relaxed error message expectations
- Don't report TestCase descendants as unused
- Don't report test methods as unused
- Don't report providers referenced by test methods as unused
Refs psalm/phpunit-psalm-plugin#13
/cc @SignpostMarv
- Invalid providers (should be iterable with array elements)
- Providers returning fewer arguments then test requires
- Providers returning datasets that are incompatible with test
signatures
refs psalm/phpunit-psalm-plugin#13
Breaking change: minimum psalm version is now 3.0.10 (due to the hook
interface added in that version)
Also fixed test to be compatible with legacy PHPUnit
When there are any initializers (`setUp` or `@before`) it's quite likely
properties were initialized there. As a followup development, we may
later implement more fine-grained checks to see what actually been
initialized in those methods.