mirror of
https://github.com/processwire/processwire.git
synced 2025-08-21 05:51:41 +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 '';
|
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
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user