Skip to content

Commit e2fd3e1

Browse files
committed
Refactor ConfigValidator, make it more strict
1 parent 605c06f commit e2fd3e1

File tree

5 files changed

+395
-215
lines changed

5 files changed

+395
-215
lines changed

config/ext.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@
453453
"type": "external",
454454
"source": "msgpack",
455455
"arg-type-unix": "with",
456-
"arg-type-win": "enable",
456+
"arg-type-windows": "enable",
457457
"ext-depends": [
458458
"session"
459459
]
@@ -885,36 +885,38 @@
885885
"mysqli"
886886
]
887887
},
888-
"swoole-hook-pgsql": {
888+
"swoole-hook-odbc": {
889889
"support": {
890890
"Windows": "no",
891-
"BSD": "wip",
892-
"Darwin": "partial"
891+
"BSD": "wip"
893892
},
894893
"notes": true,
895894
"type": "addon",
896895
"arg-type": "none",
897896
"ext-depends": [
898-
"pgsql",
899897
"pdo",
900898
"swoole"
899+
],
900+
"lib-depends": [
901+
"unixodbc"
901902
]
902903
},
903-
"swoole-hook-sqlite": {
904+
"swoole-hook-pgsql": {
904905
"support": {
905906
"Windows": "no",
906-
"BSD": "wip"
907+
"BSD": "wip",
908+
"Darwin": "partial"
907909
},
908910
"notes": true,
909911
"type": "addon",
910912
"arg-type": "none",
911913
"ext-depends": [
912-
"sqlite3",
914+
"pgsql",
913915
"pdo",
914916
"swoole"
915917
]
916918
},
917-
"swoole-hook-odbc": {
919+
"swoole-hook-sqlite": {
918920
"support": {
919921
"Windows": "no",
920922
"BSD": "wip"
@@ -923,11 +925,9 @@
923925
"type": "addon",
924926
"arg-type": "none",
925927
"ext-depends": [
928+
"sqlite3",
926929
"pdo",
927930
"swoole"
928-
],
929-
"lib-depends": [
930-
"unixodbc"
931931
]
932932
},
933933
"swow": {

config/lib.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@
203203
"libcares"
204204
],
205205
"cpp-library": true,
206-
"provide-pre-built": true,
207206
"frameworks": [
208207
"CoreFoundation"
209208
]
@@ -560,6 +559,21 @@
560559
"zstd"
561560
]
562561
},
562+
"liburing": {
563+
"source": "liburing",
564+
"pkg-configs": [
565+
"liburing",
566+
"liburing-ffi"
567+
],
568+
"static-libs-linux": [
569+
"liburing.a",
570+
"liburing-ffi.a"
571+
],
572+
"headers-linux": [
573+
"liburing/",
574+
"liburing.h"
575+
]
576+
},
563577
"libuuid": {
564578
"source": "libuuid",
565579
"static-libs-unix": [
@@ -940,20 +954,5 @@
940954
"zstd.h",
941955
"zstd_errors.h"
942956
]
943-
},
944-
"liburing": {
945-
"source": "liburing",
946-
"pkg-configs": [
947-
"liburing",
948-
"liburing-ffi"
949-
],
950-
"static-libs-linux": [
951-
"liburing.a",
952-
"liburing-ffi.a"
953-
],
954-
"headers-linux": [
955-
"liburing/",
956-
"liburing.h"
957-
]
958957
}
959958
}

config/source.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,15 @@
669669
"path": "LICENSE.md"
670670
}
671671
},
672+
"liburing": {
673+
"type": "ghtar",
674+
"repo": "axboe/liburing",
675+
"prefer-stable": true,
676+
"license": {
677+
"type": "file",
678+
"path": "COPYING"
679+
}
680+
},
672681
"libuuid": {
673682
"type": "git",
674683
"url": "https://github.com/static-php/libuuid.git",
@@ -990,7 +999,6 @@
990999
},
9911000
"snappy": {
9921001
"type": "git",
993-
"repo": "google/snappy",
9941002
"rev": "main",
9951003
"url": "https://github.com/google/snappy",
9961004
"license": {
@@ -1154,14 +1162,5 @@
11541162
"type": "file",
11551163
"path": "LICENSE"
11561164
}
1157-
},
1158-
"liburing": {
1159-
"type": "ghtar",
1160-
"repo": "axboe/liburing",
1161-
"prefer-stable": true,
1162-
"license": {
1163-
"type": "file",
1164-
"path": "COPYING"
1165-
}
11661165
}
11671166
}

src/SPC/store/LockFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public static function putLockSourceHash(array $lock_options, string $destinatio
155155
* @param string $name Source name
156156
* @param array{
157157
* source_type: string,
158-
* dirname: ?string,
159-
* filename: ?string,
158+
* dirname?: ?string,
159+
* filename?: ?string,
160160
* move_path: ?string,
161161
* lock_as: int
162162
* } $data Source data

0 commit comments

Comments
 (0)