-
Notifications
You must be signed in to change notification settings - Fork 696
Closed
Labels
Help wantedbugeasy problemsIssues that can be fixed without background knowledge of PsalmIssues that can be fixed without background knowledge of Psalmgood first issueinternal stubs/callmap
Description
This Code:
<?php
class Math
{
public function __construct(
public readonly ?int $scale = null
) {
}
/**
* @param numeric-string $x
* @param numeric-string $y
*
* @return numeric-string
*/
public function div(string $x, string $y): string
{
return bcdiv($x, $y, $this->scale);
}
}In the bcdiv() docs, we can see that the scale can be Nullable
- Psalm Version: 5.14.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Help wantedbugeasy problemsIssues that can be fixed without background knowledge of PsalmIssues that can be fixed without background knowledge of Psalmgood first issueinternal stubs/callmap
