Closed helgatheviking closed 1 year ago
👋 Hey, looks like it's a simple case of a typo causing some grief here. In your code, you can see the line $productTag>setName( $ticket_data['product_tag'] );
which is actually missing a -
so it should be $productTag->setName( $ticket_data['product_tag'] );
SO MUCH FACEPALM
Thank you @bkuhl I could not see that for anything.
I've been there, done that, many times :)
I'm getting an error `Call to undefined function Woo3pdHelpscout\Api\setName() in /Sendgrid.php on line 193 which is specifically here:
but the top of my class defines the Tag class via use
use HelpScout\Api\Tags\Tag;
so it seems like it should be available... and none of the other use statements in the same class have asetName()
method as far as I can tell. I also tried the fully-qualified namenew HelpScout\Api\Tags\Tag()
and still get the same error.. so I am stumped.here's the rest of my code though there's obviously a lot of other stuff going on.