Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Lower PHP requirement to >= 7.2 so this can be used on WMF prod (#6)
Browse files Browse the repository at this point in the history
* Lower PHP requirement to >= 7.2 so this can be used on WMF prod

* Update composer lock file

* Update PHPUnit version

* Composer lock :)

* PHP 7.2 does heredocs differently, cool.

Co-authored-by: TheresNoTime <[email protected]>
  • Loading branch information
MusikAnimal and theresnotime authored Sep 6, 2022
1 parent 8b06610 commit e867193
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/PHP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0', '8.1']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -46,4 +46,4 @@ jobs:
- name: Run test suite
run: |
composer full-test
php ./vendor/bin/phan -d . --long-progress-bar --allow-polyfill-parser
php ./vendor/bin/phan -d . --long-progress-bar --allow-polyfill-parser
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
}
],
"require": {
"php": ">=7.3"
"php": ">=7.2"
},
"require-dev": {
"mediawiki/mediawiki-codesniffer": "39.0.0",
"mediawiki/minus-x": "1.1.1",
"mediawiki/mediawiki-phan-config": "0.11.1",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": ">=7"
},
"scripts": {
"test": [
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class Validator {

/** @var string */
protected $ipaRegex = <<<EOD
/^[().a-z|æçðøħŋœǀ-ǃɐ-ɻɽɾʀ-ʄʈ-ʒʔʕʘʙʛ-ʝʟʡʢʰʲʷʼˀˈˌːˑ˞ˠˡˤ-˩̴̘̙̜̝̞̟̠̤̥̩̪̬̯̰̹̺̻̼̀́̂̃̄̆̈̊̋̌̏̽̚͜͡βθχ᷄᷅᷈‖‿ⁿⱱ]+$/ui
EOD;
/^[().a-z|æçðøħŋœǀ-ǃɐ-ɻɽɾʀ-ʄʈ-ʒʔʕʘʙʛ-ʝʟʡʢʰʲʷʼˀˈˌːˑ˞ˠˡˤ-˩̴̘̙̜̝̞̟̠̤̥̩̪̬̯̰̹̺̻̼̀́̂̃̄̆̈̊̋̌̏̽̚͜͡βθχ᷄᷅᷈‖‿ⁿⱱ]+$/ui
EOD;

/** @var string */
protected $stripRegex = "/[\/\[\]]/ui";
Expand Down

0 comments on commit e867193

Please sign in to comment.