Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77289 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91435 invoked from network); 17 Sep 2014 14:43:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2014 14:43:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.48 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.48 mail-oa0-f48.google.com Received: from [209.85.219.48] ([209.85.219.48:36511] helo=mail-oa0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/15-57031-7FD99145 for ; Wed, 17 Sep 2014 10:43:04 -0400 Received: by mail-oa0-f48.google.com with SMTP id g18so1163326oah.7 for ; Wed, 17 Sep 2014 07:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=5PHMj0Lm8C8mBJzFdfL1+mtzIU1oIMMPutCpW7DQEqA=; b=K1ldplZA2Pa/ju9cCP7L79sebIASPmb+sAKkxehPZ7L7BS6me87O3rolKnWwajyLT0 z7sW1JeGLeugj+6eUAGsplmZP520ClqCzoC+YlAs3K50C+eze2A1fwx46DL4O3TJ78LW Jj4XTLK5A/BojEfJFKO4+xivj8wPx+z59B5wzUfBdNXC26uea1i/NDxo2Zr8L8iTF3nj DaNkpsAdjOamUmrcsyqxlzBE11+wzrB62C3PCfJldg7rZBRL8cfdkpRyTRro5JUY0Yc9 BQytnNeigfYxlAhY9qQWPIQwimpPqmR1wT0aWs1gJVeqaf+d1z3lYkSQJGnU1F2y6WTs yAFw== MIME-Version: 1.0 X-Received: by 10.182.119.230 with SMTP id kx6mr18943562obb.72.1410964980549; Wed, 17 Sep 2014 07:43:00 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.106.20 with HTTP; Wed, 17 Sep 2014 07:43:00 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Sep 2014 08:43:00 -0600 X-Google-Sender-Auth: 1zTZAizs9xNJlLHS6AHNoPQJ9ds Message-ID: To: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: Renaming type-hints to something else? From: levim@php.net (Levi Morrison) > This also manifests itself to users because of reflection as well. I think maybe writing out a few possible class/method names might be helpful: Using Hint: ------------------------------ class ReflectionTypeHint Methods: ReflectionFunction::hasReturnTypeHint ReflectionFunction::getReturnTypeHint ReflectionParameter::hasTypeHint ReflectionParameter::getTypeHint Using Decl: ------------------------------ class ReflectionTypeDecl Methods: ReflectionFunction::hasReturnTypeDecl ReflectionFunction::getReturnTypeDecl ReflectionParameter::hasTypeDecl ReflectionParameter::getTypeDecl Using Declaration: ------------------------------ class ReflectionTypeDeclaration Methods: ReflectionFunction::hasReturnTypeDeclaration ReflectionFunction::getReturnTypeDeclaration ReflectionParameter::hasTypeDeclaration ReflectionParameter::getTypeDeclaration Dropping the suffix: ------------------------------ class ReflectionType Methods: ReflectionFunction::hasReturnType ReflectionFunction::getReturnType ReflectionParameter::hasType ReflectionParameter::getType