1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-21 05:51:41 +02:00
This commit is contained in:
Ryan Cramer
2022-03-29 08:22:13 -04:00
parent 527f844403
commit 47f2742b72
2 changed files with 421 additions and 419 deletions

View File

@@ -170,9 +170,9 @@ class WireDateTime extends Wire {
if(empty($str)) return ''; if(empty($str)) return '';
// already a timestamp // already a timestamp
if(ctype_digit(ltrim($str, '-'))) return (int) $str; if(ctype_digit(ltrim("$str", '-'))) return (int) $str;
$format = trim($format); $format = trim("$format");
if(!strlen($format)) return strtotime($str); if(!strlen($format)) return strtotime($str);
// use PHP 5.3's date parser if its available // use PHP 5.3's date parser if its available

View File

@@ -8337,6 +8337,7 @@ class HTMLPurifier_PropertyListIterator extends FilterIterator
/** /**
* @return bool * @return bool
*/ */
#[\ReturnTypeWillChange]
public function accept() public function accept()
{ {
$key = $this->getInnerIterator()->key(); $key = $this->getInnerIterator()->key();
@@ -8455,6 +8456,7 @@ class HTMLPurifier_StringHash extends ArrayObject
* @param mixed $index * @param mixed $index
* @return mixed * @return mixed
*/ */
#[\ReturnTypeWillChange]
public function offsetGet($index) public function offsetGet($index)
{ {
$this->accessed[$index] = true; $this->accessed[$index] = true;