Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110980 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92871 invoked from network); 13 Jul 2020 19:40:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Jul 2020 19:40:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E3BFC18053A for ; Mon, 13 Jul 2020 11:33:10 -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.1 required=5.0 tests=BAYES_00,DOS_RCVD_IP_TWICE_B, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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-Virus: No X-Envelope-From: Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (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 ; Mon, 13 Jul 2020 11:33:10 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id t27so12036201ill.9 for ; Mon, 13 Jul 2020 11:33:10 -0700 (PDT) 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=AaS33hZG4KrjCMpOGmJHddiGxJvG6+CoRBy9IL68qfo=; b=Fb0wK7UyMEvwZCxsTD+oz1mcnVHvLSE9teQRtfdWsOecDBZqQhw12xsp2mpKKFUPlW ioh1AXps0OQQ5tQBU8UXRzHuz9FF7/v4v+BJUzGa0zL4cvFTW/jn8l4P4qJvkKhHX8iT 0nbhC0aEoFCI6JW+8yLQHpF3M/g+6GqakCic8cHZ1NVeQjxfLFZrKYeN9MP8x0gMLwTs OjdiWtqqOSRlxt9R9DXU1rFaqOokeZQ0t51p2LZ9op847KWTJC4QWR8wa+66hHU6DoEc hkc7bqf61VryaGg9gwS4qlOwtjjO1Bkcm1jFPCz27a8GMWdjZYtZmscLYwKmgi6Kxmbi /PNA== X-Gm-Message-State: AOAM533sw/SaF7PNO8e/MUGTx5QAZlul97DGBeB2uWSA4ExZO5NFEHHY /hlBxRXeDwkXEdtRAl3ookmU/9W31rI= X-Google-Smtp-Source: ABdhPJyVusTvPkxn+Dqw7b0hKTBCQy7AgNwBKMFqcXC62gQyNcKtPZMN9eUZ85bx44RBqT0cCHYGTg== X-Received: by 2002:a92:25c9:: with SMTP id l192mr1046675ill.135.1594665189214; Mon, 13 Jul 2020 11:33:09 -0700 (PDT) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com. [209.85.166.179]) by smtp.gmail.com with ESMTPSA id a11sm3945009iow.26.2020.07.13.11.33.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Jul 2020 11:33:09 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id o3so12034214ilo.12 for ; Mon, 13 Jul 2020 11:33:08 -0700 (PDT) X-Received: by 2002:a92:b684:: with SMTP id m4mr1056262ill.153.1594665188482; Mon, 13 Jul 2020 11:33:08 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 13 Jul 2020 20:32:51 +0200 X-Gmail-Original-Message-ID: Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="00000000000018654705aa56ec40" Subject: [PHP-DEV] Drop warning about non-public magic methods From: carusogabriel@php.net (Gabriel Caruso) --00000000000018654705aa56ec40 Content-Type: text/plain; charset="UTF-8" Hello internals, During the development of https://wiki.php.net/rfc/magic-methods-signature I found something that I'd like to share with you, and possibly propose to drop it: there's a warning that php-src throws when a magic method is declared with visibility different than `public`: https://3v4l.org/LKnKB. This warning does not make much sense as the magic method is executed regardless of its visibility. Should it be dropped? - Gabriel Caruso --00000000000018654705aa56ec40--