VScode intelephense does not recognise PHP signature
class Solution {

    /**
     * @param Integer[] $nums
     * @param Integer $target
     * @return Integer[]
     */
    function twoSum($nums, $target) {

    }
}

@param \Integer[] $nums

Expected type 'null|bool|int|float|string|array'. Found 'Integer'.intelephense(1006)
Why is the parameter type Integer instead of int? Every time I paste the code into VScode I have to change Interger to int. It seems int is the correct type.

Comments (1)