projects
/
mdref
/
mdref
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix PHP-7.4 compat
[mdref/mdref]
/
mdref
/
Tree.php
diff --git
a/mdref/Tree.php
b/mdref/Tree.php
index 357f99174f52e6811eb09865bdfe29ef2758c699..fc12a1c4233713fcc2535d3a30b63ce261a216a4 100644
(file)
--- a/
mdref/Tree.php
+++ b/
mdref/Tree.php
@@
-61,7
+61,7
@@
class Tree implements RecursiveIterator {
*/
private function generateFilter(array $list) : \Closure {
return function($v) use($list) {
*/
private function generateFilter(array $list) : \Closure {
return function($v) use($list) {
- if ($v
{0}
=== ".") {
+ if ($v
[0]
=== ".") {
return false;
}
if (false !== array_search("$v.md", $list, true)) {
return false;
}
if (false !== array_search("$v.md", $list, true)) {
@@
-85,11
+85,11
@@
class Tree implements RecursiveIterator {
$ab = basename($a, ".md");
$bb = basename($b, ".md");
$ab = basename($a, ".md");
$bb = basename($b, ".md");
- if ($ab
{0} === ":" && $bb{0}
=== ":") {
+ if ($ab
[0] === ":" && $bb[0]
=== ":") {
return strcmp($ab, $bb);
return strcmp($ab, $bb);
- } elseif ($ab
{0}
=== ":") {
+ } elseif ($ab
[0]
=== ":") {
return -1;
return -1;
- } elseif ($bb
{0}
=== ":") {
+ } elseif ($bb
[0]
=== ":") {
return 1;
}
return 1;
}