aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2023-03-21 19:56:21 +0100
committerChristian Weiske <cweiske@cweiske.de>2023-03-22 22:21:03 +0100
commitc6ba8c79609aaf6bd85c2b8765bc1629b5f0db72 (patch)
treef3e84db4bc4201e1e5f552a4c03f73238804f327 /src
parente9867d24b944b1c9c71c2c6c214cb80ba628c0b9 (diff)
downloadphorkie-c6ba8c79609aaf6bd85c2b8765bc1629b5f0db72.tar.gz
phorkie-c6ba8c79609aaf6bd85c2b8765bc1629b5f0db72.zip
Fix curly brace when accessing character inside string
Diffstat (limited to 'src')
-rw-r--r--src/phorkie/Repository.php2
-rw-r--r--src/phorkie/Repository/Remote.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php
index eae2fb4..fab32a1 100644
--- a/src/phorkie/Repository.php
+++ b/src/phorkie/Repository.php
@@ -210,7 +210,7 @@ class Repository
->execute();
$files = explode("\n", trim($output));
foreach ($files as &$file) {
- if ($file{0} == '"') {
+ if ($file[0] == '"') {
$file = $this->decodeFileName($file);
}
}
diff --git a/src/phorkie/Repository/Remote.php b/src/phorkie/Repository/Remote.php
index 3bb153f..e46d3a9 100644
--- a/src/phorkie/Repository/Remote.php
+++ b/src/phorkie/Repository/Remote.php
@@ -73,7 +73,7 @@ class Repository_Remote
public function isLocal()
{
return isset($this->arConfig['url'])
- && $this->arConfig['url']{0} == '/';
+ && $this->arConfig['url'][0] == '/';
}
/**