Wrong warning on constructor parameter

I got strange warning "Expected parameter of type 'string', 'string' provided"!

on this:

class ServiceContainer extends Container
{

public function __construct()
{
parent::__construct("_services");
}

the Container class has the constructor __construct(string $home)

The Ide is PHPStorm 2020.2.4 on MacOS Big Sur 11.0.1 

0
1 comment

The problem is wrong version on PHP language level, I don't know how it switched from 7.4 to 5.6!

0

Please sign in to leave a comment.