1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 16:54:44 +02:00

Add “#[\ReturnTypeWillChange]” comments to all InteratorAggregate, Countable and PDOStatement interface classes to stop PHP 8.1 notices per https://php.watch/versions/8.1/internal-method-return-types and processwire/processwire-issues#1467 ... someday when all PHP 5.x support can be dropped these will be converted to PHP 7.1+ return types

This commit is contained in:
Ryan Cramer
2021-12-31 09:19:09 -05:00
parent bca50abb48
commit ee64e114f2
23 changed files with 82 additions and 13 deletions

View File

@@ -862,7 +862,7 @@ class PageTraversal {
if($options === true || (is_array($options) && !empty($options['http']))) {
if(strpos($url, '://') === false) {
$url = ($https ? 'https://' : 'http://') . $config->httpHost . $url;
$url = ($https || $config->https ? 'https://' : 'http://') . $config->httpHost . $url;
}
}