- extend class in your /helpers or similar folder
- copy and modify function from original class, don't forget to add namespace in new class
- call new extended class in your code and use function from new class
NOTE: if this functionality or fix is really usefull for others, fork clone edit original repo and make PR so others can benefit from your work too :)