dweeves / magmi-git

Magmi GitHub
364 stars 306 forks source link

Resolve PHP 7.4 incompatibility in the truepath function #604

Closed aadmathijssen closed 2 years ago

aadmathijssen commented 2 years ago

This PR resolves a PHP 7.4 incompatibility in the truepath function.

The following was reported by the PHP Compatibility Coding Standard for PHP_CodeSniffer regarding this incompatibility:

FILE: /path/to//magmi/inc/magmi_utils.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
97 | WARNING | [x] Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4. Found: $path{0}
---------------------------------------------------------------------------------------------------------------------------------------