diff --git a/.github/workflows/php-code-quality.yml b/.github/workflows/php-code-quality.yml index 47997d7..604765d 100644 --- a/.github/workflows/php-code-quality.yml +++ b/.github/workflows/php-code-quality.yml @@ -14,13 +14,13 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: [ '8.3', '8.2', '8.1' ] + php-versions: [ '8.4', '8.3', '8.2', '8.1' ] dependency-stability: [ 'prefer-stable','prefer-lowest' ] runs-on: ${{ matrix.operating-system }} - name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}} + name: Test P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}} steps: - uses: actions/checkout@v4 @@ -44,6 +44,27 @@ jobs: SESSION_DRIVER: array run: composer test + + laravel-check: + strategy: + matrix: + operating-system: [ubuntu-latest] + php-versions: [ '8.3' ] + + runs-on: ${{ matrix.operating-system }} + + + name: Check P${{ matrix.php-versions }} - ${{ matrix.operating-system}} + + steps: + - uses: actions/checkout@v4 + - name: Install PHP versions + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + - name: Install Dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Execute Code Sniffer via phpcs run: | composer style-fix diff --git a/.github/workflows/php-lint.yml b/.github/workflows/php-lint.yml index 2579972..8ab4f87 100644 --- a/.github/workflows/php-lint.yml +++ b/.github/workflows/php-lint.yml @@ -25,6 +25,6 @@ jobs: run: composer run-script test - name: PHP Syntax Checker (Lint) - uses: StephaneBour/actions-php-lint@8.2 + uses: StephaneBour/actions-php-lint@8.3 with: dir: './src' diff --git a/CHANGELOG.md b/CHANGELOG.md index f80d464..6fc694d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.0.1 - WIP +- Upgrade to PHP 8.4 + ## 1.0.0 - 2024-03-13 - upgrading packages diff --git a/composer.json b/composer.json index 5158c34..5b5f5bb 100755 --- a/composer.json +++ b/composer.json @@ -21,14 +21,14 @@ } ], "require": { - "php": "^8.0|^8.1|^8.2|^8.3", + "php": "^8.0|^8.1|^8.2|^8.3|^8.4", "ext-json": "*", "guzzlehttp/guzzle": "^7.8", "nunomaduro/termwind": "^1.15|^2.0" }, "require-dev": { "doctrine/dbal": "^3.0|^4.0", - "larastan/larastan": "^1.0.0|^2.0", + "larastan/larastan": "^2.0", "laravel/pint": "^1.4", "orchestra/testbench": "^7.0|^8.0|^9.0", "pestphp/pest": "^2.34", diff --git a/src/Lens/Traits/ConfigLens.php b/src/Lens/Traits/ConfigLens.php index f03e840..7c121ce 100644 --- a/src/Lens/Traits/ConfigLens.php +++ b/src/Lens/Traits/ConfigLens.php @@ -6,7 +6,7 @@ trait ConfigLens { - public function getConfigsDatabaseFromEnv(ResultLens $results = null): \HiFolks\LaraLens\ResultLens + public function getConfigsDatabaseFromEnv(ResultLens|null $results = null): \HiFolks\LaraLens\ResultLens { if (is_null($results)) { $results = new ResultLens(); @@ -27,7 +27,7 @@ public function getConfigsDatabaseFromEnv(ResultLens $results = null): \HiFolks\ return $results; } - public function checkDebugEnv(ResultLens $results = null): \HiFolks\LaraLens\ResultLens + public function checkDebugEnv(ResultLens|null $results = null): \HiFolks\LaraLens\ResultLens { if (is_null($results)) { $results = new ResultLens(); @@ -52,7 +52,7 @@ public function checkDebugEnv(ResultLens $results = null): \HiFolks\LaraLens\Res return $results; } - public function getConfigsDatabase(ResultLens $results = null): \HiFolks\LaraLens\ResultLens + public function getConfigsDatabase(ResultLens|null $results = null): \HiFolks\LaraLens\ResultLens { if (is_null($results)) { $results = new ResultLens();