-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align adapter types to ext reflection collection-ish method types #572
Align adapter types to ext reflection collection-ish method types #572
Conversation
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 3.10.1 to 3.11.2. - [Release notes](https://github.com/vimeo/psalm/releases) - [Commits](vimeo/psalm@3.10.1...3.11.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
…lection` types Effectively, this ensures following type changes: * `ReflectionClass#getProperties() : array<string, ReflectionProperty>` => `ReflectionClass#getProperties() : list<ReflectionProperty>` * `ReflectionClass#getReflectionConstants() : array<string, ReflectionClassConstant>` => `ReflectionClass#getReflectionConstants() : list<ReflectionClassConstant>` * `ReflectionClass#getTraits() : array<int, ReflectionClass>` => `ReflectionClass#getTraits() : array<trait-string, ReflectionClass>` * `ReflectionObject#getProperties() : array<string, ReflectionProperty>` => `ReflectionObject#getProperties() : list<ReflectionProperty>` * `ReflectionProperty#setValue() : void|null` => `ReflectionProperty#setValue() : void`
fcbf996
to
beca868
Compare
Yeah, I'd view this as an implementation bug. No idea on whether many people are actually using the adapters, I'd guess not many (since they don't have much real advantage over built-in reflection I guess, beside static reflection), so I figure it probably won't affect (m)any anyway. |
…we are not requiring it ourselves All code paths using `webmozart/assert` were mostly type-checks about unhappy paths that should not (in theory) be possible. Ref: #572 (comment)
Applied patch to get rid of |
LGTM |
I'm a heavy user of the adapters so you'll definitely hear from me if you screw something up ❤️ 👍 |
(I hope you see the friendliness in the message, I used a similar tone @Ocramius often uses :)) |
heh, sorry in advance if this breaks something. in theory, if you relied on the |
Fixes #568
Potentially a BC break, but I would rather say that here
BetterReflection
is not respecting the types inherited fromext-reflection
.@asgrim can I please have your opinion on this? Should I release it under
4.x
, or push5.0.0
? I'm inclined to call it a4.x
problem (since we don't control the type)