Roland Häder
589d0360a4
So simple ... Ops!
2022-06-23 04:58:45 +02:00
Roland Häder
69676c9f7b
Changes:
...
- enabled sub-directories for compiled/cached files which avoids large+slow
directory descriptors
- changed some double-quotes to single
2022-06-23 04:24:55 +02:00
Hypolite Petovan
b2aee2cf29
Merge pull request #11674 from nupplaphil/dep/guzzle
...
Bump guzzlehttp/guzzle from 6.5.5 to 6.5.8
2022-06-22 15:07:42 -04:00
Philipp
e3aed8099c
Merge pull request #9 from nupplaphil/dependabot/composer/guzzlehttp/guzzle-6.5.8
...
Bump guzzlehttp/guzzle from 6.5.5 to 6.5.8
2022-06-22 20:23:38 +02:00
Hypolite Petovan
c824ba43d5
Merge pull request #11673 from Quix0r/bugs/returned-type-array-bool
...
Fixed: ?? didn't work here as bool won't be seen as null
2022-06-22 13:29:39 -04:00
Roland Häder
7eefb9aed8
Changed:
...
- empty() is maybe superflous here, still I would prefer a code style that is
written explicitly and not rely on "magic casting"
2022-06-22 18:57:01 +02:00
Roland Häder
15d8341d9a
Converted multiple single-comment (//) to multi-line comment block (/* */)
2022-06-22 18:06:35 +02:00
Roland Häder
b996712ef7
Images::getInfoFromURL[Cached]() will both return empty arrays on error and
...
that needs to be reflected here, too.
2022-06-22 17:20:59 +02:00
Roland Häder
eb231bc548
Fixed: ?? didn't work here as bool won't be seen as null
2022-06-22 17:09:53 +02:00
Philipp
78bf7f187c
Merge pull request #11669 from MrPetovan/bug/11666-email-subject-double-encode
2022-06-22 16:51:23 +02:00
Hypolite Petovan
b96daeeeef
Merge pull request #11670 from Quix0r/fixes/more-type-hints-004
...
Fixes/more type hints 004
2022-06-22 10:49:20 -04:00
Roland Häder
d5441da49a
Fixed:
...
- TypeError: "Argument 1 passed to Friendica\Util\XML::escape() must be of the
type string, null given, called in src/Util/XML.php line 171
2022-06-22 16:20:26 +02:00
Roland Häder
101cd2dd10
Changes:
...
- added some documentation
- fixed some documentation
- changed more double-quotes to singl
2022-06-22 16:14:14 +02:00
Roland Häder
ba45e59313
Changes:
...
- added more type-hints
- added missing documentation
- Email::send() now returns what mail() returns (bool)
2022-06-22 14:36:48 +02:00
Roland Häder
ee8d0ad619
Changes:
...
- added more type-hints
- added some documentation
2022-06-22 14:36:47 +02:00
Roland Häder
feec96cbc4
Return empty array on error (I hope it works this way).
2022-06-22 14:36:47 +02:00
Roland Häder
2dd7d465e8
Changes:
...
- added more type-hints
- updated documentation
- changed double-quotes to single
2022-06-22 14:36:47 +02:00
Roland Häder
74ab7648c6
Changes:
...
- addHubLink()'s 2nd parameter is DOMElement
- added more type-hints
- converted double-quotes to single
2022-06-22 14:36:46 +02:00
Roland Häder
12add2fb64
$data can turn into bool here
2022-06-22 14:36:46 +02:00
Roland Häder
08f55f0358
Ops, forgot to rename these, too.
2022-06-22 14:36:46 +02:00
Roland Häder
abd0d9f3fd
Changes
...
- added type-hints
- added some documentation
- added default: block for unknown 'rel' value
- changed return type void to empty array
2022-06-22 14:36:45 +02:00
Roland Häder
dfa95ea58d
Changes:
...
- added type-hints
- added documentation
2022-06-22 14:36:45 +02:00
Roland Häder
84bfc37bf1
Changes:
...
- added more type-hints
- added missing documentation
2022-06-22 14:36:45 +02:00
Tobias Diekershoff
fa973d3b0f
Merge pull request #11671 from MrPetovan/bug/fatal-errors
...
Add expected type-hint to BoundariesPager::renderFull
2022-06-22 14:30:39 +02:00
Hypolite Petovan
e9f7bb477d
Add expected type-hint to BoundariesPager::renderFull
...
- Address https://github.com/friendica/friendica/issues/11630#issuecomment-1162634199
2022-06-22 07:49:45 -04:00
Hypolite Petovan
7295138f8d
Remove type-hint inconsistent with expected return value in Database->getVariable
2022-06-22 07:47:15 -04:00
Hypolite Petovan
d68f307337
Remove email subject encoding from ItemCCEmail constructor
...
- It was wrongly re-encoded in Emailer::send
2022-06-21 21:12:09 -04:00
Hypolite Petovan
a05baaf249
Merge pull request #11668 from Quix0r/renames/logger
...
Renamings in logger class to make them more clear
2022-06-21 20:52:19 -04:00
Roland Häder
2f358607c7
Changes:
...
- renamed Logger::getLogger() to getInstance() (@MrPetovan)
2022-06-22 01:50:10 +02:00
dependabot[bot]
6443713af1
Bump guzzlehttp/guzzle from 6.5.5 to 6.5.8
...
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle ) from 6.5.5 to 6.5.8.
- [Release notes](https://github.com/guzzle/guzzle/releases )
- [Changelog](https://github.com/guzzle/guzzle/blob/6.5.8/CHANGELOG.md )
- [Commits](https://github.com/guzzle/guzzle/compare/6.5.5...6.5.8 )
---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-21 20:47:00 +00:00
Roland Häder
cdcfb4064b
Changes:
...
- added type-hints
- added missing documentation
- renamed Logger::getWorker() to Logger::getLogger() as there is no worker class
returned but the actual (inner) logger
2022-06-21 21:22:16 +02:00
Hypolite Petovan
1c57ea7f75
Merge pull request #11665 from Quix0r/rewrites/dba-array-string-table
...
Rewrites/dba array string table
2022-06-21 15:15:57 -04:00
Roland Häder
8092188991
Added important comment from @nupplaphil@github.com
2022-06-21 21:12:59 +02:00
Roland Häder
f38ad168f5
Reverted and improved TODO:
...
------
@nupplaphil: There is no easy possibility to add a logger here, that's why there
isn't any yet and instead a placeholder.. This execution point is a critical
state during a testrun, and tbh I'd like to leave here no further logic (yet)
because I spent hours debugging cases, where transactions weren't fully closed
and strange/unpredictable errors occur (sometimes -mainly during debugging other
errors :) ...)
-----
2022-06-21 19:21:25 +02:00
Roland Häder
80c8ec17c2
Fixed documentation
2022-06-21 18:43:25 +02:00
Roland Häder
0332a57bfd
Rewrote to suggestions from @MrPetovan (I tried to maintain the old way of
...
['scheme' => 'table'] with my version).
2022-06-21 18:13:01 +02:00
Roland Häder
3b8d9a7248
Use protected $this->logger instead
2022-06-21 17:54:48 +02:00
Roland Häder
9ccb113530
Ops, autorun.sh is there but looks like lesser "multi-project" friendly as
...
MYSQL_* must be defined. I might still use my version as that is
project-specific.
2022-06-21 17:48:10 +02:00
Roland Häder
dcedd2e5d9
Ops, WWORD ...
2022-06-21 13:54:03 +02:00
Roland Häder
5e57ad4d44
Added simple wrapper script to run PHPUnit tests for you. To use this, you need
...
to set at least 4 variables in your ~/.bashrc (recommended):
export FRIENDICA_MYSQL_HOST="localhost"
export FRIENDICA_MYSQL_DATABASE="friendica_test"
export FRIENDICA_MYSQL_USER="friendica_test"
export FRIENDICA_MYSQL_PASSWWORD="friendica_test"
Then you can put ./bin/dev/run_tests.sh into your .git/hooks/pre-commit file
2022-06-21 13:47:40 +02:00
Roland Häder
5fe428d3e4
Fixed:
...
- PHPUnit\Framework\Error\Notice: Undefined index: language in /.../src/Util/EMailer/MailBuilder.php on line 122
2022-06-21 13:47:40 +02:00
Roland Häder
a7651fa1d5
Changes:
...
- let's at least log the error message, yes it does flood your logfile
2022-06-21 13:47:40 +02:00
Roland Häder
1080a840f5
Changes:
...
- Database->$driver can no longer be NULL, an empty string is fine anyway
2022-06-21 13:47:39 +02:00
Roland Häder
945cd1a2c2
Fixed:
...
- since $table can be now schema.table, this needs being taken care off
- maybe this foreach(explode()) is a bit an overkill as only 1 or 2 entries
can be found in it
2022-06-21 13:47:39 +02:00
Roland Häder
0d81a08e3c
WIP: Properly some fixes? Also why is DROP VIEW IF EXISTS is being killed?
2022-06-21 13:47:39 +02:00
Roland Häder
44a9ec9b17
Rewrite:
...
- avoid having array|string for $table to have a "string" type-hint for $table
- you now have to do it for yourself by giving 'schema.table' as parameter
2022-06-21 13:47:38 +02:00
Roland Häder
f62c28008a
Removed comment
2022-06-21 13:47:38 +02:00
Roland Häder
cefffde691
Changes:
...
- added type-hints
- added some missing documentation
2022-06-21 13:47:37 +02:00
Roland Häder
f1867463a0
Changes:
...
- added more type-hints
2022-06-21 13:47:37 +02:00
Roland Häder
77c37ff2db
Fixed:
...
- Uncaught Exception TypeError: "Argument 3 passed to
Friendica\Protocol\DFRN::createActivity() must be of the type string, null
given, called ..."
2022-06-21 13:47:37 +02:00