Skip to content

Commit

Permalink
Drop support for php 8.1
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jan 19, 2024
1 parent 996ab6b commit afbb180
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 88 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/pint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: PHP Linting (Pint)

on: [push, pull_request]
on: [ push, pull_request, workflow_dispatch ]

jobs:
phplint:
Expand All @@ -9,6 +9,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: none

- name: Composer Install
run: composer install --no-interaction

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Pest Tests

on: [push, pull_request]
on: [ push, pull_request, workflow_dispatch ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]
os: [ ubuntu-latest ]
php: [ 8.2, 8.3 ]

name: PHP ${{ matrix.php }} - ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "Static Analysis"

on: [push, pull_request]
on: [ push, pull_request, workflow_dispatch ]

jobs:
types:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ["8.1", "8.2"]
php: [ 8.2, 8.3 ]
name: PHP ${{ matrix.php }} - Static Analysis
steps:
- name: Checkout code
Expand Down
80 changes: 0 additions & 80 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -20,86 +20,6 @@ parameters:
count: 1
path: database/migrations/2022_06_30_010000_drop_foreign_key_constraints.php

-
message: "#^Access to an undefined property Igniter\\\\Frontend\\\\Models\\\\Banners\\:\\:\\$custom_code\\.$#"
count: 1
path: src/Components/Banners.php

-
message: "#^Access to an undefined property Igniter\\\\Frontend\\\\Models\\\\Banners\\:\\:\\$image_code\\.$#"
count: 1
path: src/Components/Banners.php

-
message: "#^Access to an undefined property Igniter\\\\Frontend\\\\Models\\\\Banners\\:\\:\\$type\\.$#"
count: 1
path: src/Components/Banners.php

-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Builder\\:\\:isEnabled\\(\\)\\.$#"
count: 1
path: src/Components/Banners.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\Banners\\:\\:whereIsEnabled\\(\\)\\.$#"
count: 1
path: src/Components/Banners.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\CaptchaSettings\\:\\:instance\\(\\)\\.$#"
count: 1
path: src/Components/Captcha.php

-
message: "#^Call to an undefined static method Igniter\\\\Local\\\\Facades\\\\Location\\:\\:getDefault\\(\\)\\.$#"
count: 1
path: src/Components/Contact.php

-
message: "#^Call to an undefined static method Igniter\\\\Main\\\\Template\\\\Page\\:\\:lists\\(\\)\\.$#"
count: 1
path: src/Components/Contact.php

-
message: "#^Call to an undefined static method Illuminate\\\\Support\\\\Facades\\\\Mail\\:\\:queueTemplate\\(\\)\\.$#"
count: 1
path: src/Components/Contact.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\Menu\\:\\:whereIsEnabled\\(\\)\\.$#"
count: 1
path: src/Components/FeaturedItems.php

-
message: "#^Call to an undefined method Igniter\\\\Frontend\\\\Components\\\\Newsletter\\:\\:pageCycle\\(\\)\\.$#"
count: 1
path: src/Components/Newsletter.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\MailchimpSettings\\:\\:get\\(\\)\\.$#"
count: 1
path: src/Components/Newsletter.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\Subscriber\\:\\:firstOrNew\\(\\)\\.$#"
count: 1
path: src/Components/Newsletter.php

-
message: "#^Call to an undefined static method Illuminate\\\\Support\\\\Facades\\\\Event\\:\\:fire\\(\\)\\.$#"
count: 1
path: src/Components/Newsletter.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\Slider\\:\\:lists\\(\\)\\.$#"
count: 1
path: src/Components/Slider.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\Slider\\:\\:whereCode\\(\\)\\.$#"
count: 1
path: src/Components/Slider.php

-
message: "#^Call to an undefined static method Igniter\\\\Frontend\\\\Models\\\\CaptchaSettings\\:\\:instance\\(\\)\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"braces": false,
"self_accessor": false,
"phpdoc_separation": false,
"Laravel/laravel_phpdoc_alignment": false,
"phpdoc_align": false,
"no_trailing_comma_in_singleline": false,
"phpdoc_trim_consecutive_blank_line_separation": true,
"blank_line_before_statement": {
Expand Down

0 comments on commit afbb180

Please sign in to comment.