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