PHP Notice: Use of undefined constant type
<p>I'm doing something wrong and I can't figure out what to do about it (how to fix it)</p>

<p>code:</p>

<pre><code>var_dump($each-&gt;promotion-type);
</code></pre>

<p>returns:</p>

<pre><code>PHP Notice:  Use of undefined constant type - assumed 'type' in newfile.php on line 19
</code></pre>

<p>I can't change that variable name as that how I get from my vendor, any ideas how I can access that promotion-type variable? (syntax wise)</p>
