Skip to content

Commit

Permalink
touch docs to run build
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Apr 15, 2024
1 parent 28a2b57 commit 5b59cb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/Helper/XMLParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ public static function guessEncoding($httpHeader = '', $xmlChunk = '', $encoding
// 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)) {
Expand Down Expand Up @@ -988,6 +989,7 @@ public static function hasEncoding($xmlChunk)
// 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)) {
Expand Down

0 comments on commit 5b59cb5

Please sign in to comment.