Skip to content

Commit

Permalink
Support Laravel 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
usernotnull committed Feb 9, 2022
1 parent 9ccee76 commit f05a190
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
matrix:
os: [ ubuntu-latest ] #, windows-latest
php: [ 8.0 ]
laravel: [ 8.* ]
laravel: [ 8.*, 9.* ]
stability: [ prefer-lowest ] #, prefer-stable
include:
- laravel: 8.*
testbench: 6.*
- laravel: 9.*
testbench: 7.*
steps:
- name: Checkout Code
uses: actions/checkout@v2
Expand All @@ -45,7 +48,7 @@ jobs:

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --dev
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Psalm
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ To stay updated, [follow me on Twitter](https://twitter.com/usernotnull).

## Requirements

Dependency | Version | Comment
----|----|----
PHP | ^8.0 | Make the switch, you won't regret it :)
Laravel | ^8.0 | [Official Installation Docs](https://laravel.com/docs/8.x/installation)
TailwindCSS | ^2.0 |[Official Installation Docs](https://tailwindcss.com/docs/guides/laravel)
Livewire | ^2.0 | [Official Installation Docs](https://laravel-livewire.com/docs/2.x/installation)
AlpineJS | ^3.0 | [Official Installation Docs](https://alpinejs.dev/essentials/installation)
Dependency | Version
----|----
PHP | ^8.0
Laravel | ^8.0 \| ^9.0
TailwindCSS | ^2.0 \| ^3.0
Livewire | ^2.0
AlpineJS | ^3.0

## Installation

Expand All @@ -175,7 +175,8 @@ If you are using [Just-in-Time Mode](https://tailwindcss.com/docs/just-in-time-m
your `tailwind.config.js` file:

```js
purge: [
// use `purge` instead of `content` if using TailwindCSS v2.x
content: [
'./vendor/usernotnull/tall-toasts/config/**/*.php',
'./vendor/usernotnull/tall-toasts/resources/views/**/*.blade.php',
// etc...
Expand Down
1 change: 1 addition & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
declare(strict_types=1);

/* This file is required for phpstan */
return include getcwd()."/vendor/orchestra/testbench-core/laravel/bootstrap/app.php";
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,19 @@
],
"require": {
"php": "^8.0",
"illuminate/contracts": "^v8.61",
"illuminate/contracts": "^v8.61|^9.0",
"livewire/livewire": "^v2.10",
"spatie/laravel-package-tools": "^1.11"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v3.4",
"nunomaduro/collision": "^5.11",
"nunomaduro/larastan": "^0.7.15",
"orchestra/testbench": "^v6.24",
"nunomaduro/collision": "^5.11|^6.0",
"nunomaduro/larastan": "^2.0",
"orchestra/testbench": "^v6.24|^7.0",
"pestphp/pest": "^v1.21",
"pestphp/pest-plugin-laravel": "^v1.2",
"phpmd/phpmd": "^2.11",
"pestphp/pest-plugin-parallel": "^1.0.0",
"phpstan/phpstan": "^0.12",
"pestphp/pest-plugin-parallel": "^1.0",
"squizlabs/php_codesniffer": "^3.6",
"vimeo/psalm": "^4.20"
},
Expand All @@ -62,7 +61,11 @@
"test-coverage": "XDEBUG_MODE=coverage ./vendor/bin/pest --parallel --coverage --min=100"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"composer/package-versions-deprecated": true
}
},
"extra": {
"laravel": {
Expand Down
14 changes: 3 additions & 11 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,21 @@ includes:
- ./vendor/nunomaduro/larastan/extension.neon

parameters:

paths:
- src

# The level 8 is the highest level
# The level 9 is the highest level
level: 5

excludePaths:
# - ./src/ToastServiceProvider.php
- ./src/ToastServiceProvider.php

ignoreErrors:
- '#Unsafe usage of new static#'
- '#Call to an undefined method Illuminate\\Support\\HigherOrder#'
- '#Call to an undefined static method#'
- '#Parameter (\#)(\d) \$callback of method Illuminate\\Container\\Container::call\(\) expects \(callable\(\): (.*)#'
- '#Parameter (\#)(\d) \$callback of function view expects view-string|null, string given#'
- path: database/factories/*
message: '#Undefined variable: \$factory#'

checkMissingIterableValueType: false

reportUnmatchedIgnoredErrors: false

# noUnnecessaryCollectionCall: false

# checkOctaneCompatibility: true
checkOctaneCompatibility: true

0 comments on commit f05a190

Please sign in to comment.