Skip to content

PHPStan level 5#4110

Merged
Alkarex merged 14 commits intoFreshRSS:edgefrom
Alkarex:phpstan-level3
Jan 4, 2022
Merged

PHPStan level 5#4110
Alkarex merged 14 commits intoFreshRSS:edgefrom
Alkarex:phpstan-level3

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Jan 1, 2022

#fix #4103 (level 2)
and also level 3, level 4, and level 5 https://phpstan.org/user-guide/rule-levels

@Alkarex Alkarex added the System care Everything related to system care label Jan 1, 2022
@Alkarex Alkarex added this to the 1.19.1 milestone Jan 1, 2022
@Alkarex
Copy link
Member Author

Alkarex commented Jan 1, 2022

Follow-up of #4021

@Alkarex
Copy link
Member Author

Alkarex commented Jan 1, 2022

And now also passing level 4 182c2c2

@Alkarex Alkarex marked this pull request as draft January 1, 2022 15:03
@Alkarex Alkarex marked this pull request as ready for review January 1, 2022 17:48
@Alkarex
Copy link
Member Author

Alkarex commented Jan 1, 2022

And now also passing level 5

@Alkarex Alkarex changed the title PHPStan level 3 PHPStan level 5 Jan 1, 2022
@Alkarex Alkarex mentioned this pull request Jan 1, 2022
@Alkarex Alkarex modified the milestones: 1.19.1, 1.19.2 Jan 2, 2022
@Alkarex Alkarex merged commit 1335a0e into FreshRSS:edge Jan 4, 2022
@Alkarex Alkarex deleted the phpstan-level3 branch January 4, 2022 12:59
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Feb 6, 2022
Alkarex added a commit that referenced this pull request Feb 6, 2022
* Fix Fever 32 bit ID issue + more PHP type hints
#fix #4200
Follow up and fix regression from #4110

* More PHP type hints with PHPStan

* Fix pull problem

* Avoid more nulls
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Nov 15, 2022
Fix regressions from FreshRSS#4561

Example:

```
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to checkToken() must be an instance of FreshRSS_UserConfiguration, instance of Minz_Configuration given, called in /var/www/FreshRSS/p/api/greader.php on line 1091 and defined in /var/www/FreshRSS/p/api/greader.php:223
Stack trace:
#0 /var/www/FreshRSS/p/api/greader.php(1091): checkToken()
#1 {main}
  thrown in /var/www/FreshRSS/p/api/greader.php on line 223
```

Improvement of FreshRSS#4110
Alkarex added a commit that referenced this pull request Nov 15, 2022
Fix regressions from #4561

Example:

```
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to checkToken() must be an instance of FreshRSS_UserConfiguration, instance of Minz_Configuration given, called in /var/www/FreshRSS/p/api/greader.php on line 1091 and defined in /var/www/FreshRSS/p/api/greader.php:223
Stack trace:
#0 /var/www/FreshRSS/p/api/greader.php(1091): checkToken()
#1 {main}
  thrown in /var/www/FreshRSS/p/api/greader.php on line 223
```

Improvement of #4110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

System care Everything related to system care

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHPStan level 2

1 participant