touch docs to run build
authorgggeek <giunta.gaetano@gmail.com>
Mon, 15 Apr 2024 11:41:00 +0000 (11:41 +0000)
committergggeek <giunta.gaetano@gmail.com>
Mon, 15 Apr 2024 11:41:00 +0000 (11:41 +0000)
.github/workflows/ci.yaml
src/Helper/XMLParser.php

index 5fa6c8c..a187fee 100644 (file)
@@ -89,7 +89,7 @@ jobs:
             #        key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
 
             -   name: install dependencies
-                run: 'composer install'
+                run: 'composer install --no-progress'
 
             -   name: run tests and upload coverage info if needed
                 run: |
@@ -147,7 +147,7 @@ jobs:
                     sudo cat /var/log/php*.log
 
     # Whenever a change is pushed to this library, we run as well the tests of all known packages depending on it,
-    # so that we can catch any (involuntary) breackage.
+    # so that we can catch any (involuntary) breakage.
     # NB: if any are detected, do not forget to mark the current versions of dependents as incompatible in composer.json
     test-dependencies:
         runs-on: ubuntu-20.04
index 2a2094a..9212d1f 100644 (file)
@@ -929,6 +929,7 @@ class XMLParser
         // Details:
         // SPACE:         (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+
         // EQ:            SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]*
+        // We could be stricter on version number: VersionNum ::= '1.' [0-9]+
         if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" .
             '\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
             $xmlChunk, $matches)) {
@@ -988,6 +989,7 @@ class XMLParser
         // Details:
         // SPACE:         (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+
         // EQ:            SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]*
+        // We could be stricter on version number: VersionNum ::= '1.' [0-9]+
         if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" .
             '\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
             $xmlChunk)) {