mirror of
https://github.com/processwire/processwire.git
synced 2025-08-20 05:21:29 +02:00
Updates for processwire/processwire-issues#1467
This commit is contained in:
@@ -170,9 +170,9 @@ class WireDateTime extends Wire {
|
||||
if(empty($str)) return '';
|
||||
|
||||
// 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);
|
||||
|
||||
// use PHP 5.3's date parser if its available
|
||||
|
@@ -8337,6 +8337,7 @@ class HTMLPurifier_PropertyListIterator extends FilterIterator
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function accept()
|
||||
{
|
||||
$key = $this->getInnerIterator()->key();
|
||||
@@ -8455,6 +8456,7 @@ class HTMLPurifier_StringHash extends ArrayObject
|
||||
* @param mixed $index
|
||||
* @return mixed
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function offsetGet($index)
|
||||
{
|
||||
$this->accessed[$index] = true;
|
||||
|
Reference in New Issue
Block a user