Skip to content
Open

8.x #1036

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a3a661a
Kick off 8.x development
jeromegamez Dec 3, 2025
43fb559
Remove Dynamic Links component
jeromegamez Dec 3, 2025
357d9fc
Remove deprecated classes, methods and class constants
jeromegamez Dec 3, 2025
ec9ab38
Drop support for PHP <8.3
jeromegamez Dec 3, 2025
3b84767
Apply PHP 8.3 language migrations
jeromegamez Dec 3, 2025
64e8f2d
Upgrade PHPUnit to 12.4.5 and bump dev-dependencies
jeromegamez Dec 3, 2025
2a62567
Ignore indirect deprecations when running PHPUnit
jeromegamez Dec 4, 2025
d1aad88
Drop exception code when wrapping exceptions
jeromegamez Dec 3, 2025
24ace0f
Treat PHPDoc types as certain
jeromegamez Dec 3, 2025
944d521
Add implemented and to-be-implemented PHPStan rules
jeromegamez Dec 3, 2025
d2f5cc6
Remove deprecated custom log middlewares
jeromegamez Dec 5, 2025
bc38731
Move `psr/log` to dev-dependencies
jeromegamez Dec 5, 2025
fd71843
Extract backward compatibility checks into dedicated workflow
jeromegamez Dec 5, 2025
b3b04d1
Remove unused dependabot auto-approve workflow
jeromegamez Dec 5, 2025
1dae768
Always run workflows, including for dependabot PRs
jeromegamez Dec 5, 2025
afa0109
Run BC checks only when on or targeting the current release branch
jeromegamez Dec 5, 2025
08a3d3d
Replace `Stringable|string` argument types with `string`-only
jeromegamez Dec 5, 2025
4be2466
Improve type safety with strict union types
jeromegamez Dec 5, 2025
589c216
Enable `rector/type-perfect` for stricter type checking
jeromegamez Dec 5, 2025
c9ffe59
Reword type changes as performance optimization
jeromegamez Dec 5, 2025
a6781fe
Rename test methods
jeromegamez Dec 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/backward-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Backward Compatibility Check

on:
pull_request:
branches: ['7.x']
paths:
- 'src/**'
- 'composer.json'
- '.github/workflows/backward-compatibility.yml'
push:
branches: ['7.x']
paths:
- 'src/**'
- 'composer.json'
- '.github/workflows/backward-compatibility.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
bc-checks:
name: Backward Compatibility Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: grpc

- name: Install roave/backward-compatibility-check
run: composer require --dev roave/backward-compatibility-check

- name: Check for BC breaks
run: vendor/bin/roave-backward-compatibility-check --format=github-actions
21 changes: 0 additions & 21 deletions .github/workflows/dependabot-auto-approve.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'README.md'
- 'lychee.toml'
push:
branches: ['7.x']
branches: ['8.x']
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
Expand All @@ -27,7 +27,6 @@ jobs:
links:
name: Check Links
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'

steps:
- name: Checkout repository
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/emulator-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- 'tests/**'
- 'phpstan.neon.dist'
push:
branches: ['7.x']
branches: ['8.x']
paths:
- 'src/**'
- 'tests/**'
Expand All @@ -24,12 +24,11 @@ jobs:
emulator-tests:
name: Emulator Tests
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'

env:
php-version: '8.4'
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
key: cache-emulators-7x-83-v1
key: cache-emulators-8x

steps:
- name: Checkout code
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- 'tests/**'
- 'phpstan.neon.dist'
push:
branches: ['7.x']
branches: ['8.x']
paths:
- 'src/**'
- 'tests/**'
Expand All @@ -24,12 +24,11 @@ jobs:
integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'

env:
php-version: '8.4'
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
key: cache-integration-7x-83-v1
key: cache-integration-8x

steps:
- name: Checkout code
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'composer.json'
- 'phpstan.neon.dist'
push:
branches: ['7.x']
branches: ['8.x']
paths:
- 'src/**'
- 'tests/**'
Expand All @@ -25,23 +25,18 @@ jobs:
phpstan:
name: "PHPStan (PHP ${{ matrix.php }})"
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'

strategy:
fail-fast: false
matrix:
php:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
include:
- php: "8.5"
composer-options: "--ignore-platform-reqs"
- "8.5"

env:
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
key: cache-static-analysis-7x-${{ matrix.php }}-v1
key: cache-static-analysis-8x-${{ matrix.php }}

steps:
- name: Checkout code
Expand Down
34 changes: 3 additions & 31 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'composer.json'
- 'phpstan.neon.dist'
push:
branches: ['7.x']
branches: ['8.x']
paths:
- 'src/**'
- 'tests/**'
Expand All @@ -25,27 +25,21 @@ jobs:
tests:
name: "PHP ${{ matrix.php }}, ${{ matrix.dependencies }} deps"
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'

strategy:
fail-fast: false
matrix:
php:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
- "8.5"
dependencies:
- "lowest"
- "highest"
include:
- php: "8.5"
composer-options: "--ignore-platform-reqs"
dependencies: "highest"

env:
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
key: cache-unit-7x-${{ matrix.php }}-v1
key: cache-unit-8x-${{ matrix.php }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -93,25 +87,3 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit

bc-checks:
name: Backward Compatibility Check
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: grpc

- name: Install roave/backward-compatibility-check.
run: composer require --dev roave/backward-compatibility-check

- name: Check for BC breaks
run: vendor/bin/roave-backward-compatibility-check --format=github-actions
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
->setRiskyAllowed(true)
->setRules([
'@PER-CS3x0:risky' => true,
'@PHPUnit9x1Migration:risky' => true,
'class_attributes_separation' => true,
'class_definition' => [
'single_line' => true,
Expand Down
Loading
Loading