-
-
Notifications
You must be signed in to change notification settings - Fork 0
Use stubs from stubs package #67
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
Conversation
🏰 Composer Production Dependency changes 🏰
|
4925aca
to
7000e4d
Compare
tests/Types.php
Outdated
$pool = Runtime::create(new EventLoopBridge()); | ||
$runtime = Runtime::create(new EventLoopBridge()); | ||
|
||
assertType('null', $runtime->run(static function (): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exact same as:
- [3.x] Add template types infinite-pool#60 (comment)
- [2.x] Ensure void return type translates to null contracts#15 (comment)
- [2.x] Ensure void return type translates to null event-loop#63 (comment)
void
is not a value, and cannot be asserted upon, while Closure(): void
is, and can be asserted upon.
You cannot evaluate a void
expression, then assert upon it: it has no value by definition.
You will need to change this assertion:
-assertType('null', $runtime->run(static function (): void {
+assertType('Closure(): void', fn() => $runtime->run(static function (): void {
7000e4d
to
ae1dc0b
Compare
ae1dc0b
to
36c9d73
Compare
No description provided.