when I use php bin/magento indexer:reindex
or php bin/magento cron:run
I keep getting this error.
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/[NAME]/public_html/vendor/magento/framework/Filesystem/Directory/Write.php on line 35
I'm using php 7.2
and Magento 2.3
Any ideas of how to fix this?