modifs.mineures sans commentaires
This commit is contained in:
parent
ac94ddc345
commit
b94402f927
|
@ -233,8 +233,8 @@ class CapacitorChannel {
|
|||
*
|
||||
* cette méthode doit être utilisée dans {@link self::onUpdate()}
|
||||
*/
|
||||
function wasRowModified(array $values): bool {
|
||||
return array_key_exists("modified_", $values);
|
||||
function wasRowModified(array $values, array $pvalues): bool {
|
||||
return $values["item__sum_"] !== $pvalues["item__sum_"];
|
||||
}
|
||||
|
||||
final function serialize($item): ?string {
|
||||
|
|
|
@ -139,6 +139,7 @@ class DateTime extends \DateTime {
|
|||
}
|
||||
|
||||
function __construct($datetime="now", DateTimeZone $timezone=null) {
|
||||
$datetime ??= "now";
|
||||
if ($datetime instanceof \DateTimeInterface) {
|
||||
if ($timezone === null) $timezone = $datetime->getTimezone();
|
||||
parent::__construct();
|
||||
|
|
Loading…
Reference in New Issue