Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98910 invoked from network); 23 Aug 2016 13:20:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2016 13:20:37 -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.51 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 209.85.215.51 mail-lf0-f51.google.com Received: from [209.85.215.51] ([209.85.215.51:36188] helo=mail-lf0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/A6-49014-3AD4CB75 for ; Tue, 23 Aug 2016 09:20:37 -0400 Received: by mail-lf0-f51.google.com with SMTP id g62so100537526lfe.3 for ; Tue, 23 Aug 2016 06:20:35 -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=9eLuvX4gLrg0M66y6t6nmV880HDrWuZVVResesglFB0=; b=P4Gx31NWT1aVq6IALquY6/PfYFIBZ/IggR4aP6SSt7CZ7R+7Qjvigzo5qGJgRPWm7t QQzHRNeM/l918Y3SnrN+13XW3WUZih8c/wA5Y0Wj7ePKjEC2ZIev0f1TjiZuWn48LJKQ kK/XRw2x4AjxKz9UkvYBNHnR00CucjrOPCiwxlAi3FxZbqtz49OZAmpbpINCw0LUXoEM /1lnrYzK/5dY3n6arNS1ZhRAdl05b4ChIo4bFKDYbGxWytoTkLRFkyqV0yPzR747m+jl fl+jwwKKDsw1oU+DfwDRL/oL9caDWQWyITLKUFEMOGEVdxtKGUaav2YpTL00oyt005s4 A6pw== 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=9eLuvX4gLrg0M66y6t6nmV880HDrWuZVVResesglFB0=; b=kp4hXh/RkeFPKqEW5RGXcm6onC2hTCRROaDpYYLl76ZuUAsOhLW9HfEHrI5k0RpSE+ iz5s/ahcOGdOcZhuA+8pJuJSrwZQnKLAOs8pZVtTAML6mGPRoBpJUZJeKd2ETTsaNUXM D7mYyzUsQCA8Rem2Xhy27NJIobKRyUl4qSjpaYQUYG+M/xBDzmpkVE+OPqQr75I45Iub Ljw06RCLk04EV/veaqE3BV8oeqX8q19+hWTWEAYX9H+EWM6VnFkxh8eAsBrEPYPJ692p C4IfCyT22FuYfVtWn/m0qGvyzFuHaXUz002+9fTc+3fsxvmlPTVDwscz5M5s4HZAFH1I E57g== X-Gm-Message-State: AEkoouu0h8sysDDYvDHGrF8whYsukJUtR1cWVYAdCRE2TTAxa8ZwzbmlAPfP65dIRBWQmTLpF6G40OEu0idHbA== X-Received: by 10.25.134.65 with SMTP id i62mr5945190lfd.128.1471958432613; Tue, 23 Aug 2016 06:20:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.196.144 with HTTP; Tue, 23 Aug 2016 06:20:31 -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:20:31 +0300 Message-ID: To: Julien Pauli Cc: "Christoph M. Becker" , Levi Morrison , Rowan Collins , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113e8526800adc053abd0731 Subject: Re: [PHP-DEV] BC break: ReflectionMethod::invoke() expects parameter1to be object, string given From: lisachenko.it@gmail.com (Alexander Lisachenko) --001a113e8526800adc053abd0731 Content-Type: text/plain; charset=UTF-8 2016-08-23 16:13 GMT+03:00 Julien Pauli : > > No, How can this be ? B extends A , not A extends B ... > In this case, B'sfoo() will be called , which is the equivalent to > having a reflectionMethod from B , so useless to me. Ok, how can I invoke Parent::whoami() with reflection and get exactly "Child" as an output? class Parent { public static function whoami() { echo static::class; } } class Child extends Parent { public static function whoami() { echo "Don't call me now!'; parent::whoami(); } } --001a113e8526800adc053abd0731--