Skip to content

Commit da8a8e5

Browse files
authored
Merge pull request #395 from asgrim/dep-update-php85rc2
Housekeeping and dep update
2 parents 60ff5ba + 5abb970 commit da8a8e5

File tree

10 files changed

+50
-55
lines changed

10 files changed

+50
-55
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
operating-system:
5656
- ubuntu-latest
5757
php-versions:
58-
- '8.1.33'
59-
- '8.2.29'
60-
- '8.3.25'
61-
- '8.4.12'
62-
- '8.5.0beta2'
58+
- '8.1'
59+
- '8.2'
60+
- '8.3'
61+
- '8.4'
62+
- '8.5'
6363
steps:
6464
- name: "Purge built-in PHP version"
6565
run: |
@@ -98,10 +98,15 @@ jobs:
9898
libbz2-dev \
9999
libzip-dev
100100
- name: "Set php-src download URL"
101-
run: echo "php_src_download_url=https://www.php.net/distributions/php-${{ matrix.php-versions }}.tar.gz" >> $GITHUB_ENV
101+
if: ${{ !startsWith(matrix.php-versions, '8.5') }}
102+
run: |
103+
DIST_URL=`curl -fsSL "https://www.php.net/releases/index.php?json&max=1&version=${{ matrix.php-versions }}" | jq -r '.[].source[]|select(.filename|endswith(".gz")).filename'`
104+
echo "php_src_download_url=https://www.php.net/distributions/$DIST_URL" >> $GITHUB_ENV
102105
- name: "Set php-src download URL (8.5 pre-release)"
103-
if: ${{ startsWith(matrix.php-versions, '8.5.') }}
104-
run: echo "php_src_download_url=https://downloads.php.net/~daniels/php-${{ matrix.php-versions }}.tar.gz" >> $GITHUB_ENV
106+
if: ${{ startsWith(matrix.php-versions, '8.5') }}
107+
run: |
108+
RC_URL=`curl -fsSL "https://www.php.net/release-candidates.php?format=json" | jq -r '.releases[]|select(.version|startswith("${{ matrix.php-versions }}")).files.gz.path'`
109+
echo "php_src_download_url=$RC_URL" >> $GITHUB_ENV
105110
- name: "Install PHP ${{ matrix.php-versions }}"
106111
run: |
107112
mkdir -p /tmp/php

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
"symfony/event-dispatcher": "^6.4.25",
3939
"symfony/process": "^6.4.26",
4040
"thephpf/attestation": "^0.0.2",
41-
"webmozart/assert": "^1.11"
41+
"webmozart/assert": "^1.12"
4242
},
4343
"require-dev": {
4444
"ext-openssl": "*",
45-
"behat/behat": "^3.24.1",
45+
"behat/behat": "^3.25.0",
4646
"bnf/phpstan-psr-container": "^1.1",
4747
"doctrine/coding-standard": "^14.0.0",
48-
"phpstan/phpstan": "^2.1.29",
48+
"phpstan/phpstan": "^2.1.31",
4949
"phpunit/phpunit": "^10.5.58"
5050
},
5151
"replace": {

composer.lock

Lines changed: 30 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,6 @@ parameters:
9696
count: 1
9797
path: src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php
9898

99-
-
100-
message: '#^Offset ''question'' on array\{question\: Symfony\\Component\\Console\\Helper\\QuestionHelper\} on left side of \?\? always exists and is not nullable\.$#'
101-
identifier: nullCoalesce.offset
102-
count: 1
103-
path: src/ComposerIntegration/MinimalHelperSet.php
104-
10599
-
106100
message: '#^Parameter \#3 \$package of class Php\\Pie\\ComposerIntegration\\PieComposerInstaller constructor expects Composer\\Package\\BasePackage&Composer\\Package\\RootPackageInterface, Composer\\Package\\RootPackageInterface given\.$#'
107101
identifier: argument.type

src/ComposerIntegration/BundledPhpExtensionsRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use function realpath;
2828
use function sprintf;
2929

30+
/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */
3031
class BundledPhpExtensionsRepository extends ArrayRepository
3132
{
3233
/**

src/ComposerIntegration/MinimalHelperSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */
1212
class MinimalHelperSet extends HelperSet
1313
{
14-
/** @param array{question: QuestionHelper} $helpers */
14+
/** @param array{question?: QuestionHelper|mixed} $helpers */
1515
public function __construct(array $helpers)
1616
{
1717
Assert::isInstanceOf(

src/Installing/InstallForPhpProject/DetermineExtensionsRequired.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use function strlen;
1818
use function substr;
1919

20+
/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */
2021
class DetermineExtensionsRequired
2122
{
2223
public static function linkFilter(Link $link): bool

src/SelfManage/Update/Channel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Php\Pie\SelfManage\Update;
66

7+
/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */
78
enum Channel: string
89
{
910
case Stable = 'stable';

src/SelfManage/Update/FetchPieRelease.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */
1010
interface FetchPieRelease
1111
{
12-
/** @throws PiePharMissingFromLatestRelease */
1312
public function latestReleaseMetadata(Channel $updateChannel): ReleaseMetadata;
1413

1514
/** Download the given pie.phar and return the filename (should be a temp file) */

src/SelfManage/Verify/Attestation.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public static function fromAttestationBundleWithDsseEnvelope(array $attestation)
5656
$decoratedCertificate = "-----BEGIN CERTIFICATE-----\n"
5757
. wordwrap($attestation['bundle']['verificationMaterial']['certificate']['rawBytes'], 67, "\n", true) . "\n"
5858
. "-----END CERTIFICATE-----\n";
59-
Assert::stringNotEmpty($decoratedCertificate);
6059

6160
$decodedPayload = base64_decode($attestation['bundle']['dsseEnvelope']['payload']);
6261
Assert::stringNotEmpty($decodedPayload);

0 commit comments

Comments
 (0)