Skip to content

Support Laravel 12.x & PHP 8.4 #494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 10 additions & 17 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,18 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
php: [8.4, 8.3, 8.2, 8.1]
laravel: [12.*, 11.*, 10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
carbon: ^3.2
laravel-package-tools: ^1.16.4
collision: ^8.1.1

- laravel: 10.*
testbench: 8.*
carbon: ^2.63
laravel-package-tools: ^1.16.4
collision: 7.*

exclude:
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -53,11 +43,14 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" "spatie/laravel-package-tools:${{ matrix.laravel-package-tools }}" "nunomaduro/collision:${{ matrix.collision }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: List Installed Dependencies
run: composer show -D
run: composer show

# - name: Debug PhpUnit version
# run: composer why phpunit/phpunit -t

- name: Execute tests
run: vendor/bin/pest
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
],
"require": {
"php": "^8.1",
"illuminate/contracts": "^10.0|^11.0",
"illuminate/contracts": "^10.0|^11.0|^12.0",
"spatie/laravel-package-tools": "^1.16.4",
"symfony/finder": "^6.2|^7.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.0",
"larastan/larastan": "^2.0|^3.0",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.9",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"larastan/larastan": "^2.0|^3.1",
"nunomaduro/collision": "^7.11|^8.1.1",
"orchestra/testbench": "^8.0|^9.0|^10.0",
"pestphp/pest": "^v2.30|^3.0",
"pestphp/pest-plugin-arch": "^2.0|^3.0",
"pestphp/pest-plugin-laravel": "^2.0|^3.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
"phpstan/phpstan-phpunit": "^1.0|^2.0",
"spatie/laravel-ray": "^1.26"
},
"autoload": {
Expand Down
9 changes: 6 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ parameters:
# Level 9 is the highest level
level: 5


noEnvCallsOutsideOfConfig: false # Don't know why he doesn't consider our config/ directory as config

ignoreErrors:
- '#Class App\\Providers\\NativeAppServiceProvider not found#'
- '#Class Native\\Laravel\\ChildProcess has an uninitialized readonly property#'

#
# excludePaths:
# - ./*/*/FileToBeExcluded.php

excludePaths:
- ./src/NativeServiceProvider.php
2 changes: 2 additions & 0 deletions src/Commands/LoadPHPConfigurationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public function handle()
/** @var ProvidesPhpIni $provider */
$provider = app(config('nativephp.provider'));
$phpIni = [];

/* * @phpstan-ignore-next-line */
if (method_exists($provider, 'phpIni')) {
$phpIni = $provider->phpIni();
}
Expand Down
34 changes: 0 additions & 34 deletions src/Concerns/InteractsWithNativeApp.php

This file was deleted.

Loading