mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-06 15:24:27 +02:00
Fix possible false return type in PHP 7.4
This commit is contained in:
parent
bb6a4a3acd
commit
b999472ddb
1 changed files with 2 additions and 2 deletions
|
@ -175,11 +175,11 @@ HELP;
|
|||
* @param string $string
|
||||
* @param array|string $node
|
||||
*/
|
||||
private static function parse(string $string, &$node = [])
|
||||
private static function parse(string $string, &$node)
|
||||
{
|
||||
// Removes extra outward parentheses
|
||||
if (strpos($string, '(') === 0 && strrpos($string, ')') === strlen($string) - 1) {
|
||||
$string = substr($string, 1, -1);
|
||||
$string = (string) substr($string, 1, -1);
|
||||
}
|
||||
|
||||
$q = strpos($string, '?');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue