Re: Missing reflection info about strict types?
| From: | Niklas Keller | Date: | Mon, 05 Sep 2016 18:27:36 +0000 |
| Subject: | Re: Missing reflection info about strict types? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-95666@lists.php.net to get a copy of this message | ||
2016-09-05 17:25 GMT+02:00 Nicolas Grekas <nicolas.grekas@gmail.com>:
> >
> > being strict type it should not matter, at all
> >
>
> It doesn't, except when trying to concatenate several source files into a
> single bigger one.
> Then we're stuck because declare(strict_type=0/1) is specifically *not*
> allowed in the middle of a file, and *not* allowed to use the block syntax
> (declare(strict_type=0/1) {...}).
>
> In fact, the feat I was asking for could be seen as a workaround for this
> limitation. Maybe it would be better to allow some syntax to be able to
> create one big file that contains class declatation foo1 & foo2, where foo1
> is strict and foo2 isn't?
>
> Nicolas
>
Why do you concatenate these files in the first place?