Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95406 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93816 invoked from network); 23 Aug 2016 13:07:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2016 13:07:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=lisachenko.it@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lisachenko.it@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.41 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 209.85.215.41 mail-lf0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:32895] helo=mail-lf0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/85-49014-E9A4CB75 for ; Tue, 23 Aug 2016 09:07:43 -0400 Received: by mail-lf0-f41.google.com with SMTP id b199so100508625lfe.0 for ; Tue, 23 Aug 2016 06:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/HSQ2MxqvPKVPr8OOemCEHwZjp7HjVEtYvfL4bNE298=; b=ME9327SyFDdg28kmhBa72ABWRYWYq0Hy9RU5dnOStzsn6D8HXEnjPXhfTtqwTEIH/i P7ezYqLVTJCFUZT+3MQDaxgBsF2lclUvU+0SpyLSbOVN85NFJwTQYxuXF9+LykuVmUeo SlGudWHgWOUs5AZE3a0HazRXUcXjzgLxtq7YJlg5U5oG0KoJA9NLTlMu/TSSTGRSqrgr tW+ImyV60DUqkj37ET36hvD1rmUdM8Q1QufXtqSgU6Gbi8kx/kE9iw3bCehuFw/T+LFo zlP9immY/Q/TfjS0s28BgUsK+Bri8wDrTs3F0wizjxXlQ8R76KwK46eg2J9BWj2OydKw Oh0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/HSQ2MxqvPKVPr8OOemCEHwZjp7HjVEtYvfL4bNE298=; b=kJlFgZ1gxoEdD4OembBAjRaPM7XhuXEEmdFgW11mRVkFpR68HqXinXe9DzwFG6Z3ed tKcq+f4nDec4fDjNhjqDdgLqlKp7B24d8RGlLNY7CosHDcKpIx9InsP9K1IF+5jhkSsB Ycq53vREtgeRmJ5QNhZvCseQEnTJFeECBcWJFj4B/MbUaVA1N9hUZvULFpI9ofEq3bUt zTAVJDoqCeDBj3t/SWouaXAisEu978axRHmJMkjIRLIOCMgnzgnWkeehVBmprp8UiOb7 bn2baW7AVTDAejnKRn4y5gD8u0uovSaKfrKWeXWgCtz2JoHRmh4xif7YCZXPX6hPh1Bc crYA== X-Gm-Message-State: AEkooutK3FWoRypnj1VpqFomG9/+cDsFj5uuh9WymdcH9qoILBu1hrm+kNTJ+TMNYQo0DDt5bXOwaT9DY3ijkw== X-Received: by 10.25.30.76 with SMTP id e73mr8458814lfe.202.1471957659296; Tue, 23 Aug 2016 06:07:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.196.144 with HTTP; Tue, 23 Aug 2016 06:07:38 -0700 (PDT) In-Reply-To: References: <031a2bf1-1996-1144-2b85-e10a40be9514@gmail.com> <7b81c830-1d05-a4ac-4713-1bb67cbec12c@gmx.de> Date: Tue, 23 Aug 2016 16:07:38 +0300 Message-ID: To: Julien Pauli Cc: "Christoph M. Becker" , Levi Morrison , Rowan Collins , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a114025cc682848053abcd915 Subject: Re: [PHP-DEV] BC break: ReflectionMethod::invoke() expects parameter1to be object, string given From: lisachenko.it@gmail.com (Alexander Lisachenko) --001a114025cc682848053abcd915 Content-Type: text/plain; charset=UTF-8 2016-08-23 16:01 GMT+03:00 Julien Pauli : > This : > > class A { public static function foo() { } } > class B extends A { public static function foo() { } } > > $a = new reflectionMethod('A', 'foo'); > $a->invoke('B'); > It's perfect way for me. Just to be sure: in this case we will invoke A::foo() method, but the scope (static::class) will be 'B', right? If yes, then everything is ok and it will be compatible with all existing code but will have an additional meaning for calling methods with children's scope. --001a114025cc682848053abcd915--