Closed abacaphiliac closed 7 years ago
Can you adjust the code such that return true;
is the last line. See how the other assertions are written.
sure, no problem.
@rquadling fixed and squashed.
I suppose a Assertion::notDefined()
would match the pairing. Not sure how useful that would be though.
@rquadling i defer to your judgement. i'm happy to add it now if you think it will provide value : )
hi @rquadling, sorry to bother. do you have any more feedback for me?
as a simple example:
this assertion will allow us to ensure that a constant is defined before attempting to use it which can cause php to make an assumption, generate a notice, and do something unexpected.
what do you think?