: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
return v === undefined ? 0 : Number(v);
function different(u, v) {
return u !== v && !(isNaN(u) && isNaN(v));
function DOMRect(xArg, yArg, wArg, hArg) {
var x, y, width, height, left, right, top, bottom;
Object.defineProperties(this, {
get: function () { return x; },
if (different(x, newX)) {
left = right = undefined;
get: function () { return y; },
if (different(y, newY)) {
top = bottom = undefined;
get: function () { return width; },
set: function (newWidth) {
if (different(width, newWidth)) {
left = right = undefined;
get: function () { return height; },
set: function (newHeight) {
if (different(height, newHeight)) {
top = bottom = undefined;
if (left === undefined) {
left = x + Math.min(0, width);
if (right === undefined) {
right = x + Math.max(0, width);
top = y + Math.min(0, height);
if (bottom === undefined) {
bottom = y + Math.max(0, height);
global.DOMRect = DOMRect;