Skip to content

Commit 127038a

Browse files
Merge branch 'main' into dependabot/github_actions/actions/upload-artifact-7
2 parents 7e4ee5e + db24440 commit 127038a

7 files changed

Lines changed: 36 additions & 11 deletions

File tree

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
22+
php-versions: ['8.2', '8.3', '8.4', '8.5']
2323
steps:
2424
- name: Setup PHP
2525
uses: shivammathur/setup-php@v2

.github/workflows/project-auto-add.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: Generate token
2020
id: generate_token
21-
uses: actions/create-github-app-token@v2
21+
uses: actions/create-github-app-token@v3
2222
with:
2323
app-id: ${{ secrets.GRAPHBOT_APP_ID }}
2424
private-key: ${{ secrets.GRAPHBOT_APP_PEM }}

.github/workflows/release-please-gha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Generate GitHub App token
2525
id: app-token
26-
uses: actions/create-github-app-token@v2
26+
uses: actions/create-github-app-token@v3
2727
with:
2828
app-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
2929
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
[![PHP Version Require](http://poser.pugx.org/microsoft/microsoft-graph/require/php)](https://packagist.org/packages/microsoft/microsoft-graph)
77

88
## Install the SDK
9+
10+
### Prerequisites
11+
- PHP 8.2 or later (see [PHP supported versions](https://www.php.net/supported-versions.php))
12+
913
You can install the PHP SDK with Composer by editing your `composer.json` file:
1014
```jsonc
1115
{

UPGRADING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
This guide highlights breaking changes, bug fixes and new features introduced during major upgrades.
44

55

6+
# Upcoming Breaking Change: Minimum PHP version raised to 8.2
7+
8+
The SDK now requires **PHP 8.2 or later**. Support for PHP 7.4, 8.0, and 8.1 has been removed.
9+
10+
## Why
11+
12+
PHP 7.4 (EOL Nov 2022), PHP 8.0 (EOL Nov 2023), and PHP 8.1 (EOL Dec 2025) no longer receive security updates from the PHP project. Continuing to support them prevented us from updating dependencies that have already dropped these versions, introducing potential security vulnerabilities.
13+
14+
## What to do
15+
16+
- Run `php -v` to check your current PHP version.
17+
- If you are on PHP 7.4, 8.0, or 8.1, upgrade to PHP 8.2 or later before updating the SDK.
18+
- No code changes are required — only the PHP runtime version needs to be updated.
19+
20+
**Supported PHP versions:** 8.2, 8.3, 8.4
21+
22+
See https://www.php.net/supported-versions.php for PHP's official support lifecycle.
23+
24+
625
# Upgrading to 2.0.0
726
- [New Features](#new-features)
827
- [Breaking Changes](#breaking-changes)

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^8.0 || ^7.4",
15+
"php": "^8.2",
1616
"microsoft/microsoft-graph-core": "^2.2.1"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^8.0 || ^9.0",
20-
"phpstan/phpstan": "^0.12.90 || ^1.0.0"
19+
"phpunit/phpunit": "^10.0 || ^11.0",
20+
"phpstan/phpstan": "^1.0.0"
2121
},
2222
"autoload": {
2323
"psr-4": {

phpunit.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
<directory>tests</directory>
66
</testsuite>
77
</testsuites>
8-
<filter>
9-
<whitelist addUncoveredFilesFromWhitelist="true">
8+
<source>
9+
<include>
1010
<directory suffix=".php">src</directory>
11-
<exclude><directory suffix=".php">src/Generated</directory></exclude>
12-
</whitelist>
13-
</filter>
11+
</include>
12+
<exclude>
13+
<directory suffix=".php">src/Generated</directory>
14+
</exclude>
15+
</source>
1416
</phpunit>

0 commit comments

Comments
 (0)