Skip to content

Commit

Permalink
Remobe final on model (#234)
Browse files Browse the repository at this point in the history
* Remove final keyword on model

---------

Co-authored-by: mckenziearts <[email protected]>
  • Loading branch information
mckenziearts and mckenziearts authored Feb 26, 2024
1 parent 73d7747 commit 21d06ae
Show file tree
Hide file tree
Showing 28 changed files with 488 additions and 449 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# These are supported funding model platforms
github: mckenziearts
github: [mckenziearts, shopperlabs]
57 changes: 29 additions & 28 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
name: phpstan
name: "phpstan Static Analysis"

on:
push:
pull_request:

jobs:
phpstan:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1]
laravel: [10.*, 9.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
php: ["8.1", "8.2"]
laravel: ["^9.0", "^10.0"]
dependencies: ["highest"]

name: "PHP ${{ matrix.php }} - L${{ matrix.laravel }} ${{ matrix.dependencies == 'highest' && '↑' || '↓' }}"

runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php }}
extensions: mbstring, pdo, pdo_sqlite
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse
php-version: "${{ matrix.php }}"
extensions: "dom, curl, libxml, mbstring, zip, fileinfo"
tools: "composer:v2"
coverage: "none"

- name: "Install dependencies from composer.json"
if: "matrix.dependencies != 'lowest'"
run: "composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress --prefer-lowest"

- name: "Run PHPStan"
run: ./vendor/bin/phpstan
21 changes: 8 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
# Node.js
/node_modules
npm-debug.log
yarn-error.log

# Composer
/vendor
composer.phar

# IDE
/.idea
/.vscode

# Laravel
/**/node_modules
/node_modules.nosync
yarn-error.log
/**/vendor
/**/composer.lock
/vendor.nosync
composer.phar
phpunit.xml
.phpunit.result.cache
.php-cs-fixer.cache
build

Thumbs.db
Loading

0 comments on commit 21d06ae

Please sign in to comment.