I just was reading a snippet of code with this line:
private static ?array $labels = null;
all is clear for me, except the question mark before the array datatype.
Can you, please, explain me the presence of this little ? thing here?
TIA
I just was reading a snippet of code with this line:
private static ?array $labels = null;
all is clear for me, except the question mark before the array datatype.
Can you, please, explain me the presence of this little ? thing here?
TIA
 
    
    It means that the variable $labels is allowed to be null as well as an array.
