Skip to content

Commit

Permalink
fix php 7.4 incompatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saimaz committed Feb 5, 2020
1 parent 4f48835 commit f535901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Service/ExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function exportIndex(
*/
protected function getFilePath($filename): string
{
if ($filename{0} == '/' || strstr($filename, ':') !== false) {
if ($filename[0] == '/' || strstr($filename, ':') !== false) {
return $filename;
}

Expand Down
2 changes: 1 addition & 1 deletion Service/ImportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function importIndex(
*/
protected function getFilePath($filename)
{
if ($filename{0} == '/' || strstr($filename, ':') !== false) {
if ($filename[0] == '/' || strstr($filename, ':') !== false) {
return $filename;
}

Expand Down

0 comments on commit f535901

Please sign in to comment.