Skip to content

Commit

Permalink
set phpstan level to 3 and update code
Browse files Browse the repository at this point in the history
  • Loading branch information
sagautam5 committed Apr 7, 2024
1 parent e779ec0 commit d4f56d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- name: Run PHPUnit tests
run: vendor/bin/phpunit
- name: Run PhpStan Analyse Code
run: vendor/bin/phpstan analyse --level=2 src tests
run: vendor/bin/phpstan analyse --level=3 src tests
4 changes: 2 additions & 2 deletions src/Entities/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function allCategories()
* Find category by id
*
* @param $id
* @return false|int|string
* @return object|null
*/
public function find($id)
{
Expand All @@ -58,7 +58,7 @@ public function find($id)
* Find category by short code
*
* @param $short_code
* @return string|null
* @return object|null
*/
public function findByShortCode($short_code)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/Province.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function allProvinces()
* Find province by id
*
* @param $id
* @return false|int|string
* @return object|null
*/
public function find($id)
{
Expand Down

0 comments on commit d4f56d4

Please sign in to comment.