`scalar` is not a valid php type