You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Better type tests around instantiation and validation scenarios
These added tests verify that:
* `Enum::assert*` methods can be used in a pure form
* `Enum::from*` methods can be used in a pure form
* `Enum#__construct()` properly binds the instance type of the enumerable with the input value
* `Enum::assert*` methods currently **CANNOT** bind the input to an enumerable potential value (BUG)
* `Enum::from*` methods currently **CANNOT** bind the input to an enumerable potential value (BUG)
In addition to that, `psalm.xml` has been made a bit stricter:
* `resolveFromConfigFile` was removed (we were using the default value)
* `findUnusedPsalmSuppress` was added, allowing us to find whether intentional suppressions are now
invalid. This allows us to verify negative scenarios, in which we **expect** a type error to appear
* `restrictReturnTypes` better refines templated types, requiring inputs/outputs to match for those too
0 commit comments