fix warning
authorMichael Wallner <mike@php.net>
Wed, 13 Jan 2021 14:38:44 +0000 (15:38 +0100)
committerMichael Wallner <mike@php.net>
Wed, 13 Jan 2021 14:38:44 +0000 (15:38 +0100)
scripts/check_package-xml.php

index e422c6a993b679961601565940b6fdaa6c489d16..4ff8e4a081ad916105c9fa78721c8a9a58135e80 100755 (executable)
@@ -33,7 +33,7 @@ if (($xml = simplexml_load_file($file))) {
                                }
                        } else {
                                $base = basename($file);
-                               if ($base{0} !== ".") {
+                               if ($base[0] !== ".") {
                                        array_push($dirs, $file);
                                }
                        }