-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use stubs from stubs package #67
base: 3.x
Are you sure you want to change the base?
Conversation
🏰 Composer Production Dependency changes 🏰
|
f00e6ea
to
4925aca
Compare
4925aca
to
7000e4d
Compare
$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 {
No description provided.