Re: [RFC][DISCUSSION] - Throwables error code's type generalization

From: Date: Sun, 18 Dec 2016 10:47:05 +0000
Subject: Re: [RFC][DISCUSSION] - Throwables error code's type generalization
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-97436@lists.php.net to get a copy of this message
Yo, Marco :P I don't need to add any contextual data, I'm just trying improve consistency by formalizing what PHP already does. I think it's the right way to fix this because I don't think changing PDO is ever going to happen. You either special case PDO in your code or formalize the special case so that it becomes the norm. Again, there is no actual formal type restriction right now, existing code that assumes int is wrong, even if it's not their fault. If you are making that assumption your code is broken already.

« previous php.internals (#97436) next »