Commit 67ab520
committed
Fix CI: import PHP_URL_HOST, use Safe\parse_url, drop dead setDistSha1Checksum
- phpcs (SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFallbackGlobalName): `use const PHP_URL_HOST;`.
- phpstan (thephpf/safe-rule): `use function Safe\parse_url;`.
- phpstan (CompletePackageInterface::setDistSha1Checksum doesn't exist on the typed handle): drop the explicit clear. The audit notes Composer's FileDownloader doesn't consult the stale checksum after `setDistUrl` anyway, so the call was cosmetic. The user-facing warning about HTTPS-to-origin still lands.1 parent 2952792 commit 67ab520
1 file changed
Lines changed: 7 additions & 9 deletions
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
| |||
0 commit comments