On Mon, Feb 9, 2015 at 3:02 PM, Arvids Godjuks <arvids.godj...@gmail.com> wrote: > I actually have a question, that Ferenc touched on, but it never got any > discussion. > > How, actually, the declare will work with concatenated PHP files? It's > quite a common practice to put the files into packages, that require > minimal amounts of includes for performance reasons. > Declare is required to be a the top of a file as a first statement. So, if > I have like 10 packages from composer written in different styles, how > should I actually combine them? Stripping the declare from each file and > putting a single declare with the type hint level I want? What will happen > if a library is written for weak type hints ends up in strict type hint > mode? Or the other way around? Isn't it gonna be a mess?
How do you do it for namespaces? This is the same issue. Cheers, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php