Php 为什么';VS代码是否正确键入提示数组项?

Php 为什么';VS代码是否正确键入提示数组项?,php,visual-studio-code,php-5.6,Php,Visual Studio Code,Php 5.6,为什么VS code将$test0键入为mixed,而不是TestClass <?php class TestClass { public $foo; public function __construct() { $this->foo = 'bar'; } public static function getMany( int $howMany ) { $testies = [];

为什么VS code将
$test0
键入为
mixed
,而不是
TestClass

<?php

class TestClass {

    public $foo;

    public function __construct() {
        
        $this->foo = 'bar';

    }

    public static function getMany( int $howMany ) {

        $testies = [];

        for( $i = 0; $i < $howMany; $i++ ) {

            $testies[] = new self();

        }

        return $testies;

    }

}

$testies = TestClass::getMany(5);
$test0 = $testies[0];