beberlei / assert

Thin assertion library for use in libraries and business-model
Other
2.41k stars 188 forks source link

Add a empty alias for noContent #272

Open Taluu opened 5 years ago

Taluu commented 5 years ago

I'm not sure how to deprecate things, but I "deprecated" noContent and transformed it into an alias for the new empty assertion.

Fixes #249

rquadling commented 5 years ago

I'd leave out the @deprecated for the time being. Deprecating an assertion can cause end users a real nightmare if there is not a clear path an a LOT of notice.

Taluu commented 5 years ago

I removed the @deprecated. I thought that the given message (using empty instead) would do the trick, unless you'd like to add a trigger_error with it ? Not sure what would be a better deprecation path though...

Taluu commented 4 years ago

Rebased and updated from upstream/master.