Commit Graph

  • aa596df098 Merge pull request #11686 from MrPetovan/bug/11636-emailer-message-id-check Philipp 2022-06-25 11:58:23 +02:00
  • a2afb101cd Fix off-by-one error in Message ID header count check in Util\Emailer Hypolite Petovan 2022-06-25 05:35:24 -04:00
  • b9fe8ee38f Merge pull request #11683 from MrPetovan/bug/fatal-errors Tobias Diekershoff 2022-06-25 11:20:33 +02:00
  • c75dbfd3d7 Update default value for LocalRelationship->priority to avoid null values Hypolite Petovan 2022-06-25 05:03:02 -04:00
  • 636b84b41c Update return value type-hint of GServer::getProtocol Hypolite Petovan 2022-06-24 22:37:53 -04:00
  • c5b46fe748 Merge pull request #11681 from Quix0r/fixes/item-guidfromuri-allow-null Hypolite Petovan 2022-06-24 10:15:26 -04:00
  • 4cdc0ef267 Merge pull request #11680 from nupplaphil/feat/log_forward Hypolite Petovan 2022-06-24 10:12:19 -04:00
  • 82bb36e13d Changes: - Made Item::guidFromUri()'s $host parameter optional (allowing null) - added some type-hints - added documentation - this may fix reported issue in #11630 Roland Häder 2022-06-24 03:14:22 +02:00
  • 417b0072bb Move documentation :-) Philipp 2022-06-23 23:24:15 +02:00
  • 2dc38e5632 Move documentation :-) Philipp 2022-06-23 23:23:36 +02:00
  • 5bf5b5e6c9 adaptions :-) Philipp 2022-06-23 23:01:09 +02:00
  • 12ba37e8d2 add more doc Philipp 2022-06-23 22:46:46 +02:00
  • 13783089e7 Add copyright Philipp 2022-06-23 22:44:17 +02:00
  • d441b90bda Respect Forwarded-For headers Philipp 2022-06-23 22:42:35 +02:00
  • dbc1ebbb5c Merge pull request #11679 from Quix0r/rewrites/autotest Hypolite Petovan 2022-06-23 12:41:14 -04:00
  • 3aeeac5d98 Rewrite: - rewrote autotest.sh and moved it to bin/dev/ as this is clearly a developer script - the rewrite's goal is towards Shell/POSIX-compliance (e.g. ${VAR} and not $VAR) Roland Häder 2022-06-21 19:38:56 +02:00
  • d322e9288b Merge pull request #11677 from Quix0r/rewrites/type-hints-doc-001 Hypolite Petovan 2022-06-23 11:34:52 -04:00
  • 657a8a7cb5 Changes: - documented null value - two ' to much! Roland Häder 2022-06-23 17:26:31 +02:00
  • 202857ba7d No need to log $tid here Roland Häder 2022-06-23 16:14:33 +02:00
  • fd8f4269ff Reformatted code Roland Häder 2022-06-23 16:03:55 +02:00
  • 5699b03e8d Changes: - added some nodes to OpenSearch descriptor - still no UTF-8 encoding! - added some type-hints Roland Häder 2022-06-23 14:50:19 +02:00
  • a49fb9cbf9 Changes: - added some type-hints - added documentation Roland Häder 2022-06-23 13:56:18 +02:00
  • 84d3eecc33 Changes: - added some type-hints - changed double-quotes to single Roland Häder 2022-06-23 12:11:22 +02:00
  • 57e741f2cf More type-hints added Roland Häder 2022-06-23 11:59:37 +02:00
  • 182c3db9b8 Changes: - added type-hints - added missing documentation Roland Häder 2022-06-23 11:57:52 +02:00
  • b8353a6eb7 Changes: - reformatted some array - added missing documentation - added type-hints - changed double-quotes to single Roland Häder 2022-06-23 11:39:45 +02:00
  • c6c936a80f Added more type-hints Roland Häder 2022-06-23 10:56:37 +02:00
  • 3f74a59f73 Added some type-hints Roland Häder 2022-06-23 10:30:44 +02:00
  • 69a68be800 Added some missing type-hints Roland Häder 2022-06-23 10:18:38 +02:00
  • f889aeffb3 Changes: - changed double-quotes to single - added type-hints Roland Häder 2022-06-23 10:14:18 +02:00
  • d8ff966d21 Throw IAE again (should never become visible) Roland Häder 2022-06-23 10:03:10 +02:00
  • 35c78ce14c Ops, cannot return Thread? Roland Häder 2022-06-23 09:57:42 +02:00
  • c2e26b4f49 Changed: - Introduced InvalidArgumentException (should never come) - added type-hints Roland Häder 2022-06-23 09:53:46 +02:00
  • 2f3705f471 Continued: - renamed varibales to $camelCase - added type-hints - updated documentation Roland Häder 2022-06-23 09:41:37 +02:00
  • 0322456f70 Merge pull request #11678 from Quix0r/fixes/send-contact-accept-id-string Hypolite Petovan 2022-06-23 11:05:38 -04:00
  • 0ddb315b23 $id in Transmitter::sendContactAccept() is a string, see Introduction class Roland Häder 2022-06-23 16:46:44 +02:00
  • bf600905d3 Merge pull request #11676 from Quix0r/fixes/array-element-missing Hypolite Petovan 2022-06-23 09:06:59 -04:00
  • 859af16cca Merge pull request #11675 from Quix0r/features/smarty-sub-directories Hypolite Petovan 2022-06-23 09:06:06 -04:00
  • 636fef26f1 Maybe this fixes missing array element Roland Häder 2022-06-23 07:39:27 +02:00
  • 589d0360a4 So simple ... Ops! Roland Häder 2022-06-23 04:58:16 +02:00
  • 69676c9f7b Changes: - enabled sub-directories for compiled/cached files which avoids large+slow directory descriptors - changed some double-quotes to single Roland Häder 2022-06-23 04:23:22 +02:00
  • b2aee2cf29 Merge pull request #11674 from nupplaphil/dep/guzzle Hypolite Petovan 2022-06-22 15:07:42 -04:00
  • e3aed8099c Merge pull request #9 from nupplaphil/dependabot/composer/guzzlehttp/guzzle-6.5.8 Philipp 2022-06-22 20:23:38 +02:00
  • c824ba43d5 Merge pull request #11673 from Quix0r/bugs/returned-type-array-bool Hypolite Petovan 2022-06-22 13:29:39 -04:00
  • 7eefb9aed8 Changed: - empty() is maybe superflous here, still I would prefer a code style that is written explicitly and not rely on "magic casting" Roland Häder 2022-06-22 18:56:08 +02:00
  • 15d8341d9a Converted multiple single-comment (//) to multi-line comment block (/* */) Roland Häder 2022-06-22 18:06:04 +02:00
  • b996712ef7 Images::getInfoFromURL[Cached]() will both return empty arrays on error and that needs to be reflected here, too. Roland Häder 2022-06-22 17:18:39 +02:00
  • eb231bc548 Fixed: ?? didn't work here as bool won't be seen as null Roland Häder 2022-06-22 17:09:20 +02:00
  • 78bf7f187c Merge pull request #11669 from MrPetovan/bug/11666-email-subject-double-encode Philipp 2022-06-22 16:51:23 +02:00
  • b96daeeeef Merge pull request #11670 from Quix0r/fixes/more-type-hints-004 Hypolite Petovan 2022-06-22 10:49:20 -04:00
  • 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 Roland Häder 2022-06-22 16:19:45 +02:00
  • 101cd2dd10 Changes: - added some documentation - fixed some documentation - changed more double-quotes to singl Roland Häder 2022-06-22 16:13:46 +02:00
  • ba45e59313 Changes: - added more type-hints - added missing documentation - Email::send() now returns what mail() returns (bool) Roland Häder 2022-06-22 12:43:56 +02:00
  • ee8d0ad619 Changes: - added more type-hints - added some documentation Roland Häder 2022-06-22 12:01:42 +02:00
  • feec96cbc4 Return empty array on error (I hope it works this way). Roland Häder 2022-06-22 11:49:54 +02:00
  • 2dd7d465e8 Changes: - added more type-hints - updated documentation - changed double-quotes to single Roland Häder 2022-06-22 11:44:56 +02:00
  • 74ab7648c6 Changes: - addHubLink()'s 2nd parameter is DOMElement - added more type-hints - converted double-quotes to single Roland Häder 2022-06-22 11:35:15 +02:00
  • 12add2fb64 $data can turn into bool here Roland Häder 2022-06-22 06:03:37 +02:00
  • 08f55f0358 Ops, forgot to rename these, too. Roland Häder 2022-06-22 05:54:25 +02:00
  • abd0d9f3fd Changes - added type-hints - added some documentation - added default: block for unknown 'rel' value - changed return type void to empty array Roland Häder 2022-06-22 05:44:57 +02:00
  • dfa95ea58d Changes: - added type-hints - added documentation Roland Häder 2022-06-22 05:03:30 +02:00
  • 84bfc37bf1 Changes: - added more type-hints - added missing documentation Roland Häder 2022-06-21 23:34:14 +02:00
  • fa973d3b0f Merge pull request #11671 from MrPetovan/bug/fatal-errors Tobias Diekershoff 2022-06-22 14:30:39 +02:00
  • e9f7bb477d Add expected type-hint to BoundariesPager::renderFull Hypolite Petovan 2022-06-22 07:49:45 -04:00
  • 7295138f8d Remove type-hint inconsistent with expected return value in Database->getVariable Hypolite Petovan 2022-06-22 07:47:15 -04:00
  • d68f307337 Remove email subject encoding from ItemCCEmail constructor Hypolite Petovan 2022-06-21 21:12:09 -04:00
  • a05baaf249 Merge pull request #11668 from Quix0r/renames/logger Hypolite Petovan 2022-06-21 20:52:19 -04:00
  • 2f358607c7 Changes: - renamed Logger::getLogger() to getInstance() (@MrPetovan) Roland Häder 2022-06-22 01:49:35 +02:00
  • 6443713af1 Bump guzzlehttp/guzzle from 6.5.5 to 6.5.8 dependabot[bot] 2022-06-21 20:47:00 +00:00
  • 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 Roland Häder 2022-06-21 18:40:26 +02:00
  • 1c57ea7f75 Merge pull request #11665 from Quix0r/rewrites/dba-array-string-table Hypolite Petovan 2022-06-21 15:15:57 -04:00
  • 8092188991 Added important comment from @nupplaphil@github.com Roland Häder 2022-06-21 21:12:43 +02:00
  • 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 :) ...) ----- Roland Häder 2022-06-21 19:19:11 +02:00
  • 80c8ec17c2 Fixed documentation Roland Häder 2022-06-21 18:42:51 +02:00
  • 0332a57bfd Rewrote to suggestions from @MrPetovan (I tried to maintain the old way of ['scheme' => 'table'] with my version). Roland Häder 2022-06-21 18:11:59 +02:00
  • 3b8d9a7248 Use protected $this->logger instead Roland Häder 2022-06-21 17:54:23 +02:00
  • 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. Roland Häder 2022-06-21 17:47:11 +02:00
  • dcedd2e5d9 Ops, WWORD ... Roland Häder 2022-06-21 13:53:30 +02:00
  • 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): Roland Häder 2022-06-21 13:45:13 +02:00
  • 5fe428d3e4 Fixed: - PHPUnit\Framework\Error\Notice: Undefined index: language in /.../src/Util/EMailer/MailBuilder.php on line 122 Roland Häder 2022-06-21 13:32:04 +02:00
  • a7651fa1d5 Changes: - let's at least log the error message, yes it does flood your logfile Roland Häder 2022-06-21 13:21:33 +02:00
  • 1080a840f5 Changes: - Database->$driver can no longer be NULL, an empty string is fine anyway Roland Häder 2022-06-21 13:04:05 +02:00
  • 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 Roland Häder 2022-06-21 12:43:24 +02:00
  • 0d81a08e3c WIP: Properly some fixes? Also why is DROP VIEW IF EXISTS is being killed? Roland Häder 2022-06-21 12:09:51 +02:00
  • 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 Roland Häder 2022-06-21 11:44:23 +02:00
  • f62c28008a Removed comment Roland Häder 2022-06-21 11:10:11 +02:00
  • cefffde691 Changes: - added type-hints - added some missing documentation Roland Häder 2022-06-20 03:10:02 +02:00
  • f1867463a0 Changes: - added more type-hints Roland Häder 2022-06-20 02:30:09 +02:00
  • 77c37ff2db Fixed: - Uncaught Exception TypeError: "Argument 3 passed to Friendica\Protocol\DFRN::createActivity() must be of the type string, null given, called ..." Roland Häder 2022-06-16 19:31:50 +02:00
  • e6ddb167f6 Merge pull request #11664 from tobiasd/20220621-fr Hypolite Petovan 2022-06-21 07:43:12 -04:00
  • 4650ff53d9 Merge pull request #11662 from MrPetovan/bug/11661-splitattachment-null Tobias Diekershoff 2022-06-21 06:48:52 +02:00
  • fff6e30782 update FR translations THX kalon33 Tobias Diekershoff 2022-06-21 06:45:14 +02:00
  • d2ca812647 Merge pull request #11660 from Quix0r/fixes/more-type-hints-003 Hypolite Petovan 2022-06-20 21:53:17 -04:00
  • 3e522ed512 Fixed: - prevent NULL from being handled over to XML::escape() - still I wonder that an object can be? It is a string-only accepting method Roland Häder 2022-06-21 01:41:34 +02:00
  • 95f9eb34ac Fixed indenting Roland Häder 2022-06-21 01:29:20 +02:00
  • ee9bc338a5 Merge pull request #11663 from Quix0r/composer/upgrade Hypolite Petovan 2022-06-20 19:17:13 -04:00
  • b6fa022a73 Changes: - added type-hints - added some documentation - marked some generic methods to be moved to Util\Strings class instead Roland Häder 2022-06-20 23:49:29 +02:00
  • 6a98ffa330 Updated composer.phar Roland Häder 2022-06-20 22:54:45 +02:00
  • fbae0b8bcf Changes: - renamed ItemArrayFromMail() to getItemArrayFromMail() to follow naming-convetion - added missing type-hints - added missing documentation Roland Häder 2022-06-20 21:21:32 +02:00
  • ea22e88896 Added documentation Roland Häder 2022-06-20 21:02:18 +02:00