Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110821 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53845 invoked from network); 2 Jul 2020 16:31:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Jul 2020 16:31:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 310CA180505 for ; Thu, 2 Jul 2020 08:21:01 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 2 Jul 2020 08:21:00 -0700 (PDT) Received: by mail-oi1-f171.google.com with SMTP id 12so17457508oir.4 for ; Thu, 02 Jul 2020 08:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bWP4MblTEM/mbngUAm1GXjQ+tEad6oK3RxFtCIyxhX8=; b=FTaiUGG21ketfo30aiGVCygjyxZU5VqZOxbtymIWrGdviVEzheBYvA01j2LoobTzMw cd9kXWFnw2FdfQvL7RQnNDDwL3rqjiGhBZxfKo02xYIvB4AidN5ozCBv9FSp6SzlOXwW rVnzI8NES6fTTmk/C0HThwt3nCymg+BhNlpTJFcaeX/7Yj/DeUTyHzAopwZ2oeN13vPz 8Mg/I3P2hAYMLtD4d6bjCF4BzrpnhldsnNPU82T7Xb7MJ409DhpJMcrganl/N1tDG2CH LKScCx1hKwHcsP6dUl+QND/mgNnLAQW/uPC28SSSk01ZikjvFF1lnomIxuDl3WOQQOjN HpDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bWP4MblTEM/mbngUAm1GXjQ+tEad6oK3RxFtCIyxhX8=; b=l3H/3TBOrrL0k+iKBJLZp9hnnix754yrhb8USO2eKzAEu1Xw32p86bg3DQ9JP613D7 VKWHc+jP64tOuAkqwUB3M4hkA7heebk6+/a7zRgxEoEdPPl08HlXct7xdZo6+rqDVqzk ZtSnxGxXQS9s9u/IiAgrzKmvdy0DmoV+Vmd0EUI0gGJnnFd9OaECaLGDyd7H1yMdykg5 s2MtnqUmjYGogNpHyBMaL/baimpn5+YJGsxp2TVMVP5lB8tTdVeH8dEqiWGhVDiFaAwV lLmfOvo8xK/8jIgHJkZVfAkj1syquM4DKU2SYJjXzS/BIOknuajPjGf3gAC0wdzOwSvx ttaw== X-Gm-Message-State: AOAM5327rEJr/+C0qY5sPz9KyRA7avsOfmPq0TonrOHOxYd0VlUhqfZc t5pN9P7Y2YVwWvp3gX6jxf637Vr9t5jo1AmTNJ0TJSYtVE0= X-Google-Smtp-Source: ABdhPJyuXx1kAgIdHSOrSNhCe6ECVfnOotkrM/+SFN1rzjkq7F2YaJ0TEzUSDUVSy2bATYJuNPfuTriQKO4galwxHpM= X-Received: by 2002:a05:6808:aa2:: with SMTP id r2mr23678358oij.162.1593703257488; Thu, 02 Jul 2020 08:20:57 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 2 Jul 2020 12:20:43 -0300 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="0000000000008a3ecb05a976f436" Subject: Improve "trying to get property 'id' of non-object" error message From: david.proweb@gmail.com (David Rodrigues) --0000000000008a3ecb05a976f436 Content-Type: text/plain; charset="UTF-8" Hello! Is it possible to improve this error message? It is much more complicated to identify when we have two occurrences on the same line. For example: $availMasterResults->get($availMaster->id . '@' . $sessionUser->id) -> trying to get property 'id' of non-object Is not possible to identify if it is related to $availMaster or $sessionUser variables. Suggestion: -> trying to get property 'id' of non-object (null) from variable $availMaster -> trying to get property 'id' of non-object (int) retrieved from property $some->property -> trying to get property 'id' of non-object (array) retrieved from return of getObject() Atenciosamente, David Rodrigues --0000000000008a3ecb05a976f436--