Skip to content

Add PHPStan#4021

Merged
Alkarex merged 15 commits intoFreshRSS:edgefrom
Alkarex:PHPStan
Dec 31, 2021
Merged

Add PHPStan#4021
Alkarex merged 15 commits intoFreshRSS:edgefrom
Alkarex:PHPStan

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Dec 2, 2021

#fix #4016
https://phpstan.org/

composer run-script phpstan

#fix FreshRSS#4016
https://phpstan.org/

```sh
composer run-script phpstan
```
@Alkarex Alkarex added this to the 1.20.0 milestone Dec 2, 2021
@Alkarex
Copy link
Member Author

Alkarex commented Dec 2, 2021

There are already a number of fixes to do to pass level 1, and then we can increase the rule-level for more https://phpstan.org/user-guide/rule-levels

Help welcome in this PR already to pass level 1.

I will then add it to our CI

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it should be fine, but didn't check in the closest detail. Definitely needs full testing.

@Alkarex
Copy link
Member Author

Alkarex commented Dec 4, 2021

(off-topic) @math-GH You should have received an email from me 📬

@Alkarex Alkarex mentioned this pull request Dec 29, 2021
1 task
@Alkarex Alkarex added the System care Everything related to system care label Dec 29, 2021
@Alkarex Alkarex modified the milestones: 1.20.0, 1.19.1 Dec 31, 2021
@Alkarex Alkarex merged commit 77e9877 into FreshRSS:edge Dec 31, 2021
@Alkarex Alkarex deleted the PHPStan branch December 31, 2021 16:00
This was referenced Dec 31, 2021

try {
$sql = $SQL_CREATE_TABLES . $SQL_CREATE_TABLE_ENTRYTMP . $SQL_CREATE_TABLE_TAGS;
$sql = $GLOBALS['$SQL_CREATE_TABLES'] . $GLOBALS['SQL_CREATE_TABLE_ENTRYTMP'] . $GLOBALS['SQL_CREATE_TABLE_TAGS'];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo fixed in #4116

@Alkarex Alkarex mentioned this pull request Jan 2, 2022
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.

Add PHPstan in project and CI

3 participants