Forum


Replies: 1   Views: 3701
Statically declared class field is accessed in a dynamic manner
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by afoeder  · 21-07-2014 - 11:36

\CreateGraphic::$_rId is declared statically, however in \CreateGraphic::__construct it's used dynamically ($this->_rId = '';) resulting in a runtime Notice.

Posted by afoeder  · 21-07-2014 - 11:38

addition: removing the `static` keyword solved the issue so far. I could not find any usage where it's used statically, so that can probably be removed.