Skip to content

Commit

Permalink
Upgrade to PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-butti committed Nov 29, 2024
1 parent 04c2b95 commit a39bd5a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ 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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.0.1 - WIP
- Upgrade to PHP 8.4

## 1.0.0 - 2024-03-13
- upgrading packages

Expand Down
6 changes: 3 additions & 3 deletions src/Lens/Traits/ConfigLens.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit a39bd5a

Please sign in to comment.