We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
private function first() { $var = getenv('env'); Assertion::eq($var, 'value'); $this->second($var); } private function second(string $needsString) { }
Returns
Parameter #1 $needsString of method ::second() expects string, string|false given.
Even though we know the possible set of types for $var is string when passed into second(). Or am I wrong?
$var
string
second()
The text was updated successfully, but these errors were encountered:
Is eq the equivalent to == or ===? Anyway, adding another assertion to string() will not kill you ;)
eq
==
===
string()
Sorry, something went wrong.
I see, there's ::same method ;) thanks
::same
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Returns
Even though we know the possible set of types for
$var
isstring
when passed intosecond()
. Or am I wrong?The text was updated successfully, but these errors were encountered: