Luc SANCHEZ
15745d42b7
Upgrade code to php 8.1 ( #6748 )
...
* revert
Fix code indentation
Fix code
Upgrade code to php 8.1
* fix remarques
* code review
* code review
* code review
* Apply suggestions from code review
* code review
* Fixes
* Many remainging updates of array syntax
* Lost case 'reading-list'
* Uneeded PHPDoc
---------
Co-authored-by: Luc Sanchez <l.sanchez-prestataire@alptis.fr >
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2024-11-28 17:11:04 +01:00
Alexandre Alapetite
5b28a35003
Pass PHPStan level 9 ( #6544 )
...
* More PHPStan
* More, passing
* 4 more files
* Update to PHPStan 1.11.4
Needed for fixed bug: Consider numeric-string types after string concat
https://github.com/phpstan/phpstan/releases/tag/1.11.4
* Pass PHPStan level 9
Start tracking booleansInConditions
* Fix mark as read
* Fix doctype
* ctype_digit
2024-06-09 20:32:12 +02:00
Luc SANCHEZ
30c7a61a9b
Use strict_types ( #5830 )
...
* Little's optimisations and booleans in conditions
* Apply strict type
* Apply strict type
* Apply strict type
* Fix multiple bugs with PHP 8.2 and 8.3
* Many declares missing, more errors fixed
* Apply strict type
* Another approach
* Stronger typing for Minz_Session
* Fix case of SQLite
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com >
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2023-11-16 22:43:00 +01:00
Alexandre Alapetite
06d0099504
Require PHP 7.4+ ( #5720 )
...
* Require PHP 7.4+
https://github.com/FreshRSS/FreshRSS/discussions/5474
* Update Docker oldest
Alpine 3.13 with PHP 7.4.26
* Add missing packets to Docker oldest
* Update to typed properties
https://php.net/migration74.new-features#migration74.new-features.core.typed-properties
* More types
2023-10-30 20:47:27 +01:00
Luc SANCHEZ
f8f163d054
Chore/processing of depreciations and updating code to php72 minimum ( #5504 )
...
* processing of depreciations and updating of code to php7.2 minimum
* Autoformat many strange array indenting
And revert a few unwanted changes
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com >
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2023-07-07 22:36:27 +02:00
Alexandre Alapetite
115724622f
PHPStan Level 7 for ten more files ( #5327 )
...
* PHPStan Level 7 for nine more files
* Minor syntax
* One more
2023-04-23 11:58:15 +02:00
Alexandre Alapetite
288ed04ccc
PHPStan level 6 for all PDO and Exception classes ( #5239 )
...
* PHPStan level 6 for all PDO and Exception classes
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112
* Fix type
* Now also our remaining own librairies
* Motivation for a few more files
* A few more DAO classes
* Last interface
2023-03-31 08:23:39 +02:00
Alexandre Alapetite
1335a0e3cf
PHPStan level 5 ( #4110 )
...
* Fix most PHPDocs errors
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
https://phpstan.org/writing-php-code/phpdoc-types
* Avoid func_get_args
Use variadic syntax instead https://php.net/manual/functions.arguments#functions.variable-arg-list
And avoid dynamic functions names when possible to more easily identify calls and unused functions.
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
* PHPStan level 3
* PHPStand level 4
* Update default to PHPStan level 4
* Towards level 5
* Fix level 4 regression
* Towards level 5
* Pass PHPStan level 5
* Towards level 6
* Remove erronenous regression from changelog
https://github.com/FreshRSS/FreshRSS/pull/4116
2022-01-04 13:59:09 +01:00
Kevin Papst
047fa17aeb
fixed css classes for reading mode buttons #1714
2018-01-24 19:37:24 +01:00
Alexandre Alapetite
97d4250bd3
Minor syntax
2018-01-01 20:48:33 +01:00
Kevin Papst
1b7cc49d22
refactored ReadingModes to Model
2017-12-10 15:04:01 +01:00