1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

don't use 0b constant values because bitwise comparisons aren't used

This commit is contained in:
Daniel Lowrey 2015-05-20 21:28:34 -04:00
parent e8ac57db31
commit 35a601964e

View File

@ -3,10 +3,10 @@
namespace Amp;
class PromiseStream implements Streamable {
const NOTIFY = 0b000;
const WAIT = 0b001;
const ERROR = 0b010;
const DONE = 0b100;
const NOTIFY = 0;
const WAIT = 1;
const ERROR = 2;
const DONE = 3;
private $promisors;
private $index = 0;