profile
viewpoint

Ask questionsSupport nullable types

Code Example

<?php
class A {
/** @var ?B */
public $b;
}

class B {
public $c;
}

function test() {
return (new A)->b->c;
}

Actual Behavior

Property {?B}->c does not exist

Expected Behavior

Either no errors or warning that {A->b} might be null.

VKCOM/noverify

Answer questions quasilyte

We have nullable types parsing support, but it's not used yet. :)

useful!

Related questions

No questions were found.
Github User Rank List