final protected function nonNullIfHasDefault(AbstractAnnotation $annotation): void
    {
        $type = $annotation->getTypeInstance();
        if ($type instanceof NonNull && $annotation->hasDefaultValue()) {
            $annotation->setTypeInstance($type->getWrappedType());
        }
    }
final protected function nonNullIfHasDefault(AbstractAnnotation $annotation): void
    {
        $type = $annotation->getTypeInstance();
        if ($type instanceof NonNull && $annotation->hasDefaultValue()) {
            $annotation->setTypeInstance($type->getWrappedType());
        }
    }
final protected function nonNullIfHasDefault ( AbstractAnnotation $ annotation ) : void { $ type = $ annotation -> getTypeInstance ( ) ; if ( $ type instanceof NonNull && $ annotation -> hasDefaultValue ( ) ) { $ annotation -> setTypeInstance ( $ type -> getWrappedType ( ) ) ; } }
Input with default values cannot be non-null

@param AbstractAnnotation $annotation
Input with default values cannot be non - null