Skip to content
#

type-inference

Here are 139 public repositories matching this topic...

rzvc
rzvc commented May 12, 2022

Unsure if this is by design or a bug. If it is by design, it needs a better description - maybe something mentioning that the property is not necessary.

class Foo
{
	private string $str;
	
	public function __construct(string $str)
	{
		$this->str = $str;
		print_r($this->str);
	}
}

$foo = new Foo('asdf');
error_log(gettype($foo));

https://psalm.dev/r/26d7f24809

easy problems documentation good first issue

Improve this page

Add a description, image, and links to the type-inference topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the type-inference topic, visit your repo's landing page and select "manage topics."

Learn more