Skip to content

Commit

Permalink
workflow fixes and static analysis update for php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jsavell committed Jul 11, 2024
1 parent fe9a4ea commit c9c4be3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.1
- uses: actions/checkout@v3
- uses: php-actions/composer@v5
- uses: php-actions/composer@v6
- name: Run PHPStan Static Analysis
uses: php-actions/phpstan@master
uses: php-actions/phpstan@v3
with:
memory_limit: 512M
path: src/Pipit/
Expand Down
2 changes: 1 addition & 1 deletion phpstan.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
paths:
- src/Pipit
level: 8
level: 9
bootstrapFiles:
- ./phpstan/constants.php
2 changes: 1 addition & 1 deletion src/Pipit/Classes/Data/ResultsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static function getNewResultsPage(int $page, int $resultsPerPage) {
return $resultsPage;
}

public function jsonSerialize() {
public function jsonSerialize():mixed {
return get_object_vars($this);
}
}

0 comments on commit c9c4be3

Please sign in to comment.