Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17515 invoked from network); 13 Jul 2015 12:33:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2015 12:33:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:35959] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/A6-43998-410B3A55 for ; Mon, 13 Jul 2015 08:33:25 -0400 Received: by widjy10 with SMTP id jy10so68097534wid.1 for ; Mon, 13 Jul 2015 05:33:21 -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:content-type; bh=8RFIgtj7nyN166cFPucRrahJK7oq3oAkKNEt9LNEqqQ=; b=tCQG79ySgFmscxcxWEd9T4g9hTVQK5CrInmSiMwTmO4fVEFJ78xQUT0dSzSgqsyUbT 5qZ9Vg0WL21CnYprK1uM0xd2JWEpv/Hgnjf2dHcomBz2moxvRfmGzUgfXd8/z3R6joiL 0l+O2qgR1MLXBAIg13NMrpkcqN3R5mQ7O7wN9QrWke9JZp9oWRd9rLKVwYhlhSAFNQHn 8llDB5Yc7zGRlRhE76UXqqthQpWZ+XjBbBcJcsg+9iyO77z91g/Iaon5WhGNMeFHk49q fToaffwvutXFmygU5Em6w7ArdUmZtKoRMdSnxHnlBYaXXdDxh8NDnJnIKc95dWOhSZyz OHZw== X-Received: by 10.180.86.234 with SMTP id s10mr22367843wiz.50.1436790800947; Mon, 13 Jul 2015 05:33:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.49.133 with HTTP; Mon, 13 Jul 2015 05:33:01 -0700 (PDT) In-Reply-To: <55A3ADD5.1080106@lsces.co.uk> References: <55A16375.4000707@php.net> <55A220D8.3090004@gmail.com> <55A363A0.5060307@gmail.com> <55A39493.6020909@lsces.co.uk> <55A39F18.70308@lsces.co.uk> <55A3ADD5.1080106@lsces.co.uk> Date: Mon, 13 Jul 2015 13:33:01 +0100 Message-ID: To: Lester Caine Cc: PHP Internals List Content-Type: multipart/alternative; boundary=f46d041824f24eadfe051ac0ed94 Subject: Re: [PHP-DEV] PHP7 and types - and alternatives to annotation From: ocramius@gmail.com (Marco Pivetta) --f46d041824f24eadfe051ac0ed94 Content-Type: text/plain; charset=UTF-8 On 13 July 2015 at 13:23, Lester Caine wrote: > On 13/07/15 13:12, Marco Pivetta wrote: > > It's actually the PhpDocumentor folks (and Mike van Riel in first place) > > pushing forward PSR-5: there's nothing more "official" than that right > now. > > That's the current standardization path. > > docblock annotation has been the subject of RFC's as alternatives to > other annotation/typing options, and that is the correct platform to > carry out that debate rather than on third party tools/standards such as > fig and phpdocumentor. Yeap, and these RFCs were rejected due to the fact that for the purposes of php-src it's just comments that can be read as strings via Reflection API. > It is not only phdocumentor that uses docblock > material, the IDE's I use have no problem with the current docblock > material and so there has been no need until now to look at why only > phpdocumentor2 has a problem with them ... Most (all?) of those APIs/IDEs/tools are basing their implementation on PHPDocumentor's documentation at http://www.phpdoc.org/docs/latest/index.html, if not directly on PHPDocumentor's components. Not everything in PHP is specified by php-src, nor should be. Actually, pretty much nothing in PHP userland is specified by php-src, and it's probably for the best, since this way you get a choice. In this case you have a simple choice: - not upgrading a stable tool - accepting that there are BC breaks due to the evolution of the ecosystem in the past 10 years, and adapting an old codebase to 10 years of changes Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --f46d041824f24eadfe051ac0ed94--