<feed xmlns='http://www.w3.org/2005/Atom'>
<title>FreshRSS (Customized)/lib/Minz/Pdo.php, branch 1.22.1</title>
<subtitle>Customized version of FreshRSS, a self-hosted RSS feed aggregator</subtitle>
<id>https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.22.1</id>
<link rel='self' href='https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.22.1'/>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/'/>
<updated>2023-07-07T19:53:17+00:00</updated>
<entry>
<title>fix many "Only booleans are allowed in an if condition" (#5501)</title>
<updated>2023-07-07T19:53:17+00:00</updated>
<author>
<name>Luc SANCHEZ</name>
<email>4697568+ColonelMoutarde@users.noreply.github.com</email>
</author>
<published>2023-07-07T19:53:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=7f9594b8c7d7799f2e5f89328bd5981410db8cf0'/>
<id>urn:sha1:7f9594b8c7d7799f2e5f89328bd5981410db8cf0</id>
<content type='text'>
* fix many "Only booleans are allowed in an if condition"

* Update cli/create-user.php

Co-authored-by: Alexandre Alapetite &lt;alexandre@alapetite.fr&gt;

* Update cli/i18n/I18nUsageValidator.php

Co-authored-by: Alexandre Alapetite &lt;alexandre@alapetite.fr&gt;

* Fix several regressions and other minor things

* Fix another regression

* Update lib/http-conditional.php

Co-authored-by: Alexandre Alapetite &lt;alexandre@alapetite.fr&gt;

---------

Co-authored-by: Luc &lt;sanchezluc+freshrss@gmail.com&gt;
Co-authored-by: Alexandre Alapetite &lt;alexandre@alapetite.fr&gt;</content>
</entry>
<entry>
<title>PHPStan Level 7 complete (#5406)</title>
<updated>2023-05-22T18:55:59+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2023-05-22T18:55:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=445cc23abdda5767b622d70cf7b5eb5310dcf908'/>
<id>urn:sha1:445cc23abdda5767b622d70cf7b5eb5310dcf908</id>
<content type='text'>
* PHPStan Level 7 complete

* Start PHPStan Level 8

* Forgot exclude .phtml</content>
</entry>
<entry>
<title>A few additional PHPStan rules (#5388)</title>
<updated>2023-05-11T11:02:04+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2023-05-11T11:02:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=6e2f2f1c1e98ecd86aa89c6547beb742d7385d18'/>
<id>urn:sha1:6e2f2f1c1e98ecd86aa89c6547beb742d7385d18</id>
<content type='text'>
A subset of
https://github.com/phpstan/phpstan-strict-rules</content>
</entry>
<entry>
<title>PHPStan Level 7 for more DAO PDO (#5328)</title>
<updated>2023-04-28T12:01:11+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2023-04-28T12:01:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=c72914bba2363e436574204b3d6093a6f3cfce89'/>
<id>urn:sha1:c72914bba2363e436574204b3d6093a6f3cfce89</id>
<content type='text'>
* PHPStan Level 7 for more DAO PDO
With new function to address common type and check problems

* A bit more

* PHPStan Level 7 for FreshRSS_Entry</content>
</entry>
<entry>
<title>PHPStan level 6 for all PDO and Exception classes (#5239)</title>
<updated>2023-03-31T06:23:39+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2023-03-31T06:23:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=288ed04ccc30b58373576dc3be811aee43e67034'/>
<id>urn:sha1:288ed04ccc30b58373576dc3be811aee43e67034</id>
<content type='text'>
* 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</content>
</entry>
<entry>
<title>Fix PHP 7.4 signature warnings (#4140)</title>
<updated>2022-01-09T18:02:12+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2022-01-09T18:02:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=3502e50cb24177f06900389f10d265529a24fd58'/>
<id>urn:sha1:3502e50cb24177f06900389f10d265529a24fd58</id>
<content type='text'>
Revert some type hints creating warnings in PHP 7.4 (not in PHP 7.0 nor PHP 8.1)</content>
</entry>
<entry>
<title>Optimise Minz_ModelPdo::class (#4119)</title>
<updated>2022-01-07T09:05:09+00:00</updated>
<author>
<name>Luc SANCHEZ</name>
<email>4697568+ColonelMoutarde@users.noreply.github.com</email>
</author>
<published>2022-01-07T09:05:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=ed19445f74c30854c60873cd1df1c38e15fc316b'/>
<id>urn:sha1:ed19445f74c30854c60873cd1df1c38e15fc316b</id>
<content type='text'>
* - Fix typo,
- remove unnecessary null in property,
- remove unused property,
- add phpDoc,
- add ext PDO in composer.json,
- use strict comparison,
- indentation

* Translate

* Update lib/Minz/ModelPdo.php

Co-authored-by: Frans de Jonge &lt;fransdejonge@gmail.com&gt;

* The code is more explicite

* Fix phpstan

* Fix phpstan expect one

* Fix phpstan

* Return in back...

* make fix-all

* Fix exception and more types

* Fix more types

* Remove ext- in composer.json

Co-authored-by: Luc SANCHEZ &lt;l.sanchez-ext@ubitransport.com&gt;
Co-authored-by: Frans de Jonge &lt;fransdejonge@gmail.com&gt;
Co-authored-by: Alexandre Alapetite &lt;alexandre@alapetite.fr&gt;</content>
</entry>
<entry>
<title>[CI] PHPCS: check for opening brace on same line (#4122)</title>
<updated>2022-01-04T23:52:24+00:00</updated>
<author>
<name>Frans de Jonge</name>
<email>fransdejonge@gmail.com</email>
</author>
<published>2022-01-04T23:52:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=d339b6dd454d814ffc323fa9077b70e33339c479'/>
<id>urn:sha1:d339b6dd454d814ffc323fa9077b70e33339c479</id>
<content type='text'>
* [CI] PHPCS: check for opening brace on same line

* make fix-all

* Minor comments

Co-authored-by: Alexandre Alapetite &lt;alexandre@alapetite.fr&gt;</content>
</entry>
<entry>
<title>Fix some PHP 8.1 warnings (#4012)</title>
<updated>2021-12-01T22:24:39+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2021-12-01T22:24:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=28cff8a0df3af23f7acf01840da43c098c779313'/>
<id>urn:sha1:28cff8a0df3af23f7acf01840da43c098c779313</id>
<content type='text'>
* Fix some PHP 8.1 warnings
The proper fix will have to wait till be drop PHP7.
#fix https://github.com/FreshRSS/FreshRSS/issues/4010

* Another PHP8.1 fix</content>
</entry>
<entry>
<title>Add a file for each PDO class (#3301)</title>
<updated>2020-12-28T23:11:34+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2020-12-28T23:11:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=3f4c86f80f7cf7fd0ba9260d46eafc55d46fe9af'/>
<id>urn:sha1:3f4c86f80f7cf7fd0ba9260d46eafc55d46fe9af</id>
<content type='text'>
Before, we had 5 classes in the ModelPdo file. It was bad for 2 reasons.
The first reason is that it is considered bad practice to have multiple
class in one file. This is especially true when using autoloading. On top
of that it is less readable considering the size of the file. The second
reason is that so far we were lucky. Everytime we needed to access the
database, it was through the ModelPdo class which loads all the other
classes. If we want to access directly the connection, it wont be loaded.
On top of that, the system is configured to work on a single database,
but as we have every connection definition in a single file, all classes
were loaded at the same time. Thus using memory and processing time for
nothing.
Now, we have a file for each class. To work with autoloading, classes
were slightly renamed to match autoloading rules.</content>
</entry>
</feed>
