Skip to content

Commit 7c53429

Browse files
committed
fix psalm issues
1 parent c1f0e92 commit 7c53429

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

codepoints.net/lib/Api/Runner/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class Filter extends JsonRunner {
1111

12-
private const MAXLENGTH = 1024;
12+
private const int MAXLENGTH = 1024;
1313

1414
/**
1515
* @return string|Array

codepoints.net/lib/Api/Runner/Property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Property extends Runner {
1010

1111
private int $colormod = 0;
1212

13-
private const FIELDS = [
13+
private const array FIELDS = [
1414
'cp', 'age', 'gc', 'ccc', 'bc', 'Bidi_M', 'Bidi_C', 'dt', 'CE',
1515
'Comp_Ex', 'NFC_QC', 'NFD_QC', 'NFKC_QC', 'NFKD_QC', 'XO_NFC',
1616
'XO_NFD', 'XO_NFKC', 'XO_NFKD', 'nt', 'nv', 'jt', 'jg', 'Join_C',

codepoints.net/lib/Api/Runner/Transform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
class Transform extends JsonRunner {
1212

13-
private const MAXLENGTH = 1024;
13+
private const int MAXLENGTH = 1024;
1414

15-
private const SUBACTIONS = ['lower', 'upper', 'title', 'mirror', 'nfc', 'nfd', 'nfkc', 'nfkd'];
15+
private const array SUBACTIONS = ['lower', 'upper', 'title', 'mirror', 'nfc', 'nfd', 'nfkc', 'nfkd'];
1616

1717
/**
1818
* @return string|Array

docker-compose.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ services:
1010
- 80:80
1111
- 443:443
1212
volumes:
13-
- ./codepoints.net:/var/www/codepoints.net
14-
- ./config.ini:/var/www/config.ini
15-
- ./composer.json:/var/www/composer.json
16-
- ./composer.lock:/var/www/composer.lock
17-
- ./phpcs.xml:/var/www/phpcs.xml
18-
- ./psalm.xml:/var/www/psalm.xml
19-
- ./tests/psalm_stubs.php:/var/www/tests/psalm_stubs.php
13+
- .:/var/www
2014
- ./ops/apache2/local-confs/codepoints.net.conf:/etc/apache2/local-confs/codepoints.net.conf
2115
- ./ops/php/8.3/mods-available/99-codepoints.ini:/usr/local/etc/php/conf.d/99-codepoints.ini
2216
- ./ops/php/8.3/mods-available/99-develop.ini:/usr/local/etc/php/conf.d/99-develop.ini

0 commit comments

Comments
 (0)