Skip to content
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

Function md5() always return non-empty-string. #987

Merged
merged 1 commit into from Feb 2, 2022

Conversation

janbarasek
Copy link
Contributor

Bugfix https://phpstan.org/r/cd56be9e-06f0-4474-98ce-360bb208a197

Sample:

<?php declare(strict_types = 1);

class HelloWorld
{
	/**
	* @return non-empty-string
	 */
	public function getHash(string $foo): string
	{
		return md5($foo);
	}
}

@ondrejmirtes ondrejmirtes merged commit 4a928f8 into phpstan:master Feb 2, 2022
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants